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.00121/0.001209, allocations: 108.4 kB / 18.34 MB, free: 4.676 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.001346/0.001345, allocations: 186.9 kB / 19.28 MB, free: 3.75 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.627/1.627, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001182/0.001183, allocations: 51.92 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1124, allocations: 46.63 MB / 328.7 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007148/0.1196, allocations: 5.965 MB / 334.7 MB, free: 13.74 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003516/0.1232, allocations: 1.688 MB / 336.4 MB, free: 12.05 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004196/0.1236, allocations: 27.88 kB / 336.4 MB, free: 12.02 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005108/0.1242, allocations: 249.6 kB / 336.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004171/0.1246, allocations: 221.7 kB / 336.9 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009083/0.1255, allocations: 0.4993 MB / 337.4 MB, free: 11.05 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001255/0.1268, allocations: 1.391 MB / 338.7 MB, free: 9.66 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008149/0.1276, allocations: 0.6169 MB / 339.4 MB, free: 9.023 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005187/0.1282, allocations: 482.1 kB / 339.8 MB, free: 8.551 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004649/0.1286, allocations: 0.4973 MB / 340.3 MB, free: 8.051 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001348/0.1288, allocations: 120 kB / 340.4 MB, free: 7.934 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002047/0.129, allocations: 140 kB / 340.6 MB, free: 7.797 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001901/0.1292, allocations: 267 kB / 340.8 MB, free: 7.535 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004725/0.1297, allocations: 0.6022 MB / 341.4 MB, free: 6.93 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001202/0.1309, allocations: 1.6 MB / 343 MB, free: 5.324 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.1309, allocations: 0 / 343 MB, free: 5.324 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1309, allocations: 0 / 343 MB, free: 5.324 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.725e-05/0.1309, allocations: 0 / 343 MB, free: 5.324 MB / 286.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.00207/0.133, allocations: 1.462 MB / 344.5 MB, free: 3.809 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.1331, allocations: 8.031 kB / 344.5 MB, free: 3.801 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002167/0.1333, allocations: 146.3 kB / 344.7 MB, free: 3.656 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001282/0.1346, allocations: 0.7588 MB / 345.4 MB, free: 2.855 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.247e-05/0.1347, allocations: 86.41 kB / 345.5 MB, free: 2.77 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001536/0.1348, allocations: 116 kB / 345.6 MB, free: 2.656 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00204/0.1369, allocations: 1.268 MB / 346.9 MB, free: 1.215 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.526e-05/0.1369, allocations: 7.938 kB / 346.9 MB, free: 1.207 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.098e-05/0.137, allocations: 56 kB / 346.9 MB, free: 1.152 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.14e-05/0.137, allocations: 32 kB / 347 MB, free: 1.121 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001215/0.1383, allocations: 0.6851 MB / 347.7 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006617/0.1449, allocations: 6.781 MB / 354.4 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007506/0.1457, allocations: 265.2 kB / 354.7 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003748/0.1461, allocations: 189.7 kB / 354.9 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001568/0.1462, allocations: 85.11 kB / 355 MB, free: 8.742 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.89e-05/0.1463, allocations: 34.56 kB / 355 MB, free: 8.699 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 2.214e-06/0.1463, allocations: 0 / 355 MB, free: 8.699 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002434/0.1487, allocations: 1.397 MB / 356.4 MB, free: 7.191 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.749e-05/0.1488, allocations: 81.11 kB / 356.5 MB, free: 7.094 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007543/0.1496, allocations: 0.6647 MB / 357.1 MB, free: 6.414 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.869e-05/0.1496, allocations: 33.7 kB / 357.2 MB, free: 6.375 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004169/0.15, allocations: 0.6836 MB / 357.9 MB, free: 5.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.292e-05/0.1501, allocations: 114.5 kB / 358 MB, free: 5.566 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001865/0.1503, allocations: 142.4 kB / 358.1 MB, free: 5.422 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.1505, allocations: 386.8 kB / 358.5 MB, free: 5.035 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002711/0.1508, allocations: 149.9 kB / 358.6 MB, free: 4.887 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005477/0.1513, allocations: 0.5507 MB / 359.2 MB, free: 4.137 MB / 302.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.001164/0.1525, allocations: 0.9603 MB / 360.1 MB, free: 2.945 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.723e-06/0.1525, allocations: 4 kB / 360.2 MB, free: 2.941 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001252/0.1538, allocations: 0.787 MB / 360.9 MB, free: 2.141 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.521e-05/0.1538, allocations: 15.98 kB / 361 MB, free: 2.125 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.927e-05/0.1538, allocations: 12.28 kB / 361 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002987/0.1542, allocations: 86.36 kB / 361.1 MB, free: 2.023 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000542/0.1547, allocations: 183.7 kB / 361.2 MB, free: 1.844 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002675/0.1574, allocations: 3.343 MB / 364.6 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004494/0.1579, allocations: 28 kB / 364.6 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.835e-05/0.1579, allocations: 43.98 kB / 364.6 MB, free: 14.16 MB / 318.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.0005966/0.1585, allocations: 277.4 kB / 364.9 MB, free: 13.88 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001229/0.1587, allocations: 75.06 kB / 365 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001076/0.1588, allocations: 70.41 kB / 365.1 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.1588, allocations: 4 kB / 365.1 MB, free: 13.73 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/0.1588, allocations: 4 kB / 365.1 MB, free: 13.72 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.1588, allocations: 3.984 kB / 365.1 MB, free: 13.72 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001952/0.1608, allocations: 1.235 MB / 366.3 MB, free: 12.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.1608, allocations: 4 kB / 366.3 MB, free: 12.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003129/0.1611, allocations: 63.95 kB / 366.4 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002519/0.1614, allocations: 57.62 kB / 366.4 MB, free: 12.28 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.685e-05/0.1614, allocations: 12.08 kB / 366.4 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002469/0.1639, allocations: 3.061 MB / 369.5 MB, free: 8.926 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.1639, allocations: 0 / 369.5 MB, free: 8.926 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008968/0.1648, allocations: 0.6313 MB / 370.1 MB, free: 8.262 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001574/0.165, allocations: 136.2 kB / 370.3 MB, free: 8.109 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.993e-05/0.165, allocations: 8 kB / 370.3 MB, free: 8.102 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002567/0.1653, allocations: 15.98 kB / 370.3 MB, free: 8.086 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.663e-05/0.1654, allocations: 31.84 kB / 370.3 MB, free: 8.055 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/0.1654, allocations: 12 kB / 370.3 MB, free: 8.043 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005477/0.166, allocations: 439 kB / 370.8 MB, free: 7.621 MB / 318.1 MB Notification: Performance of sort global known variables: time 6.42e-07/0.166, allocations: 0 / 370.8 MB, free: 7.621 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001069/0.1671, allocations: 152 kB / 370.9 MB, free: 7.473 MB / 318.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.0001798/0.1672, allocations: 107.2 kB / 371 MB, free: 7.359 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001541/0.1688, allocations: 0.6637 MB / 371.7 MB, free: 6.672 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.339e-06/0.1688, allocations: 0 / 371.7 MB, free: 6.672 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005351/0.1694, allocations: 358.1 kB / 372 MB, free: 6.297 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006413/0.17, allocations: 80.12 kB / 372.1 MB, free: 6.215 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003555/0.1736, allocations: 1.828 MB / 373.9 MB, free: 4.348 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006453/0.1742, allocations: 1.031 MB / 375 MB, free: 3.289 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000266/0.1745, allocations: 90.02 kB / 375.1 MB, free: 3.199 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.1746, allocations: 55.41 kB / 375.1 MB, free: 3.145 MB / 318.1 MB Notification: Performance of SimCode: time 8.32e-07/0.1746, allocations: 0 / 375.1 MB, free: 3.145 MB / 318.1 MB Notification: Performance of Templates: time 0.1938/0.3684, allocations: 5.382 MB / 380.5 MB, free: 50.35 MB / 318.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 -s gbode -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