Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001106/0.001106, allocations: 198.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 225.6 MB / 234.8 MB, free: 3.195 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008586/0.0008585, allocations: 95.7 kB / 286.7 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.721e-05/1.729e-05, allocations: 4 kB / 343.7 MB, free: 8.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.103, allocations: 51.49 MB / 395.2 MB, free: 4.719 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3816/0.4847, allocations: 87.24 MB / 482.4 MB, free: 5.914 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001839/0.4849, allocations: 79.58 kB / 482.5 MB, free: 5.875 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07943/0.5643, allocations: 27.89 MB / 0.4984 GB, free: 14.94 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.5644, allocations: 0 / 0.4984 GB, free: 14.94 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.49e-05/0.5645, allocations: 20 kB / 0.4984 GB, free: 14.92 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.003892/0.5684, allocations: 1.01 MB / 0.4994 GB, free: 13.87 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.887e-05/0.5684, allocations: 12.03 kB / 0.4994 GB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005267/0.5737, allocations: 0.4907 MB / 0.4999 GB, free: 13.37 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001272/0.575, allocations: 424.8 kB / 0.5003 GB, free: 12.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.207e-05/0.5751, allocations: 41.3 kB / 0.5004 GB, free: 12.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003071/0.5754, allocations: 59.91 kB / 0.5004 GB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002704/0.5782, allocations: 0.8201 MB / 0.5012 GB, free: 12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002454/0.5806, allocations: 0.7675 MB / 0.502 GB, free: 11.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.002e-05/0.5807, allocations: 4 kB / 0.502 GB, free: 11.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.866e-05/0.5808, allocations: 4 kB / 0.502 GB, free: 11.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.914e-05/0.5809, allocations: 24 kB / 0.502 GB, free: 11.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006353/0.5872, allocations: 3.395 MB / 0.5053 GB, free: 7.613 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00235/0.5896, allocations: 2.183 MB / 0.5074 GB, free: 5.074 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003967/0.59, allocations: 255.5 kB / 0.5077 GB, free: 4.812 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002132/0.5903, allocations: 186.7 kB / 0.5079 GB, free: 4.594 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/0.5903, allocations: 39.12 kB / 0.5079 GB, free: 4.547 MB / 378.7 MB Notification: Performance of pre-optimization done (n=65): time 3.907e-06/0.5903, allocations: 0 / 0.5079 GB, free: 4.547 MB / 378.7 MB Notification: Performance of matching and sorting (n=65): time 0.00266/0.593, allocations: 0.6467 MB / 0.5085 GB, free: 3.891 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.517e-05/0.5931, allocations: 115.4 kB / 0.5086 GB, free: 3.754 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003214/0.5934, allocations: 212.4 kB / 0.5088 GB, free: 3.539 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.773e-05/0.5935, allocations: 25.7 kB / 0.5089 GB, free: 3.508 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002861/0.5938, allocations: 382.6 kB / 0.5092 GB, free: 3.125 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002011/0.594, allocations: 217.7 kB / 0.5094 GB, free: 2.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.245e-05/0.594, allocations: 0 / 0.5094 GB, free: 2.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002029/0.5942, allocations: 350.8 kB / 0.5098 GB, free: 2.559 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000342/0.5946, allocations: 181.6 kB / 0.5099 GB, free: 2.383 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005735/0.5952, allocations: 387.6 kB / 0.5103 GB, free: 1.914 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001764/0.597, allocations: 469.7 kB / 0.5108 GB, free: 1.457 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.073e-05/0.597, allocations: 4 kB / 0.5108 GB, free: 1.453 MB / 378.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.002426/0.5994, allocations: 0.8424 MB / 0.5116 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.644e-05/0.5995, allocations: 12.12 kB / 0.5116 GB, free: 0.5938 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.5995, allocations: 8 kB / 0.5116 GB, free: 0.5859 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.304e-05/0.5995, allocations: 13.88 kB / 0.5116 GB, free: 0.5742 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008368/0.6004, allocations: 183.7 kB / 0.5118 GB, free: 404 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.662e-05/0.6004, allocations: 15.94 kB / 0.5118 GB, free: 388 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004736/0.6009, allocations: 71.2 kB / 0.5119 GB, free: 316 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.868e-05/0.6009, allocations: 32 kB / 0.5119 GB, free: 284 kB / 378.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.0001717/0.6011, allocations: 128.7 kB / 0.512 GB, free: 148 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/0.6013, allocations: 43.52 kB / 0.5121 GB, free: 104 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002302/0.6036, allocations: 0.7531 MB / 0.5128 GB, free: 15.34 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.6036, allocations: 8 kB / 0.5128 GB, free: 15.33 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.6036, allocations: 7.938 kB / 0.5128 GB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.6036, allocations: 7.922 kB / 0.5128 GB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002915/0.6065, allocations: 1.467 MB / 0.5143 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.6066, allocations: 0 / 0.5143 GB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005742/0.6071, allocations: 139.8 kB / 0.5144 GB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.465e-06/0.6072, allocations: 8 kB / 0.5144 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.214e-05/0.6072, allocations: 4 kB / 0.5144 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.902e-06/0.6072, allocations: 7.953 kB / 0.5144 GB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.6072, allocations: 0 / 0.5144 GB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002244/0.6095, allocations: 1.231 MB / 0.5156 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.6096, allocations: 132.4 kB / 0.5157 GB, free: 12.24 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.613e-05/0.6097, allocations: 1.781 kB / 0.5158 GB, free: 12.24 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000331/0.61, allocations: 15.98 kB / 0.5158 GB, free: 12.22 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.265e-05/0.6101, allocations: 40.5 kB / 0.5158 GB, free: 12.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.511e-05/0.6101, allocations: 16 kB / 0.5158 GB, free: 12.17 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001514/0.6103, allocations: 160.5 kB / 0.516 GB, free: 12.01 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6103, allocations: 4.062 kB / 0.516 GB, free: 12 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007792/0.6111, allocations: 215 kB / 0.5162 GB, free: 11.79 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.0002903/0.6114, allocations: 163 kB / 0.5163 GB, free: 11.62 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007937/0.6122, allocations: 0.5276 MB / 0.5169 GB, free: 11.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.6122, allocations: 0 / 0.5169 GB, free: 11.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000333/0.6125, allocations: 258 kB / 0.5171 GB, free: 10.85 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.6129, allocations: 25.78 kB / 0.5171 GB, free: 10.83 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001594/0.6145, allocations: 0.8922 MB / 0.518 GB, free: 9.91 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005179/0.615, allocations: 0.9126 MB / 0.5189 GB, free: 8.965 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003331/0.6153, allocations: 80.33 kB / 0.519 GB, free: 8.887 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001359/0.6155, allocations: 47.42 kB / 0.519 GB, free: 8.84 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.6155, allocations: 3.562 kB / 0.519 GB, free: 8.84 MB / 394.7 MB Notification: Performance of Templates: time 0.008639/0.6241, allocations: 4.135 MB / 0.5231 GB, free: 4.754 MB / 394.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.makefile (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.sim & ./Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches