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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 83.89 kB / 21.19 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 141.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9637/0.9637, allocations: 173.4 MB / 201.1 MB, free: 9.332 MB / 186.7 MB " [Timeout remaining time 179] 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=50000,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=50000,variableFilter="time|basicTransformer.i1|basicTransformer.i2|inductor22.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 3.938 kB / 268 MB, free: 6.395 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.581e-05/3.719e-05, allocations: 6.312 kB / 268 MB, free: 6.387 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.00561/0.005647, allocations: 4.038 MB / 272.1 MB, free: 2.328 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001431/0.007078, allocations: 0.8644 MB / 272.9 MB, free: 1.457 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001998/0.007277, allocations: 8 kB / 272.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000211/0.007488, allocations: 99.06 kB / 273 MB, free: 1.352 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003279/0.007816, allocations: 198.2 kB / 273.2 MB, free: 1.156 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003162/0.008132, allocations: 139.8 kB / 273.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005802/0.008713, allocations: 0.7002 MB / 274.1 MB, free: 324 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002386/0.008951, allocations: 147.6 kB / 274.2 MB, free: 168 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004082/0.00936, allocations: 395.1 kB / 274.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002562/0.009616, allocations: 207.4 kB / 274.8 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.604e-05/0.009692, allocations: 59.94 kB / 274.9 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.643e-05/0.009768, allocations: 56 kB / 274.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.635e-05/0.009855, allocations: 135.5 kB / 275.1 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001806/0.01004, allocations: 211.4 kB / 275.3 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004406/0.01048, allocations: 438.4 kB / 275.7 MB, free: 14.69 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.01048, allocations: 0 / 275.7 MB, free: 14.69 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.31e-07/0.01048, allocations: 4 kB / 275.7 MB, free: 14.68 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.01049, allocations: 0 / 275.7 MB, free: 14.68 MB / 266.7 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.00108/0.01157, allocations: 0.8969 MB / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.0116, allocations: 12.02 kB / 276.6 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001403/0.01174, allocations: 108.5 kB / 276.7 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000385/0.01213, allocations: 304.2 kB / 277 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.204e-05/0.01216, allocations: 37.38 kB / 277 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.961e-05/0.01223, allocations: 52.33 kB / 277.1 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006555/0.01289, allocations: 0.5461 MB / 277.6 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.0129, allocations: 4.188 kB / 277.6 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.145e-05/0.01294, allocations: 20.38 kB / 277.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.617e-05/0.01296, allocations: 15.94 kB / 277.7 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003329/0.01329, allocations: 182.7 kB / 277.9 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001906/0.0152, allocations: 1.582 MB / 279.4 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003216/0.01552, allocations: 218.1 kB / 279.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001402/0.01566, allocations: 95.33 kB / 279.7 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.097e-05/0.01568, allocations: 8 kB / 279.8 MB, free: 10.37 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.191e-05/0.01571, allocations: 45.38 kB / 279.8 MB, free: 10.32 MB / 266.7 MB Notification: Performance of pre-optimization done (n=31): time 1.863e-06/0.01571, allocations: 4 kB / 279.8 MB, free: 10.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.00124/0.01695, allocations: 0.6927 MB / 280.5 MB, free: 9.582 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.01699, allocations: 81.11 kB / 280.6 MB, free: 9.484 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003475/0.01734, allocations: 406.6 kB / 281 MB, free: 9.07 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.358e-05/0.01736, allocations: 33.7 kB / 281 MB, free: 9.031 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001712/0.01753, allocations: 334.9 kB / 281.3 MB, free: 8.699 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.631e-05/0.01761, allocations: 119 kB / 281.4 MB, free: 8.582 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.01771, allocations: 91.8 kB / 281.5 MB, free: 8.484 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.01786, allocations: 0.5157 MB / 282 MB, free: 7.957 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.01797, allocations: 52.97 kB / 282.1 MB, free: 7.906 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001855/0.01815, allocations: 181.1 kB / 282.3 MB, free: 7.68 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003076/0.01846, allocations: 259.4 kB / 282.5 MB, free: 7.379 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.01846, allocations: 0 / 282.5 MB, free: 7.379 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005457/0.01901, allocations: 371.6 kB / 282.9 MB, free: 7.004 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.01903, allocations: 12.03 kB / 282.9 MB, free: 6.992 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.01903, allocations: 0 / 282.9 MB, free: 6.992 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003922/0.01942, allocations: 115.2 kB / 283 MB, free: 6.871 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002222/0.01965, allocations: 71.91 kB / 283.1 MB, free: 6.801 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001965/0.02161, allocations: 3.862 MB / 287 MB, free: 2.695 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000164/0.02177, allocations: 19.95 kB / 287 MB, free: 2.676 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.285e-05/0.0218, allocations: 16 kB / 287 MB, free: 2.66 MB / 266.7 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.0001277/0.02192, allocations: 192.4 kB / 287.2 MB, free: 2.461 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.239e-05/0.02201, allocations: 55.75 kB / 287.2 MB, free: 2.406 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.196e-05/0.02205, allocations: 47.2 kB / 287.3 MB, free: 2.363 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.02205, allocations: 4 kB / 287.3 MB, free: 2.359 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.02206, allocations: 4 kB / 287.3 MB, free: 2.355 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.02206, allocations: 0 / 287.3 MB, free: 2.355 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009007/0.02296, allocations: 0.8161 MB / 288.1 MB, free: 1.488 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.02297, allocations: 0 / 288.1 MB, free: 1.488 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001232/0.02309, allocations: 47.91 kB / 288.1 MB, free: 1.441 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003254/0.02341, allocations: 107.2 kB / 288.2 MB, free: 1.328 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.66e-05/0.02343, allocations: 8 kB / 288.3 MB, free: 1.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001801/0.02523, allocations: 3.862 MB / 292.1 MB, free: 13.21 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.02523, allocations: 0 / 292.1 MB, free: 13.21 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005502/0.02578, allocations: 0.5883 MB / 292.7 MB, free: 12.6 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.039e-05/0.02583, allocations: 43.73 kB / 292.7 MB, free: 12.55 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.427e-05/0.02587, allocations: 7.984 kB / 292.8 MB, free: 12.55 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002103/0.02608, allocations: 32.02 kB / 292.8 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.46e-05/0.02614, allocations: 31.88 kB / 292.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.709e-05/0.02616, allocations: 12 kB / 292.8 MB, free: 12.47 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001998/0.02636, allocations: 271.1 kB / 293.1 MB, free: 12.21 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02636, allocations: 0 / 293.1 MB, free: 12.21 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004952/0.02686, allocations: 120 kB / 293.2 MB, free: 12.09 MB / 282.7 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 9.602e-05/0.02695, allocations: 103.2 kB / 293.3 MB, free: 11.98 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005775/0.02753, allocations: 0.5535 MB / 293.9 MB, free: 11.39 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.02753, allocations: 0 / 293.9 MB, free: 11.39 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003887/0.02792, allocations: 474.3 kB / 294.3 MB, free: 10.89 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004169/0.02834, allocations: 65.58 kB / 294.4 MB, free: 10.83 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001369/0.02971, allocations: 0.8757 MB / 295.3 MB, free: 9.918 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.845e-05/0.02979, allocations: 117.9 kB / 295.4 MB, free: 9.781 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000127/0.02992, allocations: 43.25 kB / 295.4 MB, free: 9.738 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.619e-05/0.02999, allocations: 28.5 kB / 295.5 MB, free: 9.711 MB / 282.7 MB Notification: Performance of SimCode: time 5.41e-07/0.02999, allocations: 0 / 295.5 MB, free: 9.711 MB / 282.7 MB Notification: Performance of Templates: time 0.008135/0.03812, allocations: 4.711 MB / 300.2 MB, free: 5.055 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CompareTransformers.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2449324219487607]