Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.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.Machines.Examples.Transformers.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench") translateModel(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.001088/0.001088, allocations: 178.4 kB / 17.2 MB, free: 5.914 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.432/1.432, allocations: 223.2 MB / 241.1 MB, free: 5.234 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002274/0.0002274, allocations: 11.06 kB / 300.7 MB, free: 5.57 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09069/0.09093, allocations: 50.41 MB / 351.1 MB, free: 11.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.007935/0.09891, allocations: 6.35 MB / 357.5 MB, free: 5.047 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005887/0.1049, allocations: 2.584 MB / 360.1 MB, free: 2.457 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001624/0.1065, allocations: 55.69 kB / 360.1 MB, free: 2.402 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001724/0.1083, allocations: 461.6 kB / 360.6 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002735/0.111, allocations: 0.5958 MB / 361.2 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.1121, allocations: 267.6 kB / 361.4 MB, free: 1.09 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003923/0.116, allocations: 2.094 MB / 363.5 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003159/0.1192, allocations: 2.495 MB / 366 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001748/0.121, allocations: 1.113 MB / 367.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002204/0.1232, allocations: 1.416 MB / 368.6 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005319/0.1238, allocations: 188 kB / 368.7 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001113/0.1249, allocations: 359.7 kB / 369.1 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009476/0.1258, allocations: 0.8647 MB / 370 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001031/0.1269, allocations: 0.6563 MB / 370.6 MB, free: 7.852 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005365/0.1323, allocations: 4.948 MB / 375.6 MB, free: 2.891 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1323, allocations: 4 kB / 375.6 MB, free: 2.887 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1323, allocations: 4 kB / 375.6 MB, free: 2.883 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002088/0.1325, allocations: 0 / 375.6 MB, free: 2.883 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: 772 * Number of variables: 772 Notification: Performance of Generate backend data structure: time 0.007745/0.1403, allocations: 3.217 MB / 378.8 MB, free: 15.6 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.1403, allocations: 8.031 kB / 378.8 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001369/0.1417, allocations: 387.7 kB / 379.2 MB, free: 15.21 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003938/0.1457, allocations: 2.033 MB / 381.2 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001742/0.1459, allocations: 221.8 kB / 381.4 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004985/0.1464, allocations: 287.9 kB / 381.7 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007016/0.1534, allocations: 4.152 MB / 385.9 MB, free: 8.418 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.676e-05/0.1535, allocations: 0 / 385.9 MB, free: 8.418 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002678/0.1537, allocations: 116 kB / 386 MB, free: 8.305 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001555/0.1539, allocations: 141.9 kB / 386.1 MB, free: 8.164 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006098/0.16, allocations: 3.478 MB / 389.6 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02034/0.1804, allocations: 10.98 MB / 400.6 MB, free: 9.508 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003032/0.1835, allocations: 2.63 MB / 403.2 MB, free: 6.664 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002819/0.1838, allocations: 130.2 kB / 403.3 MB, free: 6.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.461e-05/0.1839, allocations: 51.55 kB / 403.4 MB, free: 6.461 MB / 334.1 MB Notification: Performance of pre-optimization done (n=128): time 5.35e-06/0.1839, allocations: 0 / 403.4 MB, free: 6.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=132): time 0.009416/0.1933, allocations: 5.679 MB / 409 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.753e-05/0.1934, allocations: 90.42 kB / 409.1 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00276/0.1962, allocations: 1.894 MB / 411 MB, free: 14.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001621/0.1963, allocations: 45.7 kB / 411.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009154/0.1973, allocations: 1.326 MB / 412.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003783/0.1977, allocations: 457.4 kB / 412.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.728e-05/0.1977, allocations: 28.11 kB / 412.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.1979, allocations: 369.9 kB / 413.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001251/0.1992, allocations: 0.8276 MB / 414.1 MB, free: 11.56 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001439/0.2006, allocations: 1.186 MB / 415.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001428/0.2021, allocations: 1.029 MB / 416.3 MB, free: 9.203 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.2021, allocations: 4 kB / 416.3 MB, free: 9.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.004964/0.207, allocations: 2.561 MB / 418.8 MB, free: 6.625 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.603e-05/0.2071, allocations: 8 kB / 418.9 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.876e-05/0.2071, allocations: 12 kB / 418.9 MB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002905/0.2101, allocations: 0.4969 MB / 419.4 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002202/0.2123, allocations: 335.5 kB / 419.7 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008698/0.221, allocations: 4.358 MB / 424 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002218/0.2233, allocations: 95.81 kB / 424.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002816/0.2236, allocations: 60 kB / 424.2 MB, free: 1.133 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (154): * Single equations (assignments): 149 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * 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 {(2,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003029/0.2266, allocations: 1.052 MB / 425.2 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2181/0.4447, allocations: 193.1 kB / 425.4 MB, free: 61.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004459/0.4493, allocations: 2.184 MB / 427.6 MB, free: 61.54 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.843e-05/0.4493, allocations: 19.44 kB / 427.6 MB, free: 61.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.204e-05/0.4494, allocations: 4.531 kB / 427.6 MB, free: 61.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.78e-05/0.4494, allocations: 5.766 kB / 427.7 MB, free: 61.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01075/0.4601, allocations: 5.15 MB / 432.8 MB, free: 61.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.325e-05/0.4602, allocations: 1.875 kB / 432.8 MB, free: 61.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/0.4612, allocations: 226.2 kB / 433 MB, free: 61.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001883/0.4631, allocations: 482.2 kB / 433.5 MB, free: 61.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/0.4633, allocations: 29.67 kB / 433.5 MB, free: 61.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005244/0.4685, allocations: 4.3 MB / 437.8 MB, free: 59.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/0.4686, allocations: 1.062 kB / 437.8 MB, free: 59.47 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006495/0.4751, allocations: 3.299 MB / 441.1 MB, free: 58.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001574/0.4767, allocations: 465.5 kB / 441.6 MB, free: 57.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003263/0.4771, allocations: 28.22 kB / 441.6 MB, free: 57.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.4781, allocations: 106.8 kB / 441.7 MB, free: 57.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002936/0.4784, allocations: 92.05 kB / 441.8 MB, free: 57.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.808e-05/0.4785, allocations: 46.44 kB / 441.8 MB, free: 57.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002244/0.4808, allocations: 1.325 MB / 443.2 MB, free: 57.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4808, allocations: 3.938 kB / 443.2 MB, free: 57.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002486/0.4833, allocations: 0.5456 MB / 443.7 MB, free: 57.37 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (transformer.l2sigma.inductor[2].i,transformer.l2sigma.inductor[3].i) * 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 (98): * Single equations (assignments): 93 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * 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 {(2,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006641/0.484, allocations: 187.9 kB / 443.9 MB, free: 57.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003899/0.4879, allocations: 2.234 MB / 446.1 MB, free: 56.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.4879, allocations: 0 / 446.1 MB, free: 56.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001792/0.4897, allocations: 1.221 MB / 447.4 MB, free: 55.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002285/0.492, allocations: 485.4 kB / 447.8 MB, free: 55.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/0.503, allocations: 6.749 MB / 454.6 MB, free: 49.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002188/0.5052, allocations: 2.478 MB / 457.1 MB, free: 46.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001965/0.5072, allocations: 489 kB / 457.5 MB, free: 46.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004146/0.5076, allocations: 131.4 kB / 457.7 MB, free: 46.18 MB / 350.1 MB Notification: Performance of SimCode: time 1.813e-06/0.5076, allocations: 0 / 457.7 MB, free: 46.18 MB / 350.1 MB Notification: Performance of Templates: time 0.04222/0.5499, allocations: 27.97 MB / 485.6 MB, free: 18.5 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/Transformers/TransformerTestbench/TransformerTestbench.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches