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.000905/0.0009051, allocations: 92.83 kB / 16.65 MB, free: 6.535 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.001027/0.001027, allocations: 174.7 kB / 17.56 MB, free: 6.184 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.711/1.711, allocations: 223.3 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003889/0.0003893, allocations: 8 kB / 301.4 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1503, allocations: 50.41 MB / 351.8 MB, free: 3.465 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.004629/0.155, allocations: 3.709 MB / 355.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00219/0.1572, allocations: 0.8607 MB / 356.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003635/0.1576, allocations: 8 kB / 356.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002563/0.1579, allocations: 71.44 kB / 356.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004194/0.1583, allocations: 154.8 kB / 356.6 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004756/0.1588, allocations: 119.9 kB / 356.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007172/0.1595, allocations: 0.6459 MB / 357.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003518/0.1599, allocations: 167.9 kB / 357.6 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000308/0.1602, allocations: 235 kB / 357.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003112/0.1605, allocations: 258.7 kB / 358 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.265e-05/0.1606, allocations: 28 kB / 358.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.105e-05/0.1607, allocations: 32 kB / 358.1 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.851e-05/0.1608, allocations: 107.5 kB / 358.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002763/0.1611, allocations: 304.2 kB / 358.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006036/0.1617, allocations: 0.5993 MB / 359.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.1617, allocations: 0 / 359.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1617, allocations: 0 / 359.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.355e-06/0.1617, allocations: 0 / 359.1 MB, free: 12.14 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.001343/0.1631, allocations: 0.7804 MB / 359.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.1631, allocations: 8.031 kB / 359.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.1632, allocations: 68.19 kB / 360 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004615/0.1637, allocations: 367.6 kB / 360.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.774e-05/0.1637, allocations: 33.38 kB / 360.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.81e-05/0.1638, allocations: 48.38 kB / 360.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007965/0.1646, allocations: 495.5 kB / 360.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.1647, allocations: 0 / 360.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.103e-05/0.1647, allocations: 24 kB / 360.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/0.1647, allocations: 12 kB / 360.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006277/0.1654, allocations: 336.3 kB / 361.2 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002849/0.1682, allocations: 1.724 MB / 363 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004903/0.1687, allocations: 260.4 kB / 363.2 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002452/0.169, allocations: 149.6 kB / 363.4 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.456e-05/0.169, allocations: 4 kB / 363.4 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.509e-05/0.1691, allocations: 42.56 kB / 363.4 MB, free: 7.598 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 2.385e-06/0.1691, allocations: 3.938 kB / 363.4 MB, free: 7.594 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.002067/0.1712, allocations: 0.9725 MB / 364.4 MB, free: 6.547 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.824e-05/0.1712, allocations: 85.11 kB / 364.5 MB, free: 6.445 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004719/0.1717, allocations: 381.7 kB / 364.8 MB, free: 6.059 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.375e-05/0.1718, allocations: 33.7 kB / 364.9 MB, free: 6.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002271/0.172, allocations: 287.4 kB / 365.2 MB, free: 5.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.1721, allocations: 114.4 kB / 365.3 MB, free: 5.617 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.678e-05/0.1722, allocations: 45.58 kB / 365.3 MB, free: 5.566 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.1723, allocations: 354.7 kB / 365.7 MB, free: 5.211 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002228/0.1726, allocations: 104.8 kB / 365.8 MB, free: 5.109 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000291/0.1729, allocations: 194.6 kB / 366 MB, free: 4.883 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005163/0.1734, allocations: 323.7 kB / 366.3 MB, free: 4.535 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1734, allocations: 0 / 366.3 MB, free: 4.535 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000833/0.1742, allocations: 454.6 kB / 366.7 MB, free: 4.078 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.205e-05/0.1743, allocations: 12.03 kB / 366.7 MB, free: 4.066 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.1743, allocations: 4 kB / 366.7 MB, free: 4.062 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004068/0.1747, allocations: 81.59 kB / 366.8 MB, free: 3.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003183/0.1751, allocations: 83.89 kB / 366.9 MB, free: 3.895 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002544/0.1776, allocations: 2.845 MB / 369.7 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002924/0.1779, allocations: 27.92 kB / 369.8 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.569e-05/0.178, allocations: 16 kB / 369.8 MB, free: 0.7422 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.0002457/0.1782, allocations: 169.6 kB / 369.9 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.923e-05/0.1783, allocations: 43.59 kB / 370 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.958e-05/0.1784, allocations: 43.47 kB / 370 MB, free: 488 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.1784, allocations: 7.984 kB / 370 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.357e-06/0.1784, allocations: 0 / 370 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.1784, allocations: 0 / 370 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2494/0.4279, allocations: 0.9375 MB / 371 MB, free: 23.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.201e-06/0.4279, allocations: 2.453 kB / 371 MB, free: 23.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000236/0.4282, allocations: 49.12 kB / 371 MB, free: 23.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003788/0.4285, allocations: 83.45 kB / 371.1 MB, free: 23.67 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.824e-05/0.4286, allocations: 8.062 kB / 371.1 MB, free: 23.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002086/0.4307, allocations: 2.857 MB / 374 MB, free: 21.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.4307, allocations: 3.719 kB / 374 MB, free: 21.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.4318, allocations: 0.621 MB / 374.6 MB, free: 20.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001435/0.432, allocations: 119.1 kB / 374.7 MB, free: 20.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.034e-05/0.432, allocations: 11.25 kB / 374.7 MB, free: 20.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003878/0.4324, allocations: 31.39 kB / 374.8 MB, free: 20.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/0.4326, allocations: 26.83 kB / 374.8 MB, free: 20.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.905e-05/0.4326, allocations: 15.73 kB / 374.8 MB, free: 20.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004821/0.4331, allocations: 274.6 kB / 375.1 MB, free: 20.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4331, allocations: 1.125 kB / 375.1 MB, free: 20.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007333/0.4338, allocations: 119.3 kB / 375.2 MB, free: 20.71 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.0001583/0.434, allocations: 109.8 kB / 375.3 MB, free: 20.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001074/0.4351, allocations: 0.5216 MB / 375.8 MB, free: 20.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.4351, allocations: 1.75 kB / 375.8 MB, free: 20.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006779/0.4358, allocations: 393.4 kB / 376.2 MB, free: 20.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005901/0.4364, allocations: 55 kB / 376.3 MB, free: 20.15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001888/0.4383, allocations: 1.226 MB / 377.5 MB, free: 19.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003768/0.4387, allocations: 0.8405 MB / 378.3 MB, free: 18.72 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002132/0.4389, allocations: 45.91 kB / 378.4 MB, free: 18.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.675e-05/0.439, allocations: 30.14 kB / 378.4 MB, free: 18.7 MB / 302.1 MB Notification: Performance of SimCode: time 1.303e-06/0.439, allocations: 0 / 378.4 MB, free: 18.7 MB / 302.1 MB Notification: Performance of Templates: time 0.01148/0.4505, allocations: 4.375 MB / 382.8 MB, free: 18.43 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CompareTransformers/CompareTransformers.csv","/var/lib/jenkins/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