Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.QuasiStatic.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_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer") translateModel(Modelica.Electrical.QuasiStatic.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_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001565/0.001565, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 221.4 MB / 235.5 MB, free: 2.949 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008953/0.0008953, allocations: 85.12 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.526e-05/2.528e-05, allocations: 4 kB / 343.8 MB, free: 4.316 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08934/0.08938, allocations: 50.41 MB / 394.2 MB, free: 1.863 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3143/0.4037, allocations: 87.03 MB / 481.3 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/0.4041, allocations: 91.77 kB / 481.4 MB, free: 436 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06015/0.4642, allocations: 26.78 MB / 0.4962 GB, free: 5.312 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4643, allocations: 0 / 0.4962 GB, free: 5.312 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.12e-05/0.4643, allocations: 12 kB / 0.4962 GB, free: 5.301 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002238/0.4666, allocations: 1.022 MB / 0.4972 GB, free: 4.227 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.4666, allocations: 12.03 kB / 0.4973 GB, free: 4.215 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003433/0.4701, allocations: 498.5 kB / 0.4977 GB, free: 3.727 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005821/0.4707, allocations: 420 kB / 0.4981 GB, free: 3.277 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.326e-05/0.4707, allocations: 66 kB / 0.4982 GB, free: 3.211 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001396/0.4709, allocations: 99.91 kB / 0.4983 GB, free: 3.113 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00156/0.4725, allocations: 0.947 MB / 0.4992 GB, free: 2.152 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/0.4725, allocations: 0 / 0.4992 GB, free: 2.152 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.482e-05/0.4726, allocations: 44 kB / 0.4993 GB, free: 2.109 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.81e-05/0.4726, allocations: 20 kB / 0.4993 GB, free: 2.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001336/0.4739, allocations: 0.8708 MB / 0.5001 GB, free: 1.215 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004677/0.4786, allocations: 3.468 MB / 0.5035 GB, free: 13.57 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00211/0.4808, allocations: 2.218 MB / 0.5057 GB, free: 10.99 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003562/0.4812, allocations: 271.6 kB / 0.5059 GB, free: 10.72 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001031/0.4813, allocations: 97.64 kB / 0.506 GB, free: 10.61 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.254e-05/0.4813, allocations: 51.06 kB / 0.5061 GB, free: 10.55 MB / 394.7 MB Notification: Performance of pre-optimization done (n=65): time 2.675e-06/0.4813, allocations: 0 / 0.5061 GB, free: 10.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=65): time 0.0008157/0.4821, allocations: 490.6 kB / 0.5065 GB, free: 10.06 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.349e-05/0.4822, allocations: 107.4 kB / 0.5066 GB, free: 9.93 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002436/0.4825, allocations: 242.8 kB / 0.5069 GB, free: 9.688 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.954e-05/0.4825, allocations: 37.7 kB / 0.5069 GB, free: 9.645 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/0.4827, allocations: 378.7 kB / 0.5073 GB, free: 9.266 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001423/0.4829, allocations: 228.7 kB / 0.5075 GB, free: 9.039 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.127e-05/0.4829, allocations: 16 kB / 0.5075 GB, free: 9.023 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.483, allocations: 350.8 kB / 0.5078 GB, free: 8.672 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002971/0.4833, allocations: 201.5 kB / 0.508 GB, free: 8.477 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004188/0.4837, allocations: 405.2 kB / 0.5084 GB, free: 7.988 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004002/0.4841, allocations: 263.2 kB / 0.5087 GB, free: 7.73 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.4842, allocations: 7.984 kB / 0.5087 GB, free: 7.723 MB / 394.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.0009865/0.4852, allocations: 0.6933 MB / 0.5094 GB, free: 7.02 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.4852, allocations: 8.875 kB / 0.5094 GB, free: 7.012 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.4852, allocations: 8 kB / 0.5094 GB, free: 7.004 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.418e-05/0.4852, allocations: 16 kB / 0.5094 GB, free: 6.988 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000672/0.4859, allocations: 187.7 kB / 0.5096 GB, free: 6.805 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.146e-05/0.4859, allocations: 23.92 kB / 0.5096 GB, free: 6.781 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003967/0.4863, allocations: 79.22 kB / 0.5097 GB, free: 6.703 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.871e-05/0.4864, allocations: 31.98 kB / 0.5097 GB, free: 6.672 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 98 * 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.0001392/0.4865, allocations: 160.7 kB / 0.5098 GB, free: 6.508 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.914e-05/0.4867, allocations: 35.53 kB / 0.5099 GB, free: 6.473 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001021/0.4877, allocations: 0.6124 MB / 0.5105 GB, free: 5.859 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.4877, allocations: 8 kB / 0.5105 GB, free: 5.852 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.4877, allocations: 4 kB / 0.5105 GB, free: 5.848 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.4877, allocations: 3.984 kB / 0.5105 GB, free: 5.844 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00205/0.4898, allocations: 1.428 MB / 0.5119 GB, free: 4.355 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.4898, allocations: 0 / 0.5119 GB, free: 4.355 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005469/0.4903, allocations: 143.9 kB / 0.512 GB, free: 4.215 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.608e-06/0.4904, allocations: 4 kB / 0.512 GB, free: 4.211 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.69e-05/0.4904, allocations: 19.95 kB / 0.512 GB, free: 4.191 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.4904, allocations: 7.938 kB / 0.5121 GB, free: 4.184 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.4904, allocations: 0 / 0.5121 GB, free: 4.184 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001194/0.4916, allocations: 1.083 MB / 0.5131 GB, free: 3.074 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.4917, allocations: 124.6 kB / 0.5132 GB, free: 2.934 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.414e-05/0.4918, allocations: 12 kB / 0.5132 GB, free: 2.922 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003491/0.4922, allocations: 23.98 kB / 0.5133 GB, free: 2.898 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.498e-05/0.4923, allocations: 44.5 kB / 0.5133 GB, free: 2.855 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.54e-05/0.4923, allocations: 23.94 kB / 0.5133 GB, free: 2.832 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001723/0.4925, allocations: 183.1 kB / 0.5135 GB, free: 2.648 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4925, allocations: 3.938 kB / 0.5135 GB, free: 2.645 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007559/0.4933, allocations: 239.1 kB / 0.5137 GB, free: 2.41 MB / 394.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 (72): * Single equations (assignments): 72 * 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.000297/0.4936, allocations: 190 kB / 0.5139 GB, free: 2.219 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008481/0.4944, allocations: 0.5685 MB / 0.5145 GB, free: 1.652 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.4944, allocations: 4 kB / 0.5145 GB, free: 1.648 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003561/0.4948, allocations: 279.2 kB / 0.5147 GB, free: 1.379 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003308/0.4951, allocations: 34.59 kB / 0.5148 GB, free: 1.348 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00169/0.4968, allocations: 0.9302 MB / 0.5157 GB, free: 392 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000458/0.4973, allocations: 0.9126 MB / 0.5166 GB, free: 15.45 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000342/0.4977, allocations: 76.39 kB / 0.5167 GB, free: 15.37 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/0.4978, allocations: 51.42 kB / 0.5167 GB, free: 15.32 MB / 410.7 MB Notification: Performance of SimCode: time 5.91e-07/0.4978, allocations: 4 kB / 0.5167 GB, free: 15.32 MB / 410.7 MB Notification: Performance of Templates: time 0.009603/0.5074, allocations: 4.702 MB / 0.5213 GB, free: 10.62 MB / 410.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/Transformer/Transformer.csv","../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches