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.0008967/0.0008969, allocations: 86.31 kB / 16.31 MB, free: 5.684 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.001114/0.001114, allocations: 179.7 kB / 17.21 MB, free: 5.602 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.485/1.485, allocations: 223.2 MB / 241.2 MB, free: 372 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004299/0.0004303, allocations: 5.219 kB / 300.8 MB, free: 6.488 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1695/0.1699, allocations: 50.43 MB / 351.3 MB, free: 4.051 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.00765/0.1777, allocations: 3.509 MB / 354.8 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003023/0.1808, allocations: 0.8455 MB / 355.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005181/0.1813, allocations: 8 kB / 355.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003975/0.1817, allocations: 71.45 kB / 355.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008066/0.1826, allocations: 150.8 kB / 355.8 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006308/0.1832, allocations: 99.88 kB / 355.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001296/0.1846, allocations: 0.6225 MB / 356.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005454/0.1851, allocations: 146.3 kB / 356.7 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000588/0.1857, allocations: 215.1 kB / 356.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006481/0.1864, allocations: 254.8 kB / 357.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001513/0.1866, allocations: 32 kB / 357.2 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001801/0.1868, allocations: 32 kB / 357.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001672/0.187, allocations: 103.5 kB / 357.3 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002219/0.1872, allocations: 125.4 kB / 357.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007737/0.188, allocations: 474.8 kB / 357.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.188, allocations: 0 / 357.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.188, allocations: 0 / 357.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.97e-05/0.1881, allocations: 0 / 357.9 MB, free: 13.35 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.002552/0.1906, allocations: 0.7909 MB / 358.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.314e-05/0.1907, allocations: 12.03 kB / 358.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002934/0.191, allocations: 67.2 kB / 358.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000918/0.192, allocations: 354.6 kB / 359.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.365e-05/0.1921, allocations: 33 kB / 359.1 MB, free: 12.01 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/0.1922, allocations: 51.94 kB / 359.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001556/0.1938, allocations: 479.2 kB / 359.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.469e-05/0.1938, allocations: 3.984 kB / 359.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.113e-05/0.1939, allocations: 20 kB / 359.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.416e-05/0.194, allocations: 15.98 kB / 359.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/0.1952, allocations: 340.2 kB / 360 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005105/0.2004, allocations: 1.709 MB / 361.7 MB, free: 9.301 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008619/0.2013, allocations: 269 kB / 362 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004613/0.2017, allocations: 145.7 kB / 362.2 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.762e-05/0.2018, allocations: 7.984 kB / 362.2 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.94e-05/0.2018, allocations: 46.5 kB / 362.2 MB, free: 8.809 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 2.635e-06/0.2019, allocations: 0 / 362.2 MB, free: 8.809 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003205/0.2051, allocations: 0.9615 MB / 363.2 MB, free: 7.77 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.77e-05/0.2052, allocations: 81.11 kB / 363.2 MB, free: 7.672 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008009/0.206, allocations: 385.6 kB / 363.6 MB, free: 7.281 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.629e-05/0.2061, allocations: 33.7 kB / 363.7 MB, free: 7.242 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003279/0.2064, allocations: 291.4 kB / 363.9 MB, free: 6.953 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001568/0.2066, allocations: 110.4 kB / 364 MB, free: 6.844 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.019e-05/0.2066, allocations: 8 kB / 364.1 MB, free: 6.836 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002273/0.2069, allocations: 350.8 kB / 364.4 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003869/0.2073, allocations: 112.8 kB / 364.5 MB, free: 6.375 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004998/0.2078, allocations: 190.8 kB / 364.7 MB, free: 6.152 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000477/0.2083, allocations: 126 kB / 364.8 MB, free: 6.031 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2083, allocations: 0 / 364.8 MB, free: 6.031 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001596/0.2099, allocations: 474.3 kB / 365.3 MB, free: 5.562 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.666e-05/0.21, allocations: 4 kB / 365.3 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/0.21, allocations: 4 kB / 365.3 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00059/0.2106, allocations: 81.69 kB / 365.4 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006019/0.2112, allocations: 79.84 kB / 365.4 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004123/0.2154, allocations: 2.857 MB / 368.3 MB, free: 2.262 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005642/0.2159, allocations: 19.91 kB / 368.3 MB, free: 2.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.99e-05/0.216, allocations: 16 kB / 368.3 MB, free: 2.227 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004153/0.2164, allocations: 169.8 kB / 368.5 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001648/0.2166, allocations: 39.53 kB / 368.5 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001152/0.2168, allocations: 43.45 kB / 368.6 MB, free: 1.973 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.2168, allocations: 4 kB / 368.6 MB, free: 1.969 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.691e-05/0.2168, allocations: 7.953 kB / 368.6 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.2168, allocations: 0 / 368.6 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002491/0.2193, allocations: 0.9381 MB / 369.5 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.929e-06/0.2194, allocations: 4 kB / 369.5 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003186/0.2197, allocations: 56.08 kB / 369.6 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004147/0.2201, allocations: 85.55 kB / 369.7 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.674e-05/0.2202, allocations: 8 kB / 369.7 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.331/0.5512, allocations: 2.839 MB / 372.5 MB, free: 21.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.5512, allocations: 0.875 kB / 372.5 MB, free: 21.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001313/0.5526, allocations: 0.627 MB / 373.2 MB, free: 21.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001831/0.5528, allocations: 117.4 kB / 373.3 MB, free: 21.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.425e-05/0.5528, allocations: 6.047 kB / 373.3 MB, free: 21.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003837/0.5532, allocations: 43.08 kB / 373.3 MB, free: 21.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.5534, allocations: 29.23 kB / 373.3 MB, free: 21.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.219e-05/0.5534, allocations: 15.28 kB / 373.4 MB, free: 21.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000372/0.5538, allocations: 268.5 kB / 373.6 MB, free: 21.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.184e-06/0.5538, allocations: 0 / 373.6 MB, free: 21.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007555/0.5545, allocations: 117.2 kB / 373.7 MB, free: 21.3 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001707/0.5547, allocations: 109.9 kB / 373.8 MB, free: 21.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001086/0.5558, allocations: 0.5207 MB / 374.4 MB, free: 20.99 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.114e-06/0.5558, allocations: 1.125 kB / 374.4 MB, free: 20.99 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006448/0.5565, allocations: 387.5 kB / 374.7 MB, free: 20.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006065/0.5571, allocations: 56.88 kB / 374.8 MB, free: 20.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002229/0.5594, allocations: 1.173 MB / 376 MB, free: 20.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005009/0.5599, allocations: 0.8413 MB / 376.8 MB, free: 19.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002807/0.5602, allocations: 43.62 kB / 376.9 MB, free: 19.4 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.866e-05/0.5603, allocations: 29.2 kB / 376.9 MB, free: 19.39 MB / 302.1 MB Notification: Performance of SimCode: time 1.272e-06/0.5603, allocations: 0 / 376.9 MB, free: 19.39 MB / 302.1 MB Notification: Performance of Templates: time 0.01388/0.5742, allocations: 4.248 MB / 381.1 MB, free: 19.11 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