Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.Machines.Examples.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200,variableFilter="time|source.plug_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench") translateModel(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200,variableFilter="time|source.plug_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001182/0.001183, allocations: 101 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001581/0.001581, allocations: 199.3 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.2 MB / 245.9 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001976/0.0001977, allocations: 7.984 kB / 306.6 MB, free: 1.418 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08646/0.08667, allocations: 51.49 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.2161/0.3028, allocations: 22.94 MB / 381 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01205/0.3149, allocations: 6.845 MB / 387.8 MB, free: 5.195 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005373/0.3203, allocations: 224.3 kB / 388.1 MB, free: 5.148 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005049/0.3253, allocations: 1.489 MB / 389.6 MB, free: 4.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009559/0.3349, allocations: 2.113 MB / 391.7 MB, free: 2.934 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005083/0.34, allocations: 1.521 MB / 393.2 MB, free: 2.023 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02782/0.3679, allocations: 17.82 MB / 411 MB, free: 7.531 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06804/0.4359, allocations: 35.26 MB / 446.3 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01125/0.4472, allocations: 6.183 MB / 452.5 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01302/0.4603, allocations: 7.186 MB / 459.6 MB, free: 6.734 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003885/0.4642, allocations: 1.145 MB / 460.8 MB, free: 5.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006364/0.4706, allocations: 1.363 MB / 462.2 MB, free: 4.227 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00428/0.4749, allocations: 3.15 MB / 465.3 MB, free: 1.066 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005474/0.4804, allocations: 3.595 MB / 468.9 MB, free: 13.45 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03138/0.5118, allocations: 33.24 MB / 0.4904 GB, free: 12.13 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.5118, allocations: 0 / 0.4904 GB, free: 12.13 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.5118, allocations: 4 kB / 0.4904 GB, free: 12.12 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0009226/0.5127, allocations: 0 / 0.4904 GB, free: 12.12 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4885 * Number of variables: 4885 Notification: Performance of Generate backend data structure: time 0.04973/0.5625, allocations: 18.24 MB / 0.5082 GB, free: 9.762 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.5625, allocations: 8.031 kB / 0.5082 GB, free: 9.754 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04572/0.6083, allocations: 8.399 MB / 0.5164 GB, free: 1.324 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02511/0.6334, allocations: 11.16 MB / 0.5273 GB, free: 6.074 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00145/0.6349, allocations: 1.333 MB / 0.5286 GB, free: 4.738 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006012/0.6409, allocations: 1.746 MB / 0.5303 GB, free: 2.992 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4152/1.056, allocations: 28.48 MB / 0.5581 GB, free: 81.52 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005472/1.057, allocations: 20.11 kB / 0.5581 GB, free: 81.52 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004628/1.061, allocations: 0.7283 MB / 0.5588 GB, free: 81.52 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008167/1.062, allocations: 0.8651 MB / 0.5597 GB, free: 81.48 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04277/1.105, allocations: 24.67 MB / 0.5838 GB, free: 66.8 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1187/1.224, allocations: 88.62 MB / 0.6703 GB, free: 10.01 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0299/1.254, allocations: 35.15 MB / 0.7047 GB, free: 3.582 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007781/1.254, allocations: 291.1 kB / 0.7049 GB, free: 3.281 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.862e-05/1.255, allocations: 107.1 kB / 0.705 GB, free: 3.164 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=589): time 7.384e-06/1.255, allocations: 0 / 0.705 GB, free: 3.164 MB / 0.4982 GB Notification: Performance of matching and sorting (n=589): time 0.03925/1.294, allocations: 16.78 MB / 0.7214 GB, free: 2.137 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.307e-05/1.294, allocations: 141.7 kB / 0.7216 GB, free: 1.977 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009035/1.303, allocations: 6.363 MB / 0.7278 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007962/1.304, allocations: 125.7 kB / 0.7279 GB, free: 11.51 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004643/1.308, allocations: 7.593 MB / 0.7353 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002199/1.311, allocations: 2.05 MB / 0.7373 GB, free: 1.844 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005703/1.311, allocations: 208 kB / 0.7375 GB, free: 1.641 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0005456/1.312, allocations: 0.7496 MB / 0.7382 GB, free: 0.8867 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.355/1.667, allocations: 4.779 MB / 0.7429 GB, free: 185.8 MB / 0.5295 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01075/1.678, allocations: 9.469 MB / 0.7521 GB, free: 179.2 MB / 0.5295 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01103/1.689, allocations: 7.176 MB / 0.7592 GB, free: 176.1 MB / 0.5295 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002768/1.689, allocations: 45.38 kB / 0.7592 GB, free: 176.1 MB / 0.5295 GB Notification: Performance of matching and sorting (n=1342) (initialization): time 0.02475/1.714, allocations: 15.54 MB / 0.7744 GB, free: 170.1 MB / 0.5295 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001545/1.714, allocations: 76.38 kB / 0.7744 GB, free: 170.1 MB / 0.5295 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002566/1.714, allocations: 155.8 kB / 0.7746 GB, free: 170.1 MB / 0.5295 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005024/1.719, allocations: 1.785 MB / 0.7763 GB, free: 169.8 MB / 0.5295 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008445/1.728, allocations: 2.337 MB / 0.7786 GB, free: 169.5 MB / 0.5295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01382/1.742, allocations: 12.37 MB / 0.7907 GB, free: 163.1 MB / 0.5295 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007135/1.749, allocations: 1.347 MB / 0.792 GB, free: 162.4 MB / 0.5295 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001479/1.75, allocations: 0.5329 MB / 0.7925 GB, free: 162.4 MB / 0.5295 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 726 * 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 (1237): * Single equations (assignments): 1228 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,72.2%) 92} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009968/1.76, allocations: 7.135 MB / 0.7995 GB, free: 159 MB / 0.5295 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001053/1.761, allocations: 0.6113 MB / 0.8001 GB, free: 158.7 MB / 0.5295 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01238/1.774, allocations: 10.36 MB / 0.8102 GB, free: 151.2 MB / 0.5295 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008975/1.783, allocations: 7.983 MB / 0.818 GB, free: 144.2 MB / 0.5295 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.019e-05/1.783, allocations: 23.81 kB / 0.818 GB, free: 144.2 MB / 0.5295 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.56e-05/1.783, allocations: 27.23 kB / 0.8181 GB, free: 144.2 MB / 0.5295 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03683/1.82, allocations: 26.18 MB / 0.8436 GB, free: 119.2 MB / 0.5295 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.918e-05/1.82, allocations: 12.03 kB / 0.8436 GB, free: 119.2 MB / 0.5295 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003464/1.823, allocations: 0.9829 MB / 0.8446 GB, free: 118.2 MB / 0.5295 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004787/1.828, allocations: 1.567 MB / 0.8461 GB, free: 116.6 MB / 0.5295 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005914/1.828, allocations: 120 kB / 0.8462 GB, free: 116.5 MB / 0.5295 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01209/1.841, allocations: 11.99 MB / 0.858 GB, free: 104.4 MB / 0.5295 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/1.841, allocations: 15.94 kB / 0.858 GB, free: 104.4 MB / 0.5295 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01559/1.856, allocations: 15.27 MB / 0.8729 GB, free: 88.64 MB / 0.5295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00323/1.859, allocations: 1.452 MB / 0.8743 GB, free: 87.16 MB / 0.5295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001058/1.861, allocations: 108 kB / 0.8744 GB, free: 87.05 MB / 0.5295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002742/1.863, allocations: 315.7 kB / 0.8747 GB, free: 86.75 MB / 0.5295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006518/1.864, allocations: 408.9 kB / 0.8751 GB, free: 86.34 MB / 0.5295 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002992/1.864, allocations: 156 kB / 0.8753 GB, free: 86.19 MB / 0.5295 GB Notification: Performance of sorting global known variables: time 0.0053/1.87, allocations: 4.266 MB / 0.8794 GB, free: 81.96 MB / 0.5295 GB Notification: Performance of sort global known variables: time 2.4e-07/1.87, allocations: 2.25 kB / 0.8794 GB, free: 81.96 MB / 0.5295 GB Notification: Performance of remove unused functions: time 0.0103/1.88, allocations: 4.062 MB / 0.8834 GB, free: 77.88 MB / 0.5295 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 1 (source.plug_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 (518): * Single equations (assignments): 509 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,80.6%) 92} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009749/1.881, allocations: 303.1 kB / 0.8837 GB, free: 77.58 MB / 0.5295 GB Notification: Performance of simCode: created initialization part: time 0.01429/1.895, allocations: 11.58 MB / 0.895 GB, free: 65.95 MB / 0.5295 GB Notification: Performance of simCode: created event and clocks part: time 8.946e-06/1.895, allocations: 0 / 0.895 GB, free: 65.95 MB / 0.5295 GB Notification: Performance of simCode: created simulation system equations: time 0.005823/1.901, allocations: 4.839 MB / 0.8997 GB, free: 61.07 MB / 0.5295 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005672/1.907, allocations: 1.394 MB / 0.9011 GB, free: 59.7 MB / 0.5295 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2523/2.159, allocations: 35.16 MB / 0.9354 GB, free: 178.9 MB / 0.5295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02144/2.181, allocations: 11.53 MB / 0.9467 GB, free: 177.8 MB / 0.5295 GB Notification: Performance of simCode: alias equations: time 0.01058/2.191, allocations: 3.746 MB / 0.9503 GB, free: 177.5 MB / 0.5295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002047/2.193, allocations: 0.5121 MB / 0.9508 GB, free: 177.5 MB / 0.5295 GB Notification: Performance of SimCode: time 1.262e-06/2.193, allocations: 0 / 0.9508 GB, free: 177.5 MB / 0.5295 GB Notification: Performance of Templates: time 0.1496/2.343, allocations: 97.58 MB / 1.046 GB, free: 99.35 MB / 0.5295 GB make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.makefile (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & ./Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Machines/Examples/TransformerTestbench/TransformerTestbench.csv","../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches