Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.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.QuasiStatic.Machines.Examples.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200,variableFilter="time|source.plug_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001951/0.001951, allocations: 107.5 kB / 17.16 MB, free: 6.082 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.002465/0.002465, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.366/2.366, allocations: 222.9 MB / 241.7 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002247/0.002247, allocations: 51.03 kB / 300.6 MB, free: 6.301 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1769/0.1792, allocations: 49.46 MB / 350.1 MB, free: 4.84 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.3994/0.5787, allocations: 28.03 MB / 378.1 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02817/0.6069, allocations: 7.058 MB / 385.1 MB, free: 7.191 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01171/0.6187, allocations: 256.9 kB / 385.4 MB, free: 7.137 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.04566/0.6645, allocations: 12.45 MB / 397.9 MB, free: 1.473 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02033/0.6849, allocations: 2.405 MB / 400.3 MB, free: 15.58 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01255/0.6975, allocations: 1.705 MB / 402 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.03981/0.7374, allocations: 17.43 MB / 419.4 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1412/0.8786, allocations: 37.21 MB / 456.6 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03056/0.9093, allocations: 8.724 MB / 465.3 MB, free: 2.691 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03399/0.9434, allocations: 10.65 MB / 476 MB, free: 8 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01296/0.9564, allocations: 2.074 MB / 478.1 MB, free: 5.926 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01927/0.9757, allocations: 2.32 MB / 480.4 MB, free: 3.609 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01645/0.9923, allocations: 4.612 MB / 485 MB, free: 14.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.03937/1.032, allocations: 9.916 MB / 494.9 MB, free: 5.027 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.07463/1.106, allocations: 34.23 MB / 0.5167 GB, free: 2.711 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.23e-05/1.107, allocations: 3.938 kB / 0.5167 GB, free: 2.707 MB / 430.1 MB Notification: Performance of FrontEnd: time 8.116e-06/1.107, allocations: 3.984 kB / 0.5167 GB, free: 2.703 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.001584/1.108, allocations: 0 / 0.5167 GB, free: 2.703 MB / 430.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.8392/1.947, allocations: 22.04 MB / 0.5383 GB, free: 106.9 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.031e-05/1.948, allocations: 11.88 kB / 0.5383 GB, free: 106.9 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08804/2.036, allocations: 8.319 MB / 0.5464 GB, free: 103.1 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03917/2.075, allocations: 11.26 MB / 0.5574 GB, free: 92.71 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002228/2.077, allocations: 1.336 MB / 0.5587 GB, free: 91.38 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01093/2.088, allocations: 1.753 MB / 0.5604 GB, free: 89.64 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1219/2.21, allocations: 28.77 MB / 0.5885 GB, free: 60.82 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001221/2.211, allocations: 11.91 kB / 0.5885 GB, free: 60.81 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008734/2.22, allocations: 0.7261 MB / 0.5892 GB, free: 60.09 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001181/2.221, allocations: 0.8648 MB / 0.5901 GB, free: 59.23 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09055/2.312, allocations: 24.82 MB / 0.6143 GB, free: 34.38 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2962/2.608, allocations: 88.05 MB / 0.7003 GB, free: 8.645 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4408/3.049, allocations: 35.18 MB / 0.7346 GB, free: 127.5 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01802/3.067, allocations: 5.385 MB / 0.7399 GB, free: 127.4 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001146/3.068, allocations: 200.5 kB / 0.7401 GB, free: 127.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001185/3.068, allocations: 92.59 kB / 0.7402 GB, free: 127.2 MB / 494.1 MB Notification: Performance of pre-optimization done (n=589): time 1.624e-05/3.069, allocations: 3.828 kB / 0.7402 GB, free: 127.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=589): time 0.06587/3.134, allocations: 14.82 MB / 0.7547 GB, free: 122.5 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001361/3.135, allocations: 142.4 kB / 0.7548 GB, free: 122.4 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01929/3.154, allocations: 6.413 MB / 0.7611 GB, free: 120.3 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001657/3.156, allocations: 117.3 kB / 0.7612 GB, free: 120.2 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.006867/3.163, allocations: 7.593 MB / 0.7686 GB, free: 114.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003718/3.166, allocations: 2.052 MB / 0.7706 GB, free: 113.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006674/3.173, allocations: 2.1 MB / 0.7726 GB, free: 112.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.769e-05/3.173, allocations: 301.1 kB / 0.7729 GB, free: 111.9 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01228/3.185, allocations: 4.819 MB / 0.7776 GB, free: 110.2 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01845/3.204, allocations: 9.55 MB / 0.787 GB, free: 102.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02985/3.234, allocations: 15.46 MB / 0.8021 GB, free: 87.19 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002211/3.234, allocations: 44 kB / 0.8021 GB, free: 87.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=1342) (initialization): time 0.04516/3.279, allocations: 15.54 MB / 0.8173 GB, free: 71.55 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000181/3.279, allocations: 79.94 kB / 0.8174 GB, free: 71.47 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003535/3.28, allocations: 156 kB / 0.8175 GB, free: 71.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008251/3.288, allocations: 1.665 MB / 0.8191 GB, free: 69.65 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01356/3.302, allocations: 2.351 MB / 0.8214 GB, free: 67.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02042/3.322, allocations: 10.84 MB / 0.832 GB, free: 56.33 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01391/3.336, allocations: 1.354 MB / 0.8333 GB, free: 54.96 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003173/3.339, allocations: 0.5281 MB / 0.8338 GB, free: 54.43 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 728 * 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 (1249): * Single equations (assignments): 1240 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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 {(6,80,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.02083/3.36, allocations: 7.153 MB / 0.8408 GB, free: 47.26 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002332/3.363, allocations: 0.615 MB / 0.8414 GB, free: 46.64 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02842/3.391, allocations: 10.28 MB / 0.8515 GB, free: 36.25 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01922/3.41, allocations: 7.931 MB / 0.8592 GB, free: 28.24 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-05/3.41, allocations: 12 kB / 0.8592 GB, free: 28.23 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001511/3.411, allocations: 27.89 kB / 0.8593 GB, free: 28.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07428/3.485, allocations: 26.25 MB / 0.8849 GB, free: 1.504 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.934e-05/3.485, allocations: 8 kB / 0.8849 GB, free: 1.496 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006605/3.492, allocations: 1.006 MB / 0.8859 GB, free: 500 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00829/3.5, allocations: 1.466 MB / 0.8873 GB, free: 15.02 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001686/3.502, allocations: 124 kB / 0.8874 GB, free: 14.89 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02486/3.527, allocations: 10.41 MB / 0.8976 GB, free: 4.363 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.016e-05/3.527, allocations: 12 kB / 0.8976 GB, free: 4.352 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4359/3.963, allocations: 14.38 MB / 0.9116 GB, free: 154.2 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006852/3.969, allocations: 1.453 MB / 0.9131 GB, free: 153.7 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003159/3.973, allocations: 111.8 kB / 0.9132 GB, free: 153.6 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007278/3.98, allocations: 322 kB / 0.9135 GB, free: 153.5 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001805/3.982, allocations: 406.1 kB / 0.9139 GB, free: 153.5 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008999/3.983, allocations: 175.9 kB / 0.914 GB, free: 153.4 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.01568/3.998, allocations: 4.301 MB / 0.9182 GB, free: 151.9 MB / 0.4982 GB Notification: Performance of sort global known variables: time 8.02e-07/3.999, allocations: 0 / 0.9182 GB, free: 151.9 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.02444/4.023, allocations: 4.036 MB / 0.9222 GB, free: 150.6 MB / 0.4982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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 (534): * Single equations (assignments): 525 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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 {(6,80,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003116/4.026, allocations: 337.8 kB / 0.9225 GB, free: 150.4 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.0354/4.062, allocations: 11.5 MB / 0.9337 GB, free: 146.1 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 2.433e-05/4.062, allocations: 3.344 kB / 0.9337 GB, free: 146.1 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.01403/4.076, allocations: 4.731 MB / 0.9384 GB, free: 144.2 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01905/4.095, allocations: 1.475 MB / 0.9398 GB, free: 143.7 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1156/4.211, allocations: 36.24 MB / 0.9752 GB, free: 116.8 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03689/4.247, allocations: 10.91 MB / 0.9858 GB, free: 108.3 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005825/4.253, allocations: 0.5793 MB / 0.9864 GB, free: 107.8 MB / 0.4982 GB Notification: Performance of SimCode: time 4.098e-06/4.253, allocations: 0 / 0.9864 GB, free: 107.8 MB / 0.4982 GB Notification: Performance of Templates: time 0.9065/5.16, allocations: 281.7 MB / 1.261 GB, free: 5.539 MB / 0.5138 GB make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Machines/Examples/TransformerTestbench/TransformerTestbench.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches