Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.pin_p.reference.gamma|voltageSource.pin_p.reference.gamma|idealTransformer.v1.re|idealTransformer.v1.im|idealTransformer.i1.re|idealTransformer.i1.im|idealTransformer.v2.re|idealTransformer.v2.im|idealTransformer.i2.re|idealTransformer.i2.im",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer") translateModel(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.pin_p.reference.gamma|voltageSource.pin_p.reference.gamma|idealTransformer.v1.re|idealTransformer.v1.im|idealTransformer.i1.re|idealTransformer.i1.im|idealTransformer.v2.re|idealTransformer.v2.im|idealTransformer.i2.re|idealTransformer.i2.im",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001532/0.001532, allocations: 179.1 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.549/1.549, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001071/0.001071, allocations: 78.7 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.595e-05/1.598e-05, allocations: 0 / 315.5 MB, free: 22.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1156, allocations: 47.59 MB / 363.1 MB, free: 7.062 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3238/0.4395, allocations: 85.25 MB / 448.3 MB, free: 10.4 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001928/0.4397, allocations: 77.52 kB / 448.4 MB, free: 10.36 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06274/0.5025, allocations: 28.65 MB / 477 MB, free: 3.387 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.5025, allocations: 0 / 477 MB, free: 3.387 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.511e-05/0.5025, allocations: 16 kB / 477.1 MB, free: 3.371 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.002313/0.5049, allocations: 1.069 MB / 478.1 MB, free: 2.254 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.5049, allocations: 12.03 kB / 478.1 MB, free: 2.242 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004567/0.5095, allocations: 0.7013 MB / 478.8 MB, free: 1.539 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006998/0.5102, allocations: 459.9 kB / 479.3 MB, free: 1.047 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.959e-05/0.5103, allocations: 40 kB / 479.3 MB, free: 1.008 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001291/0.5104, allocations: 60 kB / 479.4 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001702/0.5121, allocations: 1.02 MB / 480.4 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001523/0.5137, allocations: 0.8824 MB / 481.3 MB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.976e-05/0.5137, allocations: 0 / 481.3 MB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.71e-05/0.5138, allocations: 4 kB / 481.3 MB, free: 15 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.138e-05/0.5138, allocations: 24 kB / 481.3 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00545/0.5193, allocations: 3.911 MB / 485.2 MB, free: 10.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003056/0.5223, allocations: 3.696 MB / 488.9 MB, free: 6.473 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003432/0.5227, allocations: 272.7 kB / 489.2 MB, free: 6.199 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001073/0.5228, allocations: 97.64 kB / 489.3 MB, free: 6.086 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/0.5229, allocations: 43.12 kB / 489.3 MB, free: 6.035 MB / 362.7 MB Notification: Performance of pre-optimization done (n=71): time 2.936e-06/0.5229, allocations: 3.938 kB / 489.3 MB, free: 6.031 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.001283/0.5242, allocations: 0.5921 MB / 489.9 MB, free: 5.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.86e-05/0.5242, allocations: 115.3 kB / 490 MB, free: 5.293 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002797/0.5245, allocations: 262 kB / 490.3 MB, free: 5.031 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.549e-05/0.5246, allocations: 25.7 kB / 490.3 MB, free: 5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002622/0.5248, allocations: 445.9 kB / 490.8 MB, free: 4.555 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001853/0.525, allocations: 236.5 kB / 491 MB, free: 4.32 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.928e-05/0.5251, allocations: 0 / 491 MB, free: 4.32 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.5252, allocations: 358.9 kB / 491.3 MB, free: 3.961 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002955/0.5255, allocations: 202.6 kB / 491.5 MB, free: 3.762 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005193/0.526, allocations: 0.5051 MB / 492 MB, free: 3.109 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009758/0.527, allocations: 444.1 kB / 492.5 MB, free: 2.676 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.276e-06/0.527, allocations: 4 kB / 492.5 MB, free: 2.672 MB / 362.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.001618/0.5287, allocations: 0.8946 MB / 493.4 MB, free: 1.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.5287, allocations: 8 kB / 493.4 MB, free: 1.762 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.203e-05/0.5287, allocations: 15.98 kB / 493.4 MB, free: 1.746 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.236e-05/0.5288, allocations: 20.03 kB / 493.4 MB, free: 1.727 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008149/0.5296, allocations: 235.6 kB / 493.6 MB, free: 1.496 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.262e-05/0.5296, allocations: 27.86 kB / 493.7 MB, free: 1.469 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004767/0.5301, allocations: 82.92 kB / 493.8 MB, free: 1.387 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.679e-05/0.5302, allocations: 47.98 kB / 493.8 MB, free: 1.34 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001409/0.5303, allocations: 141.5 kB / 493.9 MB, free: 1.195 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.5304, allocations: 39.53 kB / 494 MB, free: 1.156 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001415/0.5319, allocations: 0.7038 MB / 494.7 MB, free: 452 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/0.5319, allocations: 11.98 kB / 494.7 MB, free: 440 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.5319, allocations: 0 / 494.7 MB, free: 440 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/0.5319, allocations: 3.984 kB / 494.7 MB, free: 436 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002468/0.5344, allocations: 1.497 MB / 496.2 MB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.5344, allocations: 0 / 496.2 MB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005876/0.535, allocations: 151.8 kB / 496.3 MB, free: 14.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.795e-06/0.535, allocations: 4 kB / 496.3 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.345e-05/0.5351, allocations: 4 kB / 496.4 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.5351, allocations: 4 kB / 496.4 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.5351, allocations: 0 / 496.4 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001641/0.5367, allocations: 1.189 MB / 497.5 MB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.5369, allocations: 132.3 kB / 497.7 MB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.941e-05/0.5369, allocations: 4 kB / 497.7 MB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003439/0.5373, allocations: 11.98 kB / 497.7 MB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.134e-05/0.5374, allocations: 52.61 kB / 497.7 MB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.744e-05/0.5374, allocations: 28.06 kB / 497.8 MB, free: 13.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001667/0.5376, allocations: 178 kB / 497.9 MB, free: 13.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5376, allocations: 4 kB / 497.9 MB, free: 13.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007863/0.5384, allocations: 223.1 kB / 498.2 MB, free: 12.87 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (i1.pin_p.reference.gamma,load.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002634/0.5387, allocations: 143 kB / 498.3 MB, free: 12.72 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008348/0.5395, allocations: 0.5855 MB / 498.9 MB, free: 12.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.634e-06/0.5395, allocations: 8.125 kB / 498.9 MB, free: 12.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003479/0.5399, allocations: 278.8 kB / 499.2 MB, free: 11.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003316/0.5402, allocations: 16.78 kB / 499.2 MB, free: 11.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003632/0.5439, allocations: 1.557 MB / 0.489 GB, free: 10.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004736/0.5443, allocations: 0.9361 MB / 0.4899 GB, free: 9.285 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003923/0.5447, allocations: 88.84 kB / 0.49 GB, free: 9.195 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.5449, allocations: 55.42 kB / 0.4901 GB, free: 9.141 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.5449, allocations: 0 / 0.4901 GB, free: 9.141 MB / 378.7 MB Notification: Performance of Templates: time 0.009604/0.5545, allocations: 4.338 MB / 0.4943 GB, free: 4.797 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.sim & ./Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/SinglePhase/Examples/Transformer/Transformer.csv","../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches