Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Electrical.SingularTransformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 79.75 kB / 21.19 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 165 kB / 24.56 MB, free: 8 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9592/0.9592, allocations: 177.1 MB / 205 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2812/0.2812, allocations: 34.26 MB / 295.8 MB, free: 0.7422 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.SingularTransformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|basicTransformer.i2|basicTransformer.i1",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Electrical.SingularTransformer") translateModel(ModelicaTest.Electrical.SingularTransformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|basicTransformer.i2|basicTransformer.i1",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Electrical.SingularTransformer") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 378 MB, free: 2.688 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.084e-05/2.238e-05, allocations: 5.266 kB / 378 MB, free: 2.684 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.SingularTransformer): time 0.002783/0.002805, allocations: 2.596 MB / 380.6 MB, free: 68 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001003/0.003809, allocations: 0.658 MB / 381.3 MB, free: 15.4 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.003918, allocations: 7.938 kB / 381.3 MB, free: 15.39 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00013/0.004048, allocations: 39.64 kB / 381.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001111/0.004159, allocations: 79.27 kB / 381.4 MB, free: 15.28 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002766/0.004435, allocations: 79.77 kB / 381.5 MB, free: 15.2 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002482/0.004683, allocations: 306.5 kB / 381.8 MB, free: 14.9 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.004826, allocations: 60.73 kB / 381.8 MB, free: 14.84 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002112/0.005037, allocations: 171.7 kB / 382 MB, free: 14.67 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001098/0.005147, allocations: 87.77 kB / 382.1 MB, free: 14.58 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 3.093e-05/0.005178, allocations: 24 kB / 382.1 MB, free: 14.56 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.924e-05/0.005237, allocations: 35.92 kB / 382.1 MB, free: 14.52 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 5.075e-05/0.005288, allocations: 59.75 kB / 382.2 MB, free: 14.46 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 7.505e-05/0.005363, allocations: 87.81 kB / 382.3 MB, free: 14.38 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002429/0.005606, allocations: 199.2 kB / 382.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.345e-06/0.005608, allocations: 0 / 382.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.005609, allocations: 4 kB / 382.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.531e-06/0.005615, allocations: 0 / 382.5 MB, free: 14.18 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.0006486/0.006263, allocations: 0.5624 MB / 383 MB, free: 13.58 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.006306, allocations: 16.02 kB / 383.1 MB, free: 13.56 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001503/0.006456, allocations: 52.75 kB / 383.1 MB, free: 13.51 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002203/0.006676, allocations: 204.7 kB / 383.3 MB, free: 13.29 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.006692, allocations: 16.88 kB / 383.3 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.38e-05/0.006726, allocations: 20.38 kB / 383.3 MB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002634/0.006989, allocations: 238.4 kB / 383.6 MB, free: 12.99 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.006998, allocations: 4.188 kB / 383.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.822e-05/0.007017, allocations: 8.375 kB / 383.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.007027, allocations: 7.938 kB / 383.6 MB, free: 12.97 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001225/0.00715, allocations: 78.94 kB / 383.7 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008303/0.00798, allocations: 0.7338 MB / 384.4 MB, free: 12.1 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001631/0.008143, allocations: 98.97 kB / 384.5 MB, free: 11.99 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.585e-05/0.008209, allocations: 39.67 kB / 384.5 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.618e-05/0.008225, allocations: 0 / 384.5 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.728e-05/0.008252, allocations: 41.39 kB / 384.6 MB, free: 11.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.372e-06/0.008254, allocations: 0 / 384.6 MB, free: 11.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004054/0.008659, allocations: 165.2 kB / 384.7 MB, free: 11.72 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.737e-05/0.008687, allocations: 55.41 kB / 384.8 MB, free: 11.66 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/0.008832, allocations: 245.6 kB / 385 MB, free: 11.4 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/0.008846, allocations: 33.7 kB / 385.1 MB, free: 11.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.367e-05/0.00893, allocations: 218.9 kB / 385.3 MB, free: 11.14 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.392e-05/0.008954, allocations: 43.64 kB / 385.3 MB, free: 11.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.579e-05/0.009, allocations: 43.33 kB / 385.4 MB, free: 11.05 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.009112, allocations: 0.5001 MB / 385.9 MB, free: 10.54 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.672e-05/0.009159, allocations: 19.98 kB / 385.9 MB, free: 10.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.326e-05/0.009222, allocations: 70.42 kB / 386 MB, free: 10.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001504/0.009372, allocations: 128.5 kB / 386.1 MB, free: 10.28 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.009375, allocations: 7.875 kB / 386.1 MB, free: 10.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002053/0.00958, allocations: 179.1 kB / 386.3 MB, free: 10.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.009592, allocations: 4 kB / 386.3 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.009598, allocations: 4 kB / 386.3 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001571/0.009755, allocations: 31.66 kB / 386.3 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.995e-05/0.009855, allocations: 31.98 kB / 386.3 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008749/0.01073, allocations: 1.752 MB / 388.1 MB, free: 8.145 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.191e-05/0.01079, allocations: 15.88 kB / 388.1 MB, free: 8.129 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.1e-05/0.0108, allocations: 12 kB / 388.1 MB, free: 8.117 MB / 362.7 MB Warning: Assuming fixed start value for the following 1 variables: basicTransformer.i2:VARIABLE(start = 0.0 unit = \"A\" fixed = true ) \"Current flowing from pos. to neg. pin of port 2\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001291/0.01093, allocations: 172.6 kB / 388.3 MB, free: 7.938 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.992e-05/0.01096, allocations: 19.91 kB / 388.3 MB, free: 7.918 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.862e-05/0.01098, allocations: 25.45 kB / 388.3 MB, free: 7.898 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.01098, allocations: 0 / 388.3 MB, free: 7.898 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.01099, allocations: 3.938 kB / 388.3 MB, free: 7.895 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.01099, allocations: 0 / 388.3 MB, free: 7.895 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001689/0.01116, allocations: 196.4 kB / 388.5 MB, free: 7.668 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.01116, allocations: 0 / 388.5 MB, free: 7.668 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.529e-05/0.0112, allocations: 16 kB / 388.5 MB, free: 7.652 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.186e-05/0.0113, allocations: 43.58 kB / 388.6 MB, free: 7.605 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.01131, allocations: 0 / 388.6 MB, free: 7.605 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006678/0.01197, allocations: 1.744 MB / 390.3 MB, free: 5.734 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.01198, allocations: 8.109 kB / 390.3 MB, free: 5.727 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002395/0.01222, allocations: 307.7 kB / 390.6 MB, free: 5.402 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.568e-05/0.01223, allocations: 11.91 kB / 390.6 MB, free: 5.391 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.01225, allocations: 8 kB / 390.7 MB, free: 5.383 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.36e-05/0.01232, allocations: 15.98 kB / 390.7 MB, free: 5.367 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.418e-05/0.01235, allocations: 3.984 kB / 390.7 MB, free: 5.363 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.825e-06/0.01236, allocations: 8 kB / 390.7 MB, free: 5.355 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.364e-05/0.01243, allocations: 175.1 kB / 390.8 MB, free: 5.184 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01243, allocations: 4.031 kB / 390.9 MB, free: 5.18 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001977/0.01263, allocations: 67.83 kB / 390.9 MB, free: 5.113 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (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 (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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 7.401e-05/0.01271, allocations: 95.36 kB / 391 MB, free: 5.012 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003312/0.01304, allocations: 264.5 kB / 391.3 MB, free: 4.734 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.01304, allocations: 4 kB / 391.3 MB, free: 4.73 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001566/0.0132, allocations: 225.6 kB / 391.5 MB, free: 4.488 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001991/0.0134, allocations: 27.92 kB / 391.5 MB, free: 4.461 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000768/0.01416, allocations: 474.5 kB / 392 MB, free: 3.965 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.358e-05/0.01421, allocations: 79.97 kB / 392.1 MB, free: 3.867 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.501e-05/0.01425, allocations: 17.48 kB / 392.1 MB, free: 3.852 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.303e-05/0.01429, allocations: 16.5 kB / 392.1 MB, free: 3.836 MB / 362.7 MB Notification: Performance of SimCode: time 4.61e-07/0.01429, allocations: 0 / 392.1 MB, free: 3.836 MB / 362.7 MB Notification: Performance of Templates: time 0.003766/0.01805, allocations: 2.075 MB / 394.2 MB, free: 1.797 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Electrical.SingularTransformer.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Electrical.SingularTransformer.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Electrical.SingularTransformer.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Electrical.SingularTransformer.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Electrical.SingularTransformer.sim & ./ModelicaTest_4.1.0_ModelicaTest.Electrical.SingularTransformer -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Electrical.SingularTransformer.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Electrical.SingularTransformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Electrical/SingularTransformer/SingularTransformer.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.1279294011183083]