Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers") translateModel(Modelica.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001656/0.001656, allocations: 109.9 kB / 17.17 MB, free: 6.309 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.001879/0.001879, allocations: 194.9 kB / 18.08 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.747/1.747, allocations: 222.9 MB / 241.8 MB, free: 13.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001761/0.001761, allocations: 57.28 kB / 300.6 MB, free: 6.082 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1539/0.1557, allocations: 49.43 MB / 350.1 MB, free: 4.641 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005514/0.1613, allocations: 4.115 MB / 354.2 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001765/0.1631, allocations: 0.8685 MB / 355 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000288/0.1634, allocations: 11.94 kB / 355 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002599/0.1637, allocations: 63.52 kB / 355.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003653/0.1641, allocations: 158.8 kB / 355.3 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003819/0.1645, allocations: 119.8 kB / 355.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006829/0.1652, allocations: 0.642 MB / 356 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003173/0.1655, allocations: 175.9 kB / 356.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003216/0.1658, allocations: 243 kB / 356.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003291/0.1662, allocations: 278.7 kB / 356.7 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.252e-05/0.1663, allocations: 40 kB / 356.7 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.996e-05/0.1664, allocations: 40 kB / 356.8 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.1665, allocations: 115.5 kB / 356.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002919/0.1668, allocations: 286.5 kB / 357.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004346/0.1672, allocations: 479 kB / 357.6 MB, free: 13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1672, allocations: 0 / 357.6 MB, free: 13 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.1672, allocations: 4 kB / 357.6 MB, free: 13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.1673, allocations: 0 / 357.6 MB, free: 13 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001491/0.1687, allocations: 0.8599 MB / 358.5 MB, free: 12.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.1688, allocations: 8.031 kB / 358.5 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001168/0.1689, allocations: 72.22 kB / 358.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004635/0.1694, allocations: 367.6 kB / 358.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.111e-05/0.1695, allocations: 33.38 kB / 359 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.891e-05/0.1695, allocations: 56.28 kB / 359 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008633/0.1704, allocations: 479.5 kB / 359.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.1704, allocations: 3.938 kB / 359.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.77e-05/0.1705, allocations: 20 kB / 359.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.473e-05/0.1705, allocations: 12 kB / 359.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007027/0.1712, allocations: 336.3 kB / 359.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002937/0.1742, allocations: 1.693 MB / 361.6 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004875/0.1747, allocations: 261.1 kB / 361.8 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002436/0.1749, allocations: 145.7 kB / 362 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.123e-05/0.175, allocations: 4 kB / 362 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.815e-05/0.175, allocations: 34.56 kB / 362 MB, free: 8.418 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 2.154e-06/0.175, allocations: 4 kB / 362 MB, free: 8.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.002079/0.1771, allocations: 0.9459 MB / 362.9 MB, free: 7.391 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.777e-05/0.1772, allocations: 85.05 kB / 363 MB, free: 7.289 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004485/0.1777, allocations: 389.6 kB / 363.4 MB, free: 6.895 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.086e-05/0.1777, allocations: 33.7 kB / 363.4 MB, free: 6.855 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001989/0.1779, allocations: 287.4 kB / 363.7 MB, free: 6.566 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.659e-05/0.178, allocations: 114.4 kB / 363.8 MB, free: 6.453 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/0.1781, allocations: 74.05 kB / 363.9 MB, free: 6.375 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.1783, allocations: 350.7 kB / 364.2 MB, free: 6.023 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002281/0.1785, allocations: 100.8 kB / 364.3 MB, free: 5.926 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002846/0.1788, allocations: 202.6 kB / 364.5 MB, free: 5.688 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005027/0.1793, allocations: 309.1 kB / 364.8 MB, free: 5.352 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.1793, allocations: 0 / 364.8 MB, free: 5.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008908/0.1802, allocations: 453.6 kB / 365.3 MB, free: 4.898 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.1803, allocations: 7.984 kB / 365.3 MB, free: 4.891 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.1803, allocations: 4 kB / 365.3 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003843/0.1807, allocations: 81.69 kB / 365.4 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003765/0.1811, allocations: 75.91 kB / 365.5 MB, free: 4.727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0027/0.1838, allocations: 2.861 MB / 368.3 MB, free: 1.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003397/0.1841, allocations: 12 kB / 368.3 MB, free: 1.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.09e-05/0.1842, allocations: 16 kB / 368.3 MB, free: 1.578 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (45): * Single equations (assignments): 43 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002506/0.1844, allocations: 169.6 kB / 368.5 MB, free: 1.402 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.1845, allocations: 39.53 kB / 368.5 MB, free: 1.363 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.575e-05/0.1846, allocations: 47.45 kB / 368.6 MB, free: 1.312 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.1846, allocations: 8.062 kB / 368.6 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/0.1847, allocations: 4 kB / 368.6 MB, free: 1.301 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.1847, allocations: 3.938 kB / 368.6 MB, free: 1.297 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001546/0.1862, allocations: 0.9426 MB / 369.5 MB, free: 300 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.1862, allocations: 0 / 369.5 MB, free: 300 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002151/0.1865, allocations: 47.91 kB / 369.6 MB, free: 252 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003045/0.1868, allocations: 81.64 kB / 369.7 MB, free: 164 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.218e-05/0.1868, allocations: 4 kB / 369.7 MB, free: 160 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2644/0.4512, allocations: 2.845 MB / 372.5 MB, free: 22.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.4512, allocations: 0.5 kB / 372.5 MB, free: 22.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001575/0.4528, allocations: 0.6067 MB / 373.1 MB, free: 22.06 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002184/0.4531, allocations: 115.3 kB / 373.2 MB, free: 21.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.217e-05/0.4531, allocations: 11.83 kB / 373.3 MB, free: 21.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005346/0.4537, allocations: 35.98 kB / 373.3 MB, free: 21.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.4538, allocations: 27.02 kB / 373.3 MB, free: 21.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.906e-05/0.4539, allocations: 13.08 kB / 373.3 MB, free: 21.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005447/0.4544, allocations: 270.3 kB / 373.6 MB, free: 21.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.4545, allocations: 0 / 373.6 MB, free: 21.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001029/0.4555, allocations: 116.2 kB / 373.7 MB, free: 21.88 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * 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 (26): * Single equations (assignments): 24 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002491/0.4558, allocations: 120 kB / 373.8 MB, free: 21.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001373/0.4571, allocations: 0.5099 MB / 374.3 MB, free: 21.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.4572, allocations: 0.6875 kB / 374.3 MB, free: 21.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008172/0.458, allocations: 386.6 kB / 374.7 MB, free: 21.35 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008637/0.4589, allocations: 63.84 kB / 374.8 MB, free: 21.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002722/0.4616, allocations: 1.177 MB / 376 MB, free: 20.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004632/0.4621, allocations: 0.8405 MB / 376.8 MB, free: 19.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001492/0.4623, allocations: 37.16 kB / 376.8 MB, free: 19.92 MB / 302.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4623, allocations: 0 / 376.8 MB, free: 19.92 MB / 302.1 MB Notification: Performance of Templates: time 0.02255/0.4848, allocations: 8.867 MB / 385.7 MB, free: 17.46 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches