Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009435/0.0009435, allocations: 79.69 kB / 21.7 MB, free: 2.852 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001001/0.001001, allocations: 160.9 kB / 24.99 MB, free: 8.801 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.92/0.92, allocations: 177 MB / 205.2 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|load.pin_p.reference.gamma|voltageSource.pin_p.reference.gamma|idealTransformer.v1.re|idealTransformer.v1.im|idealTransformer.i1.re|idealTransformer.i1.im|idealTransformer.v2.re|idealTransformer.v2.im|idealTransformer.i2.re|idealTransformer.i2.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer") translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|load.pin_p.reference.gamma|voltageSource.pin_p.reference.gamma|idealTransformer.v1.re|idealTransformer.v1.im|idealTransformer.i1.re|idealTransformer.i1.im|idealTransformer.v2.re|idealTransformer.v2.im|idealTransformer.i2.re|idealTransformer.i2.im",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 273 MB, free: 1.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.608e-05/1.733e-05, allocations: 2.312 kB / 273 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer): time 0.01108/0.01109, allocations: 5.469 MB / 278.5 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002778/0.01387, allocations: 1.818 MB / 280.3 MB, free: 10.46 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000309/0.01418, allocations: 20 kB / 280.3 MB, free: 10.44 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002364/0.01655, allocations: 1.703 MB / 282 MB, free: 8.727 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001132/0.01768, allocations: 0.5941 MB / 282.6 MB, free: 8.129 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006679/0.01835, allocations: 398.9 kB / 283 MB, free: 7.738 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007132/0.01906, allocations: 0.8324 MB / 283.8 MB, free: 6.898 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008397/0.0199, allocations: 0.7393 MB / 284.6 MB, free: 6.141 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004316/0.02033, allocations: 0.5183 MB / 285.1 MB, free: 5.621 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003872/0.02072, allocations: 379 kB / 285.4 MB, free: 5.25 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.459e-05/0.02079, allocations: 80 kB / 285.5 MB, free: 5.172 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000313/0.02111, allocations: 243.6 kB / 285.8 MB, free: 4.934 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.077e-05/0.0212, allocations: 191.3 kB / 285.9 MB, free: 4.746 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000183/0.02138, allocations: 291.2 kB / 286.2 MB, free: 4.461 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006481/0.02203, allocations: 0.7666 MB / 287 MB, free: 3.691 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.02203, allocations: 0 / 287 MB, free: 3.691 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.02203, allocations: 0 / 287 MB, free: 3.691 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.723e-06/0.02204, allocations: 0 / 287 MB, free: 3.691 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.00203/0.02407, allocations: 1.42 MB / 288.4 MB, free: 2.234 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.0241, allocations: 15.98 kB / 288.4 MB, free: 2.219 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002785/0.02689, allocations: 0.8119 MB / 289.2 MB, free: 1.406 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004411/0.02733, allocations: 363.4 kB / 289.6 MB, free: 1.023 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.29e-05/0.02737, allocations: 74.38 kB / 289.7 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.732e-05/0.02747, allocations: 92.38 kB / 289.8 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000922/0.02839, allocations: 0.8135 MB / 290.6 MB, free: 20 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.385e-05/0.02841, allocations: 4.141 kB / 290.6 MB, free: 16 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.09801/0.1264, allocations: 40.3 kB / 290.6 MB, free: 28.54 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.488e-05/0.1265, allocations: 21.81 kB / 290.6 MB, free: 28.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009697/0.1274, allocations: 0.5362 MB / 291.2 MB, free: 28.53 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002786/0.1302, allocations: 2.902 MB / 294.1 MB, free: 27.02 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/0.1312, allocations: 0.7686 MB / 294.8 MB, free: 26.78 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000194/0.1314, allocations: 182.6 kB / 295 MB, free: 26.71 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.711e-05/0.1315, allocations: 32.88 kB / 295.1 MB, free: 26.71 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.104e-05/0.1315, allocations: 43.73 kB / 295.1 MB, free: 26.66 MB / 266.7 MB Notification: Performance of pre-optimization done (n=65): time 2.454e-06/0.1315, allocations: 0 / 295.1 MB, free: 26.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.0006851/0.1322, allocations: 0.5143 MB / 295.6 MB, free: 26.5 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.42e-05/0.1322, allocations: 115.7 kB / 295.7 MB, free: 26.38 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001732/0.1324, allocations: 322.5 kB / 296 MB, free: 26.16 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.443e-05/0.1324, allocations: 36.05 kB / 296.1 MB, free: 26.12 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.1326, allocations: 442.2 kB / 296.5 MB, free: 25.81 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.833e-05/0.1326, allocations: 237.9 kB / 296.7 MB, free: 25.65 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/0.1328, allocations: 148.2 kB / 296.9 MB, free: 25.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.106e-05/0.1328, allocations: 0.5215 MB / 297.4 MB, free: 25.06 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001807/0.133, allocations: 133.4 kB / 297.5 MB, free: 25.04 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002526/0.1333, allocations: 431.9 kB / 298 MB, free: 24.65 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004611/0.1337, allocations: 0.6046 MB / 298.6 MB, free: 24.18 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.1337, allocations: 2.5 kB / 298.6 MB, free: 24.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.0006618/0.1344, allocations: 0.6005 MB / 299.2 MB, free: 23.97 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.1344, allocations: 9.859 kB / 299.2 MB, free: 23.97 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.1344, allocations: 10.72 kB / 299.2 MB, free: 23.97 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.1344, allocations: 15.22 kB / 299.2 MB, free: 23.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003804/0.1348, allocations: 189.4 kB / 299.4 MB, free: 23.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.377e-05/0.1348, allocations: 12.34 kB / 299.4 MB, free: 23.95 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001891/0.135, allocations: 77.78 kB / 299.5 MB, free: 23.89 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.502e-05/0.1351, allocations: 36.78 kB / 299.5 MB, free: 23.89 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (98): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001182/0.1352, allocations: 200.7 kB / 299.7 MB, free: 23.69 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.13e-05/0.1353, allocations: 62.56 kB / 299.8 MB, free: 23.66 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005847/0.1358, allocations: 0.4938 MB / 300.3 MB, free: 23.49 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.1358, allocations: 11.81 kB / 300.3 MB, free: 23.48 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.1358, allocations: 1.031 kB / 300.3 MB, free: 23.48 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.1359, allocations: 5.375 kB / 300.3 MB, free: 23.48 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001193/0.137, allocations: 1.171 MB / 301.5 MB, free: 22.87 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1371, allocations: 0.7031 kB / 301.5 MB, free: 22.87 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002993/0.1374, allocations: 138.1 kB / 301.6 MB, free: 22.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.1374, allocations: 2.75 kB / 301.6 MB, free: 22.86 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.457e-05/0.1374, allocations: 19.14 kB / 301.6 MB, free: 22.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.135e-06/0.1374, allocations: 4.125 kB / 301.6 MB, free: 22.84 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1374, allocations: 1.031 kB / 301.6 MB, free: 22.84 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007156/0.1381, allocations: 0.9744 MB / 302.6 MB, free: 22.26 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.326e-05/0.1381, allocations: 47.16 kB / 302.6 MB, free: 22.23 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.012e-05/0.1382, allocations: 16.73 kB / 302.6 MB, free: 22.22 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.1383, allocations: 17.2 kB / 302.7 MB, free: 22.21 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.394e-05/0.1384, allocations: 47.83 kB / 302.7 MB, free: 22.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-05/0.1384, allocations: 25.41 kB / 302.7 MB, free: 22.19 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.954e-05/0.1385, allocations: 195.7 kB / 302.9 MB, free: 22.06 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1385, allocations: 3.969 kB / 302.9 MB, free: 22.06 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004599/0.139, allocations: 228.4 kB / 303.2 MB, free: 21.99 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.pin_p.reference.gamma,voltageSource.pin_p.reference.gamma) * 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 (72): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001716/0.1392, allocations: 150.4 kB / 303.3 MB, free: 21.88 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005036/0.1397, allocations: 450.5 kB / 303.7 MB, free: 21.78 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1397, allocations: 0.9375 kB / 303.7 MB, free: 21.78 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002273/0.1399, allocations: 223.9 kB / 304 MB, free: 21.72 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003449/0.1402, allocations: 55.84 kB / 304 MB, free: 21.69 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001363/0.1416, allocations: 1.145 MB / 305.2 MB, free: 21.03 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.504e-05/0.1417, allocations: 145.6 kB / 305.3 MB, free: 20.95 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001745/0.1418, allocations: 77.98 kB / 305.4 MB, free: 20.93 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.195e-05/0.1419, allocations: 56.64 kB / 305.4 MB, free: 20.91 MB / 266.7 MB Notification: Performance of SimCode: time 5.31e-07/0.1419, allocations: 0 / 305.4 MB, free: 20.91 MB / 266.7 MB Notification: Performance of Templates: time 0.005795/0.1477, allocations: 4.391 MB / 309.8 MB, free: 17.61 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & ./Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Transformer/Transformer.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: 2.802864216035232]