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.00101/0.00101, allocations: 110.6 kB / 17.06 MB, free: 6.098 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.000961/0.0009611, allocations: 198.9 kB / 18 MB, free: 5.172 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.325/1.325, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009918/0.0009918, allocations: 43.92 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.2352, allocations: 49.44 MB / 400.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.008547/0.2438, allocations: 7.768 MB / 408.5 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004375/0.2482, allocations: 2.652 MB / 411.2 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007126/0.2489, allocations: 71.62 kB / 411.2 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001192/0.2501, allocations: 0.5716 MB / 411.8 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002104/0.2523, allocations: 0.7614 MB / 412.6 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001064/0.2533, allocations: 411.4 kB / 413 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00332/0.2567, allocations: 3.284 MB / 416.2 MB, free: 9.312 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003521/0.2602, allocations: 3.585 MB / 419.8 MB, free: 5.668 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002702/0.2629, allocations: 1.671 MB / 421.5 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002975/0.2659, allocations: 2.028 MB / 423.5 MB, free: 1.969 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005885/0.2665, allocations: 464 kB / 424 MB, free: 1.516 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001128/0.2677, allocations: 0.6714 MB / 424.6 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001065/0.2687, allocations: 1.243 MB / 425.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002218/0.271, allocations: 1.964 MB / 427.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005709/0.2767, allocations: 6.099 MB / 434 MB, free: 7.512 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.2767, allocations: 0 / 434 MB, free: 7.512 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.639e-06/0.2767, allocations: 0 / 434 MB, free: 7.512 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001543/0.2769, allocations: 3.938 kB / 434 MB, free: 7.508 MB / 350.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.008124/0.285, allocations: 3.802 MB / 437.8 MB, free: 3.641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.923e-05/0.2851, allocations: 12.03 kB / 437.8 MB, free: 3.629 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000969/0.2861, allocations: 388.7 kB / 438.2 MB, free: 3.246 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00335/0.2894, allocations: 2.15 MB / 440.3 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001703/0.2896, allocations: 229.8 kB / 440.5 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004035/0.29, allocations: 292 kB / 440.8 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007181/0.2972, allocations: 4.187 MB / 445 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.056e-05/0.2973, allocations: 0 / 445 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002996/0.2976, allocations: 120 kB / 445.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00018/0.2978, allocations: 137.9 kB / 445.3 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005736/0.3036, allocations: 3.493 MB / 448.7 MB, free: 8.531 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01711/0.3207, allocations: 10.76 MB / 459.5 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00285/0.3236, allocations: 2.647 MB / 462.2 MB, free: 10.72 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00249/0.3261, allocations: 1.497 MB / 463.6 MB, free: 9.219 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000256/0.3264, allocations: 126 kB / 463.8 MB, free: 9.078 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.188e-05/0.3265, allocations: 47.56 kB / 463.8 MB, free: 9.023 MB / 382.1 MB Notification: Performance of pre-optimization done (n=128): time 4.749e-06/0.3265, allocations: 3.938 kB / 463.8 MB, free: 9.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=133): time 0.01004/0.3365, allocations: 5.168 MB / 469 MB, free: 3.793 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.648e-05/0.3366, allocations: 102.4 kB / 469.1 MB, free: 3.676 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003396/0.34, allocations: 1.902 MB / 471 MB, free: 1.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001381/0.3402, allocations: 49.7 kB / 471 MB, free: 1.715 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009564/0.3412, allocations: 1.318 MB / 472.4 MB, free: 388 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004173/0.3416, allocations: 461.3 kB / 472.8 MB, free: 15.92 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004692/0.3421, allocations: 267.4 kB / 473.1 MB, free: 15.65 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.028e-05/0.3422, allocations: 313 kB / 473.4 MB, free: 15.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001286/0.3435, allocations: 0.8159 MB / 474.2 MB, free: 14.53 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001491/0.345, allocations: 1.186 MB / 475.4 MB, free: 13.2 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002788/0.3478, allocations: 2.078 MB / 477.5 MB, free: 10.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-05/0.3478, allocations: 4 kB / 477.5 MB, free: 10.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.004412/0.3522, allocations: 2.527 MB / 480 MB, free: 8.434 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.638e-05/0.3522, allocations: 8 kB / 480 MB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.173e-05/0.3523, allocations: 12 kB / 480 MB, free: 8.414 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001933/0.3542, allocations: 479.8 kB / 480.5 MB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001352/0.3556, allocations: 335.5 kB / 480.8 MB, free: 7.617 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005483/0.3611, allocations: 4.407 MB / 485.2 MB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001427/0.3625, allocations: 83.92 kB / 485.3 MB, free: 2.992 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000171/0.3627, allocations: 56 kB / 485.3 MB, free: 2.938 MB / 398.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 (158): * Single equations (assignments): 153 * Array equations: 4 * 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 {(2,26,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001859/0.3646, allocations: 1.052 MB / 486.4 MB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006506/0.3652, allocations: 193.7 kB / 486.6 MB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003869/0.3691, allocations: 2.133 MB / 488.7 MB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.871e-05/0.3692, allocations: 19.98 kB / 488.7 MB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.3692, allocations: 4 kB / 488.7 MB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.3692, allocations: 3.984 kB / 488.7 MB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009969/0.3792, allocations: 5.181 MB / 493.9 MB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.248e-05/0.3792, allocations: 8.219 kB / 493.9 MB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/0.3803, allocations: 223.6 kB / 494.2 MB, free: 10 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001826/0.3821, allocations: 456.8 kB / 494.6 MB, free: 9.555 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001109/0.3822, allocations: 35.98 kB / 494.6 MB, free: 9.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00541/0.3877, allocations: 4.283 MB / 498.9 MB, free: 5.098 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.047e-05/0.3877, allocations: 4.031 kB / 498.9 MB, free: 5.094 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005289/0.393, allocations: 3.259 MB / 0.4904 GB, free: 1.789 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009971/0.394, allocations: 454.8 kB / 0.4908 GB, free: 1.324 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004273/0.3944, allocations: 27.98 kB / 0.4909 GB, free: 1.297 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001215/0.3957, allocations: 99.97 kB / 0.491 GB, free: 1.199 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002365/0.3959, allocations: 100.7 kB / 0.4911 GB, free: 1.102 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.396, allocations: 43.98 kB / 0.4911 GB, free: 1.059 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002266/0.3983, allocations: 1.33 MB / 0.4924 GB, free: 15.73 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3983, allocations: 0 / 0.4924 GB, free: 15.73 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002047/0.4004, allocations: 0.5624 MB / 0.493 GB, free: 15.17 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (104): * Single equations (assignments): 99 * Array equations: 4 * 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 {(2,26,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007101/0.4011, allocations: 230.4 kB / 0.4932 GB, free: 14.95 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003665/0.4048, allocations: 2.188 MB / 0.4953 GB, free: 12.75 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.4048, allocations: 0 / 0.4953 GB, free: 12.75 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001977/0.4068, allocations: 1.219 MB / 0.4965 GB, free: 11.52 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00252/0.4093, allocations: 0.4987 MB / 0.497 GB, free: 11.02 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01019/0.4195, allocations: 5.711 MB / 0.5026 GB, free: 5.246 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002461/0.422, allocations: 2.427 MB / 0.5049 GB, free: 2.789 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001443/0.4234, allocations: 491.4 kB / 0.5054 GB, free: 2.305 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004781/0.4239, allocations: 135.4 kB / 0.5055 GB, free: 2.172 MB / 430.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4239, allocations: 3.938 kB / 0.5055 GB, free: 2.168 MB / 430.1 MB Notification: Performance of Templates: time 0.05285/0.4768, allocations: 30.74 MB / 0.5356 GB, free: 3.742 MB / 462.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches