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.001097/0.001097, allocations: 106.6 kB / 17.59 MB, free: 5.418 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.001124/0.001124, allocations: 191.3 kB / 18.52 MB, free: 4.496 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.327/1.327, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001091/0.001092, allocations: 43.95 kB / 301.3 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08809/0.0892, allocations: 49.45 MB / 350.7 MB, free: 4.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.1838/0.2731, allocations: 28.58 MB / 379.3 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0141/0.2872, allocations: 7.127 MB / 386.5 MB, free: 7.453 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005777/0.293, allocations: 264.5 kB / 386.7 MB, free: 7.402 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02516/0.3182, allocations: 13.11 MB / 399.8 MB, free: 236 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01083/0.3291, allocations: 2.681 MB / 402.5 MB, free: 14.06 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006423/0.3355, allocations: 1.843 MB / 404.4 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02197/0.3575, allocations: 17.96 MB / 422.3 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07008/0.4276, allocations: 44.63 MB / 466.9 MB, free: 1.414 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01592/0.4436, allocations: 9.916 MB / 476.9 MB, free: 7.488 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01643/0.4601, allocations: 11.07 MB / 487.9 MB, free: 12.39 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007224/0.4673, allocations: 2.918 MB / 490.8 MB, free: 9.469 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01038/0.4777, allocations: 3.172 MB / 494 MB, free: 6.297 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01016/0.4879, allocations: 5.476 MB / 499.5 MB, free: 0.8086 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02102/0.509, allocations: 10.82 MB / 0.4984 GB, free: 5.949 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3874/0.8964, allocations: 38.76 MB / 0.5362 GB, free: 79.18 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.8964, allocations: 1.25 kB / 0.5362 GB, free: 79.18 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.8965, allocations: 0.8125 kB / 0.5362 GB, free: 79.18 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0009267/0.8974, allocations: 0 / 0.5362 GB, free: 79.18 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.07228/0.9697, allocations: 21.93 MB / 0.5576 GB, free: 68.25 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.9697, allocations: 11.28 kB / 0.5576 GB, free: 68.25 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04572/1.015, allocations: 8.322 MB / 0.5658 GB, free: 64.47 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02283/1.038, allocations: 11.27 MB / 0.5768 GB, free: 54.26 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001074/1.039, allocations: 1.337 MB / 0.5781 GB, free: 52.93 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008874/1.048, allocations: 1.757 MB / 0.5798 GB, free: 51.18 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07245/1.121, allocations: 28.72 MB / 0.6078 GB, free: 22.43 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008169/1.122, allocations: 15.81 kB / 0.6078 GB, free: 22.41 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008265/1.13, allocations: 0.7305 MB / 0.6086 GB, free: 21.7 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006657/1.131, allocations: 0.8454 MB / 0.6094 GB, free: 20.85 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05342/1.184, allocations: 24.78 MB / 0.6336 GB, free: 12.04 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4091/1.593, allocations: 88 MB / 0.7195 GB, free: 137.1 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02496/1.618, allocations: 35.12 MB / 0.7538 GB, free: 109.6 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007965/1.626, allocations: 5.292 MB / 0.759 GB, free: 109.6 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005322/1.627, allocations: 208.1 kB / 0.7592 GB, free: 109.5 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.211e-05/1.627, allocations: 92.67 kB / 0.7593 GB, free: 109.4 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=577): time 7.133e-06/1.627, allocations: 0 / 0.7593 GB, free: 109.4 MB / 0.4982 GB Notification: Performance of matching and sorting (n=577): time 0.03212/1.659, allocations: 14.74 MB / 0.7737 GB, free: 108.6 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/1.659, allocations: 136.3 kB / 0.7738 GB, free: 108.5 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01033/1.67, allocations: 6.412 MB / 0.7801 GB, free: 108.1 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0009944/1.671, allocations: 118.2 kB / 0.7802 GB, free: 108.1 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.004506/1.675, allocations: 7.613 MB / 0.7876 GB, free: 103.7 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.002102/1.677, allocations: 2.008 MB / 0.7896 GB, free: 102.5 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003171/1.68, allocations: 2.09 MB / 0.7916 GB, free: 102.3 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 4.86e-05/1.68, allocations: 309.1 kB / 0.7919 GB, free: 102 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006806/1.687, allocations: 4.737 MB / 0.7965 GB, free: 101 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009862/1.697, allocations: 9.468 MB / 0.8058 GB, free: 92.77 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01714/1.714, allocations: 15.3 MB / 0.8207 GB, free: 78.75 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001883/1.715, allocations: 44 kB / 0.8208 GB, free: 78.71 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.02908/1.744, allocations: 15.38 MB / 0.8358 GB, free: 63.25 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002344/1.744, allocations: 72 kB / 0.8359 GB, free: 63.18 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003162/1.744, allocations: 166.5 kB / 0.836 GB, free: 63.02 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005307/1.75, allocations: 1.664 MB / 0.8376 GB, free: 61.34 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008025/1.758, allocations: 2.359 MB / 0.8399 GB, free: 58.98 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01324/1.771, allocations: 11.59 MB / 0.8513 GB, free: 47.26 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008531/1.78, allocations: 1.346 MB / 0.8526 GB, free: 45.9 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001796/1.781, allocations: 0.5312 MB / 0.8531 GB, free: 45.37 MB / 0.4982 GB 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 (1243): * Single equations (assignments): 1240 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 prepare postOptimizeDAE: time 0.01131/1.793, allocations: 7.145 MB / 0.8601 GB, free: 38.21 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001423/1.794, allocations: 0.6095 MB / 0.8607 GB, free: 37.59 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01441/1.809, allocations: 10.11 MB / 0.8705 GB, free: 27.36 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01085/1.819, allocations: 7.769 MB / 0.8781 GB, free: 19.51 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.411e-05/1.819, allocations: 12 kB / 0.8781 GB, free: 19.5 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.483e-05/1.82, allocations: 30.95 kB / 0.8782 GB, free: 19.47 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2427/2.062, allocations: 25.99 MB / 0.9035 GB, free: 155.7 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.671e-05/2.062, allocations: 7.375 kB / 0.9036 GB, free: 155.7 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004135/2.066, allocations: 1.005 MB / 0.9045 GB, free: 155.6 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005083/2.072, allocations: 1.475 MB / 0.906 GB, free: 155.6 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008918/2.072, allocations: 129 kB / 0.9061 GB, free: 155.6 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.013/2.085, allocations: 11.15 MB / 0.917 GB, free: 152.4 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.105e-06/2.086, allocations: 12.53 kB / 0.917 GB, free: 152.4 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01819/2.104, allocations: 14.1 MB / 0.9308 GB, free: 146.3 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003402/2.107, allocations: 1.437 MB / 0.9322 GB, free: 145.5 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00135/2.109, allocations: 116.9 kB / 0.9323 GB, free: 145.5 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003243/2.112, allocations: 321.6 kB / 0.9326 GB, free: 145.4 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007708/2.113, allocations: 398.7 kB / 0.933 GB, free: 145.3 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003218/2.113, allocations: 163.4 kB / 0.9331 GB, free: 145.3 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.005683/2.119, allocations: 4.314 MB / 0.9373 GB, free: 143.8 MB / 0.4982 GB Notification: Performance of sort global known variables: time 3.41e-07/2.119, allocations: 0 / 0.9373 GB, free: 143.8 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01126/2.13, allocations: 4.039 MB / 0.9413 GB, free: 142.5 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 (528): * Single equations (assignments): 525 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.001336/2.131, allocations: 320 kB / 0.9416 GB, free: 142.2 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.04991/2.181, allocations: 26.55 MB / 0.9675 GB, free: 118.8 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/2.181, allocations: 4 kB / 0.9675 GB, free: 118.8 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.006951/2.188, allocations: 4.629 MB / 0.972 GB, free: 114.8 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008547/2.197, allocations: 1.562 MB / 0.9736 GB, free: 113.5 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04996/2.247, allocations: 29.01 MB / 1.002 GB, free: 87.08 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01448/2.261, allocations: 10.9 MB / 1.013 GB, free: 77.73 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002342/2.264, allocations: 0.5736 MB / 1.013 GB, free: 77.16 MB / 0.4982 GB Notification: Performance of SimCode: time 8.82e-07/2.264, allocations: 3.938 kB / 1.013 GB, free: 77.15 MB / 0.4982 GB Notification: Performance of Templates: time 0.6725/2.936, allocations: 280.9 MB / 1.287 GB, free: 150.4 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