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.001763/0.001763, allocations: 104.4 kB / 18.35 MB, free: 4.645 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.00176/0.00176, allocations: 191 kB / 19.29 MB, free: 3.715 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.49/1.49, 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.001277/0.001277, allocations: 47.92 kB / 282.1 MB, free: 2.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1167, allocations: 46.62 MB / 328.7 MB, free: 3.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.007085/0.1239, allocations: 5.969 MB / 334.7 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003236/0.1271, allocations: 1.684 MB / 336.4 MB, free: 12.08 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000653/0.1278, allocations: 27.88 kB / 336.4 MB, free: 12.05 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005736/0.1285, allocations: 253.6 kB / 336.7 MB, free: 11.8 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000555/0.129, allocations: 213.7 kB / 336.9 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001162/0.1302, allocations: 0.5071 MB / 337.4 MB, free: 11.09 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001663/0.1319, allocations: 1.391 MB / 338.8 MB, free: 9.691 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009486/0.1328, allocations: 0.6208 MB / 339.4 MB, free: 9.051 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000753/0.1336, allocations: 474.1 kB / 339.8 MB, free: 8.586 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004983/0.1341, allocations: 0.4934 MB / 340.3 MB, free: 8.09 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001467/0.1343, allocations: 124 kB / 340.5 MB, free: 7.969 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002327/0.1345, allocations: 143.9 kB / 340.6 MB, free: 7.828 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000203/0.1347, allocations: 259.1 kB / 340.9 MB, free: 7.574 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005075/0.1352, allocations: 0.6178 MB / 341.5 MB, free: 6.953 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001725/0.137, allocations: 1.588 MB / 343.1 MB, free: 5.359 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.137, allocations: 0 / 343.1 MB, free: 5.359 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.137, allocations: 0 / 343.1 MB, free: 5.359 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.41e-05/0.137, allocations: 8 kB / 343.1 MB, free: 5.352 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.002387/0.1394, allocations: 1.454 MB / 344.5 MB, free: 3.844 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.1395, allocations: 15.97 kB / 344.5 MB, free: 3.828 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002157/0.1397, allocations: 142.3 kB / 344.7 MB, free: 3.688 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001302/0.141, allocations: 0.7549 MB / 345.4 MB, free: 2.891 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001114/0.1411, allocations: 90.41 kB / 345.5 MB, free: 2.801 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001537/0.1413, allocations: 116 kB / 345.6 MB, free: 2.688 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002047/0.1434, allocations: 1.268 MB / 346.9 MB, free: 1.246 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.319e-05/0.1434, allocations: 7.938 kB / 346.9 MB, free: 1.238 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.839e-05/0.1435, allocations: 52 kB / 347 MB, free: 1.188 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.039e-05/0.1435, allocations: 32 kB / 347 MB, free: 1.156 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001254/0.1448, allocations: 0.6929 MB / 347.7 MB, free: 472 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006413/0.1512, allocations: 6.773 MB / 354.5 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007375/0.152, allocations: 273.2 kB / 354.7 MB, free: 9.066 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003533/0.1524, allocations: 177.6 kB / 354.9 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001551/0.1525, allocations: 93.08 kB / 355 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/0.1526, allocations: 34.56 kB / 355 MB, free: 8.734 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 1.794e-06/0.1526, allocations: 0 / 355 MB, free: 8.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.002537/0.1551, allocations: 1.401 MB / 356.4 MB, free: 7.223 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.854e-05/0.1552, allocations: 85.11 kB / 356.5 MB, free: 7.121 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007519/0.156, allocations: 0.653 MB / 357.2 MB, free: 6.453 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.438e-05/0.156, allocations: 33.7 kB / 357.2 MB, free: 6.414 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004675/0.1565, allocations: 0.6836 MB / 357.9 MB, free: 5.719 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.989e-05/0.1566, allocations: 118.4 kB / 358 MB, free: 5.602 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001649/0.1568, allocations: 146.5 kB / 358.1 MB, free: 5.453 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.1569, allocations: 390.8 kB / 358.5 MB, free: 5.062 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002663/0.1572, allocations: 145.9 kB / 358.7 MB, free: 4.918 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004839/0.1577, allocations: 0.5468 MB / 359.2 MB, free: 4.172 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.001112/0.1588, allocations: 0.9513 MB / 360.2 MB, free: 2.988 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.1588, allocations: 4 kB / 360.2 MB, free: 2.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001295/0.1601, allocations: 0.7967 MB / 361 MB, free: 2.176 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.725e-05/0.1602, allocations: 12 kB / 361 MB, free: 2.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.029e-05/0.1602, allocations: 16.69 kB / 361 MB, free: 2.148 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002647/0.1605, allocations: 85.69 kB / 361.1 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005257/0.161, allocations: 179.7 kB / 361.2 MB, free: 1.883 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002516/0.1635, allocations: 3.332 MB / 364.6 MB, free: 14.28 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000456/0.164, allocations: 36.05 kB / 364.6 MB, free: 14.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.208e-05/0.1641, allocations: 48 kB / 364.7 MB, free: 14.2 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.0005518/0.1647, allocations: 269.5 kB / 364.9 MB, free: 13.92 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001417/0.1648, allocations: 75.06 kB / 365 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001208/0.1649, allocations: 74.55 kB / 365.1 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.165, allocations: 7.984 kB / 365.1 MB, free: 13.77 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-05/0.165, allocations: 7.938 kB / 365.1 MB, free: 13.76 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.165, allocations: 0 / 365.1 MB, free: 13.76 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001932/0.1669, allocations: 1.243 MB / 366.3 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.1669, allocations: 0 / 366.3 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002997/0.1673, allocations: 63.89 kB / 366.4 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000161/0.1674, allocations: 65.72 kB / 366.5 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.96e-05/0.1675, allocations: 8 kB / 366.5 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002094/0.1696, allocations: 3.049 MB / 369.5 MB, free: 8.969 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.1696, allocations: 7.969 kB / 369.5 MB, free: 8.961 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008417/0.1704, allocations: 0.6312 MB / 370.1 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/0.1706, allocations: 132.2 kB / 370.3 MB, free: 8.148 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.04e-05/0.1706, allocations: 12.05 kB / 370.3 MB, free: 8.137 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002549/0.1709, allocations: 12 kB / 370.3 MB, free: 8.125 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.816e-05/0.171, allocations: 31.91 kB / 370.3 MB, free: 8.094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.276e-05/0.171, allocations: 15.98 kB / 370.3 MB, free: 8.078 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005589/0.1716, allocations: 435 kB / 370.8 MB, free: 7.66 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1716, allocations: 0 / 370.8 MB, free: 7.66 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001042/0.1726, allocations: 160 kB / 370.9 MB, free: 7.504 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.0001517/0.1728, allocations: 107.2 kB / 371 MB, free: 7.391 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001124/0.1739, allocations: 0.6519 MB / 371.7 MB, free: 6.715 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1739, allocations: 0 / 371.7 MB, free: 6.715 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004761/0.1744, allocations: 366.3 kB / 372 MB, free: 6.332 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005348/0.175, allocations: 71.3 kB / 372.1 MB, free: 6.258 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002995/0.178, allocations: 1.815 MB / 373.9 MB, free: 4.402 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006187/0.1786, allocations: 1.034 MB / 375 MB, free: 3.34 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002621/0.1789, allocations: 94 kB / 375.1 MB, free: 3.246 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/0.179, allocations: 59.42 kB / 375.1 MB, free: 3.188 MB / 318.1 MB Notification: Performance of SimCode: time 4.31e-07/0.179, allocations: 3.938 kB / 375.1 MB, free: 3.184 MB / 318.1 MB Notification: Performance of Templates: time 0.1928/0.3719, allocations: 5.385 MB / 380.5 MB, free: 50.32 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 cvode -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