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.001239/0.001239, allocations: 109.5 kB / 17.06 MB, free: 5.992 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.001106/0.001106, allocations: 192 kB / 18 MB, free: 5.082 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 / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001066/0.001066, allocations: 51.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2356/0.2367, allocations: 49.43 MB / 400.7 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.02961/0.2663, allocations: 28.61 MB / 429.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01479/0.2812, allocations: 7.122 MB / 436.5 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004833/0.286, allocations: 267.2 kB / 436.7 MB, free: 4.875 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02716/0.3133, allocations: 13.13 MB / 449.9 MB, free: 7.719 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008983/0.3223, allocations: 2.726 MB / 452.6 MB, free: 4.98 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005431/0.3277, allocations: 1.839 MB / 454.4 MB, free: 3.148 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02111/0.3489, allocations: 18.1 MB / 472.5 MB, free: 0.9844 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06639/0.4153, allocations: 44.45 MB / 0.5049 GB, free: 4.309 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01369/0.429, allocations: 9.961 MB / 0.5146 GB, free: 10.34 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01574/0.4448, allocations: 11.05 MB / 0.5254 GB, free: 15.25 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006038/0.4508, allocations: 2.922 MB / 0.5282 GB, free: 12.33 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007843/0.4587, allocations: 3.168 MB / 0.5313 GB, free: 9.16 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007344/0.4661, allocations: 5.476 MB / 0.5367 GB, free: 3.672 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.4076/0.8737, allocations: 10.82 MB / 0.5472 GB, free: 59.55 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03351/0.9072, allocations: 38.99 MB / 0.5853 GB, free: 45.29 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.9073, allocations: 0 / 0.5853 GB, free: 45.29 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.9073, allocations: 0 / 0.5853 GB, free: 45.29 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0009088/0.9082, allocations: 2.062 kB / 0.5853 GB, free: 45.29 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.05928/0.9675, allocations: 21.93 MB / 0.6067 GB, free: 31.91 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.868e-05/0.9675, allocations: 14.17 kB / 0.6067 GB, free: 31.9 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04141/1.009, allocations: 8.329 MB / 0.6149 GB, free: 25.18 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02584/1.035, allocations: 11.62 MB / 0.6262 GB, free: 14.09 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001101/1.036, allocations: 1.343 MB / 0.6275 GB, free: 12.76 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006935/1.043, allocations: 1.758 MB / 0.6293 GB, free: 11.01 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07523/1.118, allocations: 28.71 MB / 0.6573 GB, free: 14.26 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007625/1.119, allocations: 19.89 kB / 0.6573 GB, free: 14.24 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005244/1.124, allocations: 0.7338 MB / 0.658 GB, free: 13.52 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008775/1.125, allocations: 0.8415 MB / 0.6588 GB, free: 12.68 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05804/1.183, allocations: 24.78 MB / 0.683 GB, free: 3.879 MB / 0.4982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4708/1.654, allocations: 86.87 MB / 0.7679 GB, free: 119.2 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02468/1.679, allocations: 35.12 MB / 0.8022 GB, free: 91.74 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007725/1.686, allocations: 5.439 MB / 0.8075 GB, free: 91.64 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004185/1.687, allocations: 203.7 kB / 0.8077 GB, free: 91.54 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.438e-05/1.687, allocations: 96.33 kB / 0.8078 GB, free: 91.49 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=577): time 7.664e-06/1.687, allocations: 0 / 0.8078 GB, free: 91.49 MB / 0.5607 GB Notification: Performance of matching and sorting (n=577): time 0.03035/1.717, allocations: 14.72 MB / 0.8222 GB, free: 90.69 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.556e-05/1.717, allocations: 136.8 kB / 0.8223 GB, free: 90.59 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009668/1.727, allocations: 6.426 MB / 0.8286 GB, free: 90.18 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0009391/1.728, allocations: 120.7 kB / 0.8287 GB, free: 90.15 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.003523/1.732, allocations: 7.614 MB / 0.8361 GB, free: 85.36 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.002172/1.734, allocations: 2.007 MB / 0.8381 GB, free: 83.94 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003297/1.737, allocations: 2.09 MB / 0.8401 GB, free: 83.6 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.604e-05/1.737, allocations: 303.7 kB / 0.8404 GB, free: 83.3 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006488/1.744, allocations: 4.737 MB / 0.845 GB, free: 82.47 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009125/1.753, allocations: 9.463 MB / 0.8543 GB, free: 74.05 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0168/1.77, allocations: 15.3 MB / 0.8692 GB, free: 57.45 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002184/1.77, allocations: 48 kB / 0.8693 GB, free: 57.41 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.02584/1.796, allocations: 15.38 MB / 0.8843 GB, free: 42.93 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 9.076e-05/1.796, allocations: 79.94 kB / 0.8843 GB, free: 42.85 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001917/1.796, allocations: 163.9 kB / 0.8845 GB, free: 42.69 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004713/1.801, allocations: 1.653 MB / 0.8861 GB, free: 41.03 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007021/1.808, allocations: 2.355 MB / 0.8884 GB, free: 38.86 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01179/1.82, allocations: 11.6 MB / 0.8997 GB, free: 27.21 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006885/1.827, allocations: 1.347 MB / 0.9011 GB, free: 25.85 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001358/1.828, allocations: 0.5312 MB / 0.9016 GB, free: 25.32 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.01109/1.839, allocations: 7.139 MB / 0.9085 GB, free: 18.34 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001269/1.84, allocations: 0.6133 MB / 0.9091 GB, free: 17.72 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01344/1.854, allocations: 10.1 MB / 0.919 GB, free: 7.555 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009173/1.863, allocations: 7.765 MB / 0.9266 GB, free: 15.75 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.338e-05/1.863, allocations: 12 kB / 0.9266 GB, free: 15.73 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-05/1.863, allocations: 31.83 kB / 0.9266 GB, free: 15.7 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04821/1.911, allocations: 25.43 MB / 0.9515 GB, free: 6.246 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.591e-05/1.911, allocations: 8 kB / 0.9515 GB, free: 6.238 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003917/1.915, allocations: 1.008 MB / 0.9525 GB, free: 5.281 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00502/1.92, allocations: 1.465 MB / 0.9539 GB, free: 3.809 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005326/1.921, allocations: 128 kB / 0.954 GB, free: 3.684 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01393/1.935, allocations: 11.15 MB / 0.9649 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.216e-06/1.935, allocations: 11.28 kB / 0.9649 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2649/2.2, allocations: 14.09 MB / 0.9787 GB, free: 217.1 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003186/2.203, allocations: 1.434 MB / 0.9801 GB, free: 217 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007452/2.204, allocations: 116.6 kB / 0.9802 GB, free: 217 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002478/2.206, allocations: 324.5 kB / 0.9805 GB, free: 217 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007524/2.207, allocations: 402.5 kB / 0.9809 GB, free: 217 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003111/2.207, allocations: 165.6 kB / 0.981 GB, free: 217 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.008035/2.215, allocations: 4.308 MB / 0.9852 GB, free: 216.8 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.31e-07/2.215, allocations: 0 / 0.9852 GB, free: 216.8 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01192/2.227, allocations: 4.03 MB / 0.9892 GB, free: 215.8 MB / 0.6075 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.001214/2.228, allocations: 331.2 kB / 0.9895 GB, free: 215.6 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01471/2.243, allocations: 11.36 MB / 1.001 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.48e-05/2.243, allocations: 7.844 kB / 1.001 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.006138/2.249, allocations: 4.639 MB / 1.005 GB, free: 210.7 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007924/2.257, allocations: 1.56 MB / 1.007 GB, free: 210.1 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05546/2.313, allocations: 29.28 MB / 1.035 GB, free: 192.9 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01985/2.333, allocations: 11.25 MB / 1.046 GB, free: 184.2 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.01094/2.344, allocations: 3.767 MB / 1.05 GB, free: 181.7 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00248/2.346, allocations: 0.5179 MB / 1.05 GB, free: 181.2 MB / 0.6075 GB Notification: Performance of SimCode: time 1.482e-06/2.346, allocations: 0 / 1.05 GB, free: 181.2 MB / 0.6075 GB Notification: Performance of Templates: time 0.1502/2.496, allocations: 99.21 MB / 1.147 GB, free: 84.56 MB / 0.6075 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","/var/lib/jenkins/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