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.001047/0.001047, allocations: 107 kB / 17.74 MB, free: 5.23 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.001038/0.001038, allocations: 188.5 kB / 18.67 MB, free: 4.309 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.346/1.346, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009391/0.0009391, allocations: 48.02 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2399/0.2409, allocations: 49.44 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.02762/0.2685, allocations: 28.61 MB / 430 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01491/0.2835, allocations: 7.129 MB / 437.2 MB, free: 4.977 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00576/0.2893, allocations: 263.2 kB / 437.4 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02755/0.3169, allocations: 13.09 MB / 450.5 MB, free: 7.602 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0106/0.3275, allocations: 2.683 MB / 453.2 MB, free: 4.906 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006413/0.3339, allocations: 1.847 MB / 455 MB, free: 3.066 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02161/0.3555, allocations: 18.1 MB / 473.1 MB, free: 0.9062 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07261/0.4282, allocations: 44.46 MB / 0.5055 GB, free: 4.227 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01488/0.4431, allocations: 9.941 MB / 0.5152 GB, free: 10.27 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01701/0.4602, allocations: 11.05 MB / 0.526 GB, free: 15.18 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007907/0.4681, allocations: 2.918 MB / 0.5288 GB, free: 12.27 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009353/0.4775, allocations: 3.172 MB / 0.5319 GB, free: 9.094 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008398/0.4859, allocations: 5.476 MB / 0.5373 GB, free: 3.605 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.4488/0.9347, allocations: 10.81 MB / 0.5478 GB, free: 59.46 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03575/0.9705, allocations: 39 MB / 0.5859 GB, free: 45.11 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.9706, allocations: 0 / 0.5859 GB, free: 45.11 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.9706, allocations: 0 / 0.5859 GB, free: 45.11 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001073/0.9716, allocations: 0 / 0.5859 GB, free: 45.11 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.05996/1.032, allocations: 21.93 MB / 0.6073 GB, free: 31.73 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/1.032, allocations: 15.48 kB / 0.6073 GB, free: 31.73 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04221/1.074, allocations: 8.329 MB / 0.6155 GB, free: 24.98 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02058/1.095, allocations: 11.63 MB / 0.6268 GB, free: 13.88 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001106/1.096, allocations: 1.337 MB / 0.6281 GB, free: 12.55 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006002/1.102, allocations: 1.757 MB / 0.6298 GB, free: 10.8 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07138/1.173, allocations: 28.71 MB / 0.6579 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008797/1.174, allocations: 15.91 kB / 0.6579 GB, free: 14.03 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006315/1.18, allocations: 0.7284 MB / 0.6586 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009485/1.181, allocations: 0.8448 MB / 0.6594 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05836/1.24, allocations: 24.79 MB / 0.6836 GB, free: 3.664 MB / 0.4982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4319/1.672, allocations: 86.87 MB / 0.7685 GB, free: 154.4 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02467/1.696, allocations: 35.11 MB / 0.8027 GB, free: 126.9 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008733/1.705, allocations: 5.441 MB / 0.8081 GB, free: 126.8 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007674/1.706, allocations: 210 kB / 0.8083 GB, free: 126.7 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001099/1.706, allocations: 88.58 kB / 0.8083 GB, free: 126.7 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=577): time 1.309e-05/1.706, allocations: 0 / 0.8083 GB, free: 126.7 MB / 0.5607 GB Notification: Performance of matching and sorting (n=577): time 0.03507/1.741, allocations: 14.73 MB / 0.8227 GB, free: 125.8 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.282e-05/1.741, allocations: 135.1 kB / 0.8229 GB, free: 125.7 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01279/1.754, allocations: 6.419 MB / 0.8291 GB, free: 125.3 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.001108/1.755, allocations: 123.6 kB / 0.8292 GB, free: 125.3 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.00463/1.76, allocations: 7.612 MB / 0.8367 GB, free: 120.9 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.002285/1.762, allocations: 2.009 MB / 0.8386 GB, free: 119.3 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006023/1.768, allocations: 2.087 MB / 0.8407 GB, free: 118.3 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.74e-05/1.768, allocations: 304.9 kB / 0.841 GB, free: 118 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007231/1.776, allocations: 4.738 MB / 0.8456 GB, free: 115.6 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01027/1.786, allocations: 9.465 MB / 0.8548 GB, free: 106.6 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0169/1.803, allocations: 15.3 MB / 0.8698 GB, free: 90.12 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001414/1.803, allocations: 51.94 kB / 0.8698 GB, free: 90.07 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.02653/1.83, allocations: 15.37 MB / 0.8848 GB, free: 74.61 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001639/1.83, allocations: 73.31 kB / 0.8849 GB, free: 74.54 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002315/1.83, allocations: 160 kB / 0.8851 GB, free: 74.38 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005216/1.835, allocations: 1.661 MB / 0.8867 GB, free: 72.72 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007955/1.843, allocations: 2.347 MB / 0.889 GB, free: 70.37 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01367/1.857, allocations: 11.6 MB / 0.9003 GB, free: 58.63 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008339/1.865, allocations: 1.358 MB / 0.9016 GB, free: 57.26 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001923/1.867, allocations: 0.5273 MB / 0.9022 GB, free: 56.73 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.01323/1.88, allocations: 7.141 MB / 0.9091 GB, free: 49.57 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0017/1.882, allocations: 0.6095 MB / 0.9097 GB, free: 48.95 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01599/1.898, allocations: 10.09 MB / 0.9196 GB, free: 38.75 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009409/1.908, allocations: 7.769 MB / 0.9272 GB, free: 30.89 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.176e-05/1.908, allocations: 12 kB / 0.9272 GB, free: 30.88 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.801e-05/1.908, allocations: 29.2 kB / 0.9272 GB, free: 30.85 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04328/1.951, allocations: 25.44 MB / 0.952 GB, free: 5.234 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.163e-05/1.951, allocations: 8 kB / 0.9521 GB, free: 5.227 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003798/1.955, allocations: 1.006 MB / 0.953 GB, free: 4.219 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00461/1.959, allocations: 1.469 MB / 0.9545 GB, free: 2.746 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007213/1.96, allocations: 126 kB / 0.9546 GB, free: 2.625 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0143/1.975, allocations: 11.14 MB / 0.9655 GB, free: 7.359 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.291e-05/1.975, allocations: 15.94 kB / 0.9655 GB, free: 7.344 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2704/2.245, allocations: 14.09 MB / 0.9793 GB, free: 185.9 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00366/2.249, allocations: 1.436 MB / 0.9807 GB, free: 185.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001223/2.25, allocations: 110.3 kB / 0.9808 GB, free: 185.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003143/2.253, allocations: 331.1 kB / 0.9811 GB, free: 185.7 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000799/2.254, allocations: 396.5 kB / 0.9815 GB, free: 185.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003718/2.254, allocations: 166.3 kB / 0.9816 GB, free: 185.7 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.007533/2.262, allocations: 4.308 MB / 0.9858 GB, free: 185.5 MB / 0.5763 GB Notification: Performance of sort global known variables: time 7.32e-07/2.262, allocations: 0 / 0.9858 GB, free: 185.5 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01198/2.274, allocations: 4.032 MB / 0.9898 GB, free: 184.5 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.001433/2.275, allocations: 333.5 kB / 0.9901 GB, free: 184.3 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.0166/2.292, allocations: 11.36 MB / 1.001 GB, free: 180.8 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.38e-05/2.292, allocations: 2.688 kB / 1.001 GB, free: 180.8 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.007235/2.299, allocations: 4.634 MB / 1.006 GB, free: 179 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008808/2.308, allocations: 1.561 MB / 1.007 GB, free: 178.4 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05566/2.364, allocations: 28.68 MB / 1.035 GB, free: 160.5 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02062/2.384, allocations: 10.9 MB / 1.046 GB, free: 152.1 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00281/2.387, allocations: 0.5801 MB / 1.046 GB, free: 151.5 MB / 0.5763 GB Notification: Performance of SimCode: time 8.42e-07/2.387, allocations: 0 / 1.046 GB, free: 151.5 MB / 0.5763 GB Notification: Performance of Templates: time 0.554/2.941, allocations: 280.9 MB / 1.321 GB, free: 70.63 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