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.0008896/0.0008897, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.0009302/0.0009302, allocations: 183.6 kB / 17.2 MB, free: 5.914 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.275/1.275, allocations: 223.2 MB / 241.1 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002303/0.0002304, allocations: 6.25 kB / 300.7 MB, free: 6.031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08056/0.08081, allocations: 50.42 MB / 351.1 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.02239/0.1032, allocations: 22.95 MB / 374.1 MB, free: 4.703 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01315/0.1164, allocations: 6.79 MB / 380.9 MB, free: 13.89 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004399/0.1209, allocations: 219.3 kB / 381.1 MB, free: 13.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004616/0.1255, allocations: 1.488 MB / 382.6 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007504/0.133, allocations: 2.239 MB / 384.8 MB, free: 9.941 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004438/0.1375, allocations: 1.361 MB / 386.2 MB, free: 8.594 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02385/0.1613, allocations: 17.69 MB / 403.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3449/0.5063, allocations: 35.27 MB / 439.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006962/0.5133, allocations: 6.184 MB / 445.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008518/0.5218, allocations: 7.187 MB / 452.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002014/0.5238, allocations: 1.142 MB / 453.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002827/0.5267, allocations: 1.34 MB / 455 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002004/0.5287, allocations: 3.152 MB / 458.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003711/0.5324, allocations: 3.592 MB / 461.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02455/0.557, allocations: 33.22 MB / 494.9 MB, free: 5.641 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.557, allocations: 0 / 494.9 MB, free: 5.641 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.557, allocations: 3 kB / 494.9 MB, free: 5.641 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0008238/0.5579, allocations: 4 kB / 495 MB, free: 5.637 MB / 366.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.04821/0.6061, allocations: 18.24 MB / 0.5012 GB, free: 5.496 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.6061, allocations: 8.031 kB / 0.5012 GB, free: 5.488 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04436/0.6505, allocations: 8.36 MB / 0.5093 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02342/0.674, allocations: 11.16 MB / 0.5202 GB, free: 5.438 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001225/0.6752, allocations: 1.336 MB / 0.5215 GB, free: 4.109 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005198/0.6804, allocations: 1.757 MB / 0.5233 GB, free: 2.363 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07031/0.7507, allocations: 28.48 MB / 0.5511 GB, free: 5.844 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005366/0.7513, allocations: 15.91 kB / 0.5511 GB, free: 5.828 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00448/0.7558, allocations: 0.7225 MB / 0.5518 GB, free: 5.117 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007715/0.7566, allocations: 0.8664 MB / 0.5526 GB, free: 4.25 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05537/0.812, allocations: 24.68 MB / 0.5767 GB, free: 11.54 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4711/1.283, allocations: 88.22 MB / 0.6629 GB, free: 72.58 MB / 462.3 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02039/1.304, allocations: 35.14 MB / 0.6972 GB, free: 39.16 MB / 462.3 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005418/1.304, allocations: 208.3 kB / 0.6974 GB, free: 38.95 MB / 462.3 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.86e-05/1.304, allocations: 95.12 kB / 0.6975 GB, free: 38.85 MB / 462.3 MB Notification: Performance of pre-optimization done (n=589): time 7.304e-06/1.304, allocations: 0 / 0.6975 GB, free: 38.85 MB / 462.3 MB Notification: Performance of matching and sorting (n=589): time 0.03584/1.34, allocations: 16.79 MB / 0.7139 GB, free: 21.75 MB / 462.3 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.244e-05/1.34, allocations: 137.6 kB / 0.714 GB, free: 21.6 MB / 462.3 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00807/1.348, allocations: 6.364 MB / 0.7202 GB, free: 15.29 MB / 462.3 MB Notification: Performance of collectPreVariables (initialization): time 0.0008845/1.349, allocations: 121.7 kB / 0.7204 GB, free: 15.16 MB / 462.3 MB Notification: Performance of collectInitialEqns (initialization): time 0.003821/1.353, allocations: 7.598 MB / 0.7278 GB, free: 7.523 MB / 462.3 MB Notification: Performance of collectInitialBindings (initialization): time 0.002444/1.355, allocations: 2.044 MB / 0.7298 GB, free: 5.496 MB / 462.3 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006205/1.356, allocations: 212 kB / 0.73 GB, free: 5.289 MB / 462.3 MB Notification: Performance of setup shared object (initialization): time 0.0004424/1.356, allocations: 0.7479 MB / 0.7307 GB, free: 4.535 MB / 462.3 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005831/1.362, allocations: 4.779 MB / 0.7354 GB, free: 15.75 MB / 478.3 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00968/1.372, allocations: 9.473 MB / 0.7446 GB, free: 4.039 MB / 478.3 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01/1.382, allocations: 7.171 MB / 0.7516 GB, free: 12.83 MB / 494.3 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001052/1.382, allocations: 44 kB / 0.7517 GB, free: 12.79 MB / 494.3 MB Notification: Performance of matching and sorting (n=1342) (initialization): time 0.02895/1.411, allocations: 15.55 MB / 0.7669 GB, free: 13.15 MB / 0.4983 GB Notification: Performance of prepare postOptimizeDAE: time 0.000215/1.411, allocations: 72 kB / 0.7669 GB, free: 13.08 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003106/1.412, allocations: 163.9 kB / 0.7671 GB, free: 12.92 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00602/1.418, allocations: 1.781 MB / 0.7688 GB, free: 11.14 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008293/1.426, allocations: 2.332 MB / 0.7711 GB, free: 8.805 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2378/1.664, allocations: 12.36 MB / 0.7832 GB, free: 147.2 MB / 0.4983 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009527/1.673, allocations: 1.349 MB / 0.7845 GB, free: 146.9 MB / 0.4983 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002486/1.676, allocations: 0.5286 MB / 0.785 GB, free: 146.9 MB / 0.4983 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 726 * 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 (1237): * Single equations (assignments): 1228 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,72.2%) 92} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01414/1.69, allocations: 7.141 MB / 0.792 GB, free: 146.7 MB / 0.4983 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001498/1.692, allocations: 0.6175 MB / 0.7926 GB, free: 146.5 MB / 0.4983 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01471/1.706, allocations: 10.36 MB / 0.8027 GB, free: 146.1 MB / 0.4983 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01107/1.717, allocations: 7.989 MB / 0.8105 GB, free: 143.7 MB / 0.4983 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.239e-05/1.717, allocations: 15.56 kB / 0.8105 GB, free: 143.7 MB / 0.4983 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.8e-05/1.718, allocations: 26.44 kB / 0.8105 GB, free: 143.7 MB / 0.4983 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03933/1.757, allocations: 25.95 MB / 0.8359 GB, free: 133 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-05/1.757, allocations: 4 kB / 0.8359 GB, free: 133 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003654/1.761, allocations: 0.9851 MB / 0.8369 GB, free: 132.1 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004862/1.765, allocations: 1.562 MB / 0.8384 GB, free: 131 MB / 0.4983 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003079/1.766, allocations: 127.8 kB / 0.8385 GB, free: 130.9 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01334/1.779, allocations: 11.98 MB / 0.8502 GB, free: 120.4 MB / 0.4983 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/1.779, allocations: 13.75 kB / 0.8502 GB, free: 120.4 MB / 0.4983 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01685/1.796, allocations: 15.27 MB / 0.8651 GB, free: 105.3 MB / 0.4983 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003164/1.799, allocations: 1.452 MB / 0.8665 GB, free: 103.9 MB / 0.4983 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007866/1.8, allocations: 108 kB / 0.8666 GB, free: 103.8 MB / 0.4983 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002643/1.803, allocations: 328.5 kB / 0.867 GB, free: 103.4 MB / 0.4983 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006275/1.803, allocations: 400.9 kB / 0.8673 GB, free: 103 MB / 0.4983 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003199/1.804, allocations: 168 kB / 0.8675 GB, free: 102.9 MB / 0.4983 GB Notification: Performance of sorting global known variables: time 0.005214/1.809, allocations: 4.25 MB / 0.8717 GB, free: 98.65 MB / 0.4983 GB Notification: Performance of sort global known variables: time 2.2e-07/1.809, allocations: 0 / 0.8717 GB, free: 98.65 MB / 0.4983 GB Notification: Performance of remove unused functions: time 0.009322/1.818, allocations: 4.063 MB / 0.8756 GB, free: 94.57 MB / 0.4983 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (518): * Single equations (assignments): 509 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,80.6%) 92} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007487/1.819, allocations: 330.2 kB / 0.8759 GB, free: 94.27 MB / 0.4983 GB Notification: Performance of simCode: created initialization part: time 0.01391/1.833, allocations: 11.58 MB / 0.8872 GB, free: 82.63 MB / 0.4983 GB Notification: Performance of simCode: created event and clocks part: time 7.644e-06/1.833, allocations: 4.875 kB / 0.8872 GB, free: 82.63 MB / 0.4983 GB Notification: Performance of simCode: created simulation system equations: time 0.00553/1.838, allocations: 4.835 MB / 0.892 GB, free: 77.76 MB / 0.4983 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005425/1.844, allocations: 1.393 MB / 0.8933 GB, free: 76.39 MB / 0.4983 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04074/1.885, allocations: 35.16 MB / 0.9277 GB, free: 41.07 MB / 0.4983 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01005/1.895, allocations: 11.52 MB / 0.9389 GB, free: 29.5 MB / 0.4983 GB Notification: Performance of simCode: alias equations: time 0.008721/1.903, allocations: 3.747 MB / 0.9426 GB, free: 25.74 MB / 0.4983 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00134/1.905, allocations: 0.5111 MB / 0.9431 GB, free: 25.23 MB / 0.4983 GB Notification: Performance of SimCode: time 1.252e-06/1.905, allocations: 0 / 0.9431 GB, free: 25.23 MB / 0.4983 GB Notification: Performance of Templates: time 0.3367/2.242, allocations: 97.67 MB / 1.038 GB, free: 96.43 MB / 0.4983 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Machines/Examples/TransformerTestbench/TransformerTestbench.csv","../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches