Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001547/0.001547, allocations: 119.9 kB / 18.42 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001952/0.001952, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 60.47 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09662/0.09781, allocations: 50.53 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.2076/0.3055, allocations: 28.6 MB / 387.5 MB, free: 5.133 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01775/0.3233, allocations: 7.207 MB / 394.7 MB, free: 304 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008581/0.3319, allocations: 264 kB / 395 MB, free: 252 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02867/0.3607, allocations: 13.1 MB / 408.1 MB, free: 7.316 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01204/0.3727, allocations: 2.53 MB / 410.6 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007378/0.3801, allocations: 2.026 MB / 412.6 MB, free: 3.652 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02367/0.4038, allocations: 18.29 MB / 430.9 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07903/0.4829, allocations: 44.45 MB / 475.4 MB, free: 6.816 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01465/0.4976, allocations: 9.933 MB / 485.3 MB, free: 12.87 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01817/0.5158, allocations: 11.05 MB / 496.4 MB, free: 1.785 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00753/0.5234, allocations: 2.918 MB / 499.3 MB, free: 14.86 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01053/0.5339, allocations: 3.199 MB / 0.4907 GB, free: 11.67 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01012/0.5441, allocations: 5.483 MB / 0.496 GB, free: 6.172 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01963/0.5637, allocations: 10.82 MB / 0.5066 GB, free: 11.31 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4478/1.012, allocations: 39.02 MB / 0.5447 GB, free: 83.37 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.217e-06/1.012, allocations: 1.031 kB / 0.5447 GB, free: 83.37 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.904e-06/1.012, allocations: 0 / 0.5447 GB, free: 83.37 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001152/1.013, allocations: 0 / 0.5447 GB, free: 83.37 MB / 446.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.06937/1.082, allocations: 21.94 MB / 0.5661 GB, free: 73.91 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/1.082, allocations: 11.69 kB / 0.5662 GB, free: 73.91 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04431/1.127, allocations: 8.346 MB / 0.5743 GB, free: 70.13 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03092/1.158, allocations: 11.63 MB / 0.5857 GB, free: 61.34 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001372/1.159, allocations: 1.342 MB / 0.587 GB, free: 60 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01196/1.171, allocations: 1.753 MB / 0.5887 GB, free: 58.26 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07656/1.248, allocations: 28.72 MB / 0.6167 GB, free: 29.5 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006162/1.248, allocations: 19.81 kB / 0.6167 GB, free: 29.48 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007437/1.256, allocations: 0.724 MB / 0.6175 GB, free: 28.77 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006473/1.256, allocations: 0.843 MB / 0.6183 GB, free: 27.93 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04906/1.305, allocations: 24.78 MB / 0.6425 GB, free: 3.121 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4898/1.795, allocations: 87.27 MB / 0.7277 GB, free: 153.2 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02682/1.822, allocations: 35.12 MB / 0.762 GB, free: 125.8 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008081/1.83, allocations: 5.303 MB / 0.7672 GB, free: 125.7 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005941/1.831, allocations: 283.2 kB / 0.7674 GB, free: 125.5 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.688e-05/1.831, allocations: 92.45 kB / 0.7675 GB, free: 125.5 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=577): time 7.243e-06/1.831, allocations: 0 / 0.7675 GB, free: 125.5 MB / 0.5138 GB Notification: Performance of matching and sorting (n=577): time 0.0304/1.861, allocations: 14.73 MB / 0.7819 GB, free: 124.7 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.777e-05/1.862, allocations: 141.9 kB / 0.7821 GB, free: 124.6 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009488/1.871, allocations: 6.414 MB / 0.7883 GB, free: 124.2 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001119/1.872, allocations: 119 kB / 0.7884 GB, free: 124.2 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.004504/1.877, allocations: 7.611 MB / 0.7959 GB, free: 120.1 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002277/1.879, allocations: 2.01 MB / 0.7978 GB, free: 118.8 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002828/1.882, allocations: 2.096 MB / 0.7999 GB, free: 118.7 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 6.892e-05/1.882, allocations: 305.1 kB / 0.8002 GB, free: 118.4 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005872/1.888, allocations: 4.733 MB / 0.8048 GB, free: 118.3 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007609/1.895, allocations: 9.465 MB / 0.814 GB, free: 110.8 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01539/1.911, allocations: 15.31 MB / 0.829 GB, free: 97.08 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001495/1.911, allocations: 44 kB / 0.829 GB, free: 97.04 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.02311/1.934, allocations: 15.38 MB / 0.844 GB, free: 81.57 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001934/1.934, allocations: 72 kB / 0.8441 GB, free: 81.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003322/1.935, allocations: 160 kB / 0.8443 GB, free: 81.34 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005282/1.94, allocations: 1.661 MB / 0.8459 GB, free: 79.67 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008231/1.948, allocations: 2.348 MB / 0.8482 GB, free: 77.32 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01473/1.963, allocations: 11.59 MB / 0.8595 GB, free: 65.61 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008408/1.971, allocations: 1.347 MB / 0.8608 GB, free: 64.25 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001729/1.973, allocations: 0.5312 MB / 0.8613 GB, free: 63.72 MB / 0.5138 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.0126/1.986, allocations: 7.153 MB / 0.8683 GB, free: 56.55 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001363/1.987, allocations: 0.6056 MB / 0.8689 GB, free: 55.93 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01334/2.001, allocations: 10.11 MB / 0.8788 GB, free: 45.71 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009488/2.01, allocations: 7.765 MB / 0.8864 GB, free: 37.86 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.976e-05/2.01, allocations: 12 kB / 0.8864 GB, free: 37.85 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.279e-05/2.01, allocations: 31.88 kB / 0.8864 GB, free: 37.82 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04098/2.051, allocations: 25.67 MB / 0.9115 GB, free: 11.92 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.382e-05/2.051, allocations: 9 kB / 0.9115 GB, free: 11.91 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003834/2.055, allocations: 1.008 MB / 0.9125 GB, free: 10.9 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004727/2.06, allocations: 1.469 MB / 0.9139 GB, free: 9.426 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009928/2.061, allocations: 132 kB / 0.914 GB, free: 9.297 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2697/2.33, allocations: 11.14 MB / 0.9249 GB, free: 163.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.345e-05/2.331, allocations: 13.44 kB / 0.9249 GB, free: 163.4 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0196/2.35, allocations: 14.1 MB / 0.9387 GB, free: 161.9 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003726/2.354, allocations: 1.442 MB / 0.9401 GB, free: 161.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001131/2.355, allocations: 105.5 kB / 0.9402 GB, free: 161.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002666/2.358, allocations: 330.3 kB / 0.9405 GB, free: 161.2 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007379/2.358, allocations: 396.2 kB / 0.9409 GB, free: 161.1 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003114/2.359, allocations: 172.4 kB / 0.941 GB, free: 161.1 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005609/2.364, allocations: 4.302 MB / 0.9452 GB, free: 159.6 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.7e-07/2.364, allocations: 0 / 0.9452 GB, free: 159.6 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01152/2.376, allocations: 4.036 MB / 0.9492 GB, free: 158.3 MB / 0.5138 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.00118/2.377, allocations: 325.7 kB / 0.9495 GB, free: 158.1 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.0156/2.393, allocations: 11.37 MB / 0.9606 GB, free: 153.8 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.441e-05/2.393, allocations: 7.219 kB / 0.9606 GB, free: 153.8 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005774/2.399, allocations: 4.646 MB / 0.9651 GB, free: 151.9 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006317/2.405, allocations: 1.559 MB / 0.9667 GB, free: 151.4 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04546/2.45, allocations: 29.29 MB / 0.9953 GB, free: 127.4 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01223/2.463, allocations: 11.25 MB / 1.006 GB, free: 118.7 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.008594/2.471, allocations: 3.764 MB / 1.01 GB, free: 116.2 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001494/2.473, allocations: 0.522 MB / 1.01 GB, free: 115.7 MB / 0.5138 GB Notification: Performance of SimCode: time 1.693e-06/2.473, allocations: 0 / 1.01 GB, free: 115.7 MB / 0.5138 GB Notification: Performance of Templates: time 0.2127/2.686, allocations: 94.72 MB / 1.103 GB, free: 22.44 MB / 0.5138 GB make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.makefile (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & ./Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches