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.001167/0.001167, allocations: 114.8 kB / 17.74 MB, free: 5.344 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.001028/0.001028, allocations: 180.5 kB / 18.66 MB, free: 4.426 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.304/1.304, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009605/0.0009605, allocations: 47.92 kB / 352 MB, free: 3.211 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2549/0.2559, allocations: 49.43 MB / 401.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.02643/0.2824, allocations: 28.61 MB / 430 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01539/0.2978, allocations: 7.129 MB / 437.1 MB, free: 4.953 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005631/0.3035, allocations: 267.2 kB / 437.4 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0269/0.3304, allocations: 13.09 MB / 450.5 MB, free: 7.57 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0101/0.3405, allocations: 2.683 MB / 453.2 MB, free: 4.875 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00586/0.3464, allocations: 1.846 MB / 455 MB, free: 3.035 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01999/0.3664, allocations: 18.11 MB / 473.1 MB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07018/0.4366, allocations: 44.44 MB / 0.5055 GB, free: 4.191 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01428/0.451, allocations: 9.956 MB / 0.5152 GB, free: 10.23 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01625/0.4672, allocations: 11.05 MB / 0.526 GB, free: 15.14 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007121/0.4744, allocations: 2.918 MB / 0.5288 GB, free: 12.22 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009447/0.4839, allocations: 3.172 MB / 0.5319 GB, free: 9.051 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008452/0.4923, allocations: 5.476 MB / 0.5373 GB, free: 3.562 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.4428/0.9352, allocations: 10.82 MB / 0.5478 GB, free: 59.5 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03485/0.9701, allocations: 38.99 MB / 0.5859 GB, free: 45.12 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.9701, allocations: 6.188 kB / 0.5859 GB, free: 45.12 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.9701, allocations: 3.844 kB / 0.5859 GB, free: 45.12 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0009418/0.9711, allocations: 0 / 0.5859 GB, free: 45.12 MB / 462.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.0572/1.028, allocations: 21.93 MB / 0.6073 GB, free: 31.74 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/1.028, allocations: 15.48 kB / 0.6073 GB, free: 31.74 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0425/1.071, allocations: 8.328 MB / 0.6155 GB, free: 24.96 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0208/1.092, allocations: 11.62 MB / 0.6268 GB, free: 13.87 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001225/1.093, allocations: 1.343 MB / 0.6281 GB, free: 12.53 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006936/1.1, allocations: 1.759 MB / 0.6299 GB, free: 10.79 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07068/1.171, allocations: 28.71 MB / 0.6579 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006624/1.171, allocations: 19.89 kB / 0.6579 GB, free: 14.02 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005315/1.177, allocations: 0.7252 MB / 0.6586 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008253/1.177, allocations: 0.8454 MB / 0.6594 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0556/1.233, allocations: 24.78 MB / 0.6836 GB, free: 3.652 MB / 0.4982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3948/1.628, allocations: 86.87 MB / 0.7685 GB, free: 154.2 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02244/1.65, allocations: 35.12 MB / 0.8028 GB, free: 126.7 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007665/1.658, allocations: 5.438 MB / 0.8081 GB, free: 126.6 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005237/1.659, allocations: 204.6 kB / 0.8083 GB, free: 126.5 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.183e-05/1.659, allocations: 92.55 kB / 0.8084 GB, free: 126.5 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=577): time 7.474e-06/1.659, allocations: 0 / 0.8084 GB, free: 126.5 MB / 0.5607 GB Notification: Performance of matching and sorting (n=577): time 0.02974/1.689, allocations: 14.74 MB / 0.8228 GB, free: 125.6 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.953e-05/1.689, allocations: 136.5 kB / 0.8229 GB, free: 125.5 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008052/1.697, allocations: 6.422 MB / 0.8292 GB, free: 125.1 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.000761/1.697, allocations: 119 kB / 0.8293 GB, free: 125.1 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.003193/1.701, allocations: 7.607 MB / 0.8367 GB, free: 120.7 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001644/1.702, allocations: 2.007 MB / 0.8387 GB, free: 119.1 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002508/1.705, allocations: 2.089 MB / 0.8407 GB, free: 118.1 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 3.967e-05/1.705, allocations: 305.1 kB / 0.841 GB, free: 117.8 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005471/1.71, allocations: 4.738 MB / 0.8456 GB, free: 115.5 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007021/1.717, allocations: 9.468 MB / 0.8549 GB, free: 106.5 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01331/1.731, allocations: 15.3 MB / 0.8698 GB, free: 90.1 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001026/1.731, allocations: 53.06 kB / 0.8699 GB, free: 90.05 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.02068/1.752, allocations: 15.37 MB / 0.8849 GB, free: 74.59 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 8.322e-05/1.752, allocations: 73.31 kB / 0.8849 GB, free: 74.52 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000197/1.752, allocations: 160 kB / 0.8851 GB, free: 74.36 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00473/1.757, allocations: 1.661 MB / 0.8867 GB, free: 72.7 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007349/1.764, allocations: 2.347 MB / 0.889 GB, free: 70.35 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01294/1.777, allocations: 11.61 MB / 0.9003 GB, free: 58.61 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007828/1.785, allocations: 1.354 MB / 0.9017 GB, free: 57.24 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001232/1.786, allocations: 0.5312 MB / 0.9022 GB, free: 56.71 MB / 0.5607 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.01045/1.796, allocations: 7.137 MB / 0.9091 GB, free: 49.55 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001271/1.798, allocations: 0.6134 MB / 0.9097 GB, free: 48.93 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01355/1.811, allocations: 10.11 MB / 0.9196 GB, free: 38.71 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009094/1.82, allocations: 7.758 MB / 0.9272 GB, free: 30.87 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.067e-05/1.82, allocations: 16 kB / 0.9272 GB, free: 30.85 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.115e-05/1.821, allocations: 33.19 kB / 0.9272 GB, free: 30.82 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03844/1.859, allocations: 25.43 MB / 0.9521 GB, free: 5.207 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.028e-05/1.859, allocations: 8 kB / 0.9521 GB, free: 5.199 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003501/1.863, allocations: 1.003 MB / 0.9531 GB, free: 4.195 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004462/1.867, allocations: 1.461 MB / 0.9545 GB, free: 2.73 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003596/1.867, allocations: 129.3 kB / 0.9546 GB, free: 2.605 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0138/1.881, allocations: 11.15 MB / 0.9655 GB, free: 7.336 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.098e-05/1.881, allocations: 15.92 kB / 0.9655 GB, free: 7.32 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2702/2.151, allocations: 14.08 MB / 0.9793 GB, free: 185.6 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003352/2.155, allocations: 1.436 MB / 0.9807 GB, free: 185.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001042/2.156, allocations: 118.1 kB / 0.9808 GB, free: 185.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002818/2.159, allocations: 324.8 kB / 0.9811 GB, free: 185.5 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007881/2.16, allocations: 396.9 kB / 0.9815 GB, free: 185.4 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003556/2.16, allocations: 167.2 kB / 0.9816 GB, free: 185.4 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006892/2.167, allocations: 4.308 MB / 0.9858 GB, free: 185.3 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.71e-07/2.167, allocations: 0 / 0.9858 GB, free: 185.3 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01074/2.178, allocations: 4.04 MB / 0.9898 GB, free: 184.2 MB / 0.5763 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.001183/2.179, allocations: 320.3 kB / 0.9901 GB, free: 184.1 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01428/2.193, allocations: 11.37 MB / 1.001 GB, free: 180.6 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/2.193, allocations: 1.344 kB / 1.001 GB, free: 180.6 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005433/2.199, allocations: 4.64 MB / 1.006 GB, free: 178.7 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007257/2.206, allocations: 1.561 MB / 1.007 GB, free: 178.2 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05069/2.257, allocations: 28.68 MB / 1.035 GB, free: 160.4 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01541/2.272, allocations: 10.91 MB / 1.046 GB, free: 152 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002803/2.275, allocations: 0.5763 MB / 1.046 GB, free: 151.4 MB / 0.5763 GB Notification: Performance of SimCode: time 7.41e-07/2.275, allocations: 0 / 1.046 GB, free: 151.4 MB / 0.5763 GB Notification: Performance of Templates: time 0.5276/2.802, allocations: 282.3 MB / 1.322 GB, free: 69.86 MB / 0.5763 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/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_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches