Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001276/0.001276, allocations: 102.1 kB / 18.4 MB, free: 4.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 190.4 kB / 19.33 MB, free: 3.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.448/1.448, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 47.94 kB / 329.2 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09922/0.1006, allocations: 46.61 MB / 375.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.196/0.2966, allocations: 5.953 MB / 381.8 MB, free: 9.672 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003438/0.3001, allocations: 1.696 MB / 383.5 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001067/0.3012, allocations: 33.81 kB / 383.5 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006829/0.302, allocations: 246.7 kB / 383.7 MB, free: 9.355 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007221/0.3027, allocations: 221 kB / 384 MB, free: 9.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00126/0.304, allocations: 0.4959 MB / 384.5 MB, free: 9.176 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001949/0.306, allocations: 1.4 MB / 385.9 MB, free: 8.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009244/0.3069, allocations: 0.619 MB / 386.5 MB, free: 8.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007618/0.3077, allocations: 488.3 kB / 386.9 MB, free: 7.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005741/0.3083, allocations: 0.4928 MB / 387.4 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001867/0.3084, allocations: 120.3 kB / 387.6 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002749/0.3087, allocations: 135.8 kB / 387.7 MB, free: 7.613 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001828/0.3089, allocations: 265.2 kB / 388 MB, free: 7.426 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004862/0.3094, allocations: 0.6106 MB / 388.6 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001932/0.3114, allocations: 1.617 MB / 390.2 MB, free: 6.375 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.3114, allocations: 5.125 kB / 390.2 MB, free: 6.371 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3114, allocations: 0 / 390.2 MB, free: 6.371 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.339e-05/0.3114, allocations: 0 / 390.2 MB, free: 6.371 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.002322/0.3138, allocations: 1.457 MB / 391.6 MB, free: 5.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.08e-05/0.3139, allocations: 8.219 kB / 391.6 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000241/0.3141, allocations: 144.4 kB / 391.8 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/0.3153, allocations: 0.7608 MB / 392.6 MB, free: 4.852 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.46e-05/0.3154, allocations: 85.94 kB / 392.6 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001576/0.3156, allocations: 124.2 kB / 392.8 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001912/0.3175, allocations: 1.26 MB / 394 MB, free: 3.953 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.24e-05/0.3176, allocations: 9.031 kB / 394 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.825e-05/0.3177, allocations: 53.59 kB / 394.1 MB, free: 3.91 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.129e-05/0.3177, allocations: 31.81 kB / 394.1 MB, free: 3.91 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/0.319, allocations: 0.6872 MB / 394.8 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007125/0.3261, allocations: 6.776 MB / 401.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007432/0.3269, allocations: 274.4 kB / 401.8 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003854/0.3273, allocations: 181.8 kB / 402 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001323/0.3274, allocations: 88.19 kB / 402.1 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.26e-05/0.3275, allocations: 37.7 kB / 402.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 4.619e-06/0.3275, allocations: 0.5625 kB / 402.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002598/0.3301, allocations: 1.401 MB / 403.5 MB, free: 12.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.178e-05/0.3302, allocations: 81.08 kB / 403.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008444/0.331, allocations: 0.6583 MB / 404.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.046e-05/0.3311, allocations: 35.48 kB / 404.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004052/0.3315, allocations: 0.6806 MB / 405 MB, free: 11.63 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.12e-05/0.3316, allocations: 120 kB / 405.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/0.3317, allocations: 153.4 kB / 405.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001993/0.332, allocations: 384.4 kB / 405.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002771/0.3322, allocations: 143.1 kB / 405.8 MB, free: 11.06 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005385/0.3328, allocations: 0.5559 MB / 406.3 MB, free: 10.45 MB / 334.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y ($START.inverseCapacitor1.capacitor.v = $START.directCapacitor1.currentToVoltage.y) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y ($START.inverseInductor3.inductor.i = $START.directInductor3.currentToVoltage.y) Notification: Performance of analyzeInitialSystem (initialization): time 0.001203/0.334, allocations: 0.9468 MB / 407.3 MB, free: 9.512 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.949e-06/0.334, allocations: 3.75 kB / 407.3 MB, free: 9.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001418/0.3354, allocations: 0.7962 MB / 408.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.708e-05/0.3355, allocations: 10.75 kB / 408.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.536e-05/0.3355, allocations: 15.12 kB / 408.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002742/0.3358, allocations: 83.31 kB / 408.2 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005559/0.3364, allocations: 182.1 kB / 408.4 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002573/0.3389, allocations: 3.332 MB / 411.7 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005595/0.3395, allocations: 29.53 kB / 411.7 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.41e-05/0.3396, allocations: 48.39 kB / 411.8 MB, free: 5.738 MB / 334.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004829/0.3401, allocations: 270 kB / 412 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.3402, allocations: 73.97 kB / 412.1 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001188/0.3404, allocations: 80.47 kB / 412.2 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.3404, allocations: 2.406 kB / 412.2 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/0.3404, allocations: 2.375 kB / 412.2 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.3404, allocations: 5.234 kB / 412.2 MB, free: 5.422 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001936/0.3423, allocations: 1.248 MB / 413.4 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.3424, allocations: 0 / 413.4 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003169/0.3427, allocations: 66.27 kB / 413.5 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001813/0.3429, allocations: 59.5 kB / 413.6 MB, free: 4.426 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.504e-05/0.3429, allocations: 10.7 kB / 413.6 MB, free: 4.418 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002008/0.3449, allocations: 3.054 MB / 416.6 MB, free: 1.293 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3449, allocations: 1.031 kB / 416.6 MB, free: 1.293 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009819/0.3459, allocations: 0.6369 MB / 417.3 MB, free: 0.832 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001669/0.3461, allocations: 134.4 kB / 417.4 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.707e-05/0.3462, allocations: 6.875 kB / 417.4 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002638/0.3464, allocations: 17.67 kB / 417.4 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.015e-05/0.3465, allocations: 30.44 kB / 417.5 MB, free: 0.668 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-05/0.3466, allocations: 10.25 kB / 417.5 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005533/0.3471, allocations: 440.1 kB / 417.9 MB, free: 420 kB / 334.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3471, allocations: 0 / 417.9 MB, free: 420 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.001056/0.3482, allocations: 158.7 kB / 418 MB, free: 400 kB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (inverseInductor3.inductor.i,inductor4a.i,inductor4b.i,directCapacitor1.currentToVoltage.y,capacitor2a.v,capacitor2b.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001473/0.3483, allocations: 107 kB / 418.2 MB, free: 304 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001157/0.3495, allocations: 0.662 MB / 418.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.3495, allocations: 1.406 kB / 418.8 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005204/0.35, allocations: 364.5 kB / 419.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006035/0.3507, allocations: 78.3 kB / 419.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00329/0.354, allocations: 1.854 MB / 421.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006144/0.3546, allocations: 1.03 MB / 422.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001532/0.3548, allocations: 67.27 kB / 422.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3548, allocations: 0 / 422.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of Templates: time 0.02334/0.3781, allocations: 19.77 MB / 442 MB, free: 11.39 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches