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.0007884/0.0007884, allocations: 91.81 kB / 16.65 MB, free: 6.59 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.0008851/0.0008852, allocations: 181.9 kB / 17.56 MB, free: 6.203 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.449/1.449, allocations: 223.3 MB / 241.6 MB, free: 14.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002737/0.0002737, allocations: 11.94 kB / 301.4 MB, free: 5.871 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08403/0.08432, allocations: 50.42 MB / 351.8 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.1948/0.2791, allocations: 26.73 MB / 378.6 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0138/0.293, allocations: 7.012 MB / 385.6 MB, free: 7.383 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005991/0.299, allocations: 245.2 kB / 385.8 MB, free: 7.332 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006095/0.3051, allocations: 1.962 MB / 387.8 MB, free: 6.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01006/0.3152, allocations: 2.397 MB / 390.2 MB, free: 5.539 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007248/0.3225, allocations: 1.713 MB / 391.9 MB, free: 4.602 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02115/0.3437, allocations: 17.4 MB / 409.3 MB, free: 10.6 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.08307/0.4268, allocations: 43.61 MB / 452.9 MB, free: 272 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01364/0.4405, allocations: 6.777 MB / 459.7 MB, free: 9.469 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01322/0.4537, allocations: 8.137 MB / 467.8 MB, free: 1.297 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003491/0.4572, allocations: 1.141 MB / 469 MB, free: 160 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005858/0.4631, allocations: 1.386 MB / 470.3 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004674/0.4678, allocations: 3.277 MB / 473.6 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01306/0.4809, allocations: 8.383 MB / 482 MB, free: 3.055 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03534/0.5163, allocations: 36.65 MB / 0.5065 GB, free: 14.29 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.5163, allocations: 7.875 kB / 0.5065 GB, free: 14.28 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.467e-06/0.5163, allocations: 0 / 0.5065 GB, free: 14.28 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0009925/0.5174, allocations: 0 / 0.5065 GB, free: 14.28 MB / 430.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.369/0.8863, allocations: 18.07 MB / 0.5242 GB, free: 104.7 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.8864, allocations: 10.44 kB / 0.5242 GB, free: 104.7 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04549/0.9319, allocations: 8.359 MB / 0.5323 GB, free: 103.4 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02215/0.9541, allocations: 11.3 MB / 0.5434 GB, free: 96.47 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00132/0.9555, allocations: 1.337 MB / 0.5447 GB, free: 95.87 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005948/0.9614, allocations: 1.745 MB / 0.5464 GB, free: 95.29 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06147/1.023, allocations: 28.76 MB / 0.5745 GB, free: 70.12 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006652/1.024, allocations: 19.8 kB / 0.5745 GB, free: 70.11 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004199/1.028, allocations: 0.7374 MB / 0.5752 GB, free: 69.38 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007227/1.029, allocations: 0.8609 MB / 0.576 GB, free: 68.52 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04314/1.072, allocations: 24.82 MB / 0.6003 GB, free: 43.67 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1336/1.205, allocations: 88.27 MB / 0.6865 GB, free: 2.008 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3803/1.586, allocations: 35.16 MB / 0.7208 GB, free: 130 MB / 494.3 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0153/1.601, allocations: 5.354 MB / 0.726 GB, free: 129.8 MB / 494.3 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000823/1.602, allocations: 204.9 kB / 0.7262 GB, free: 129.7 MB / 494.3 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.435e-05/1.602, allocations: 94.59 kB / 0.7263 GB, free: 129.6 MB / 494.3 MB Notification: Performance of pre-optimization done (n=589): time 1.391e-05/1.602, allocations: 0 / 0.7263 GB, free: 129.6 MB / 494.3 MB Notification: Performance of matching and sorting (n=589): time 0.05279/1.655, allocations: 14.87 MB / 0.7408 GB, free: 124.9 MB / 494.3 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.237e-05/1.655, allocations: 141 kB / 0.741 GB, free: 124.8 MB / 494.3 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01289/1.668, allocations: 6.415 MB / 0.7472 GB, free: 122.7 MB / 494.3 MB Notification: Performance of collectPreVariables (initialization): time 0.0009821/1.669, allocations: 116.5 kB / 0.7473 GB, free: 122.6 MB / 494.3 MB Notification: Performance of collectInitialEqns (initialization): time 0.003992/1.673, allocations: 7.601 MB / 0.7548 GB, free: 117.1 MB / 494.3 MB Notification: Performance of collectInitialBindings (initialization): time 0.002159/1.675, allocations: 2.044 MB / 0.7568 GB, free: 115.5 MB / 494.3 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001747/1.677, allocations: 0.8134 MB / 0.7576 GB, free: 115.2 MB / 494.3 MB Notification: Performance of setup shared object (initialization): time 3.842e-05/1.677, allocations: 304.9 kB / 0.7579 GB, free: 114.9 MB / 494.3 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006794/1.684, allocations: 4.818 MB / 0.7626 GB, free: 113.1 MB / 494.3 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007541/1.691, allocations: 9.55 MB / 0.7719 GB, free: 105.1 MB / 494.3 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01411/1.705, allocations: 15.46 MB / 0.787 GB, free: 93.82 MB / 494.3 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001133/1.706, allocations: 47.83 kB / 0.787 GB, free: 93.78 MB / 494.3 MB Notification: Performance of matching and sorting (n=1342) (initialization): time 0.02125/1.727, allocations: 15.54 MB / 0.8022 GB, free: 78.48 MB / 494.3 MB Notification: Performance of prepare postOptimizeDAE: time 9.552e-05/1.727, allocations: 79.94 kB / 0.8023 GB, free: 78.4 MB / 494.3 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002127/1.727, allocations: 160.6 kB / 0.8024 GB, free: 78.25 MB / 494.3 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005228/1.732, allocations: 1.672 MB / 0.8041 GB, free: 76.57 MB / 494.3 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007307/1.74, allocations: 2.347 MB / 0.8064 GB, free: 74.23 MB / 494.3 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01158/1.751, allocations: 10.87 MB / 0.817 GB, free: 63.23 MB / 494.3 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007331/1.759, allocations: 1.343 MB / 0.8183 GB, free: 61.88 MB / 494.3 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001314/1.76, allocations: 0.5351 MB / 0.8188 GB, free: 61.34 MB / 494.3 MB 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 (1249): * Single equations (assignments): 1240 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008963/1.769, allocations: 7.141 MB / 0.8258 GB, free: 54.18 MB / 494.3 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001018/1.77, allocations: 0.6134 MB / 0.8264 GB, free: 53.56 MB / 494.3 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01293/1.783, allocations: 10.3 MB / 0.8364 GB, free: 43.16 MB / 494.3 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009393/1.792, allocations: 7.927 MB / 0.8442 GB, free: 35.15 MB / 494.3 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.007e-05/1.792, allocations: 16 kB / 0.8442 GB, free: 35.14 MB / 494.3 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.086e-05/1.792, allocations: 27.89 kB / 0.8442 GB, free: 35.11 MB / 494.3 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03758/1.83, allocations: 26.23 MB / 0.8698 GB, free: 8.422 MB / 494.3 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.237e-05/1.83, allocations: 16.17 kB / 0.8698 GB, free: 8.406 MB / 494.3 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003731/1.834, allocations: 1.006 MB / 0.8708 GB, free: 7.398 MB / 494.3 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004973/1.839, allocations: 1.469 MB / 0.8723 GB, free: 5.926 MB / 494.3 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005554/1.839, allocations: 128 kB / 0.8724 GB, free: 5.801 MB / 494.3 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01292/1.852, allocations: 10.43 MB / 0.8826 GB, free: 11.25 MB / 0.4983 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.024e-05/1.852, allocations: 19.78 kB / 0.8826 GB, free: 11.23 MB / 0.4983 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2285/2.081, allocations: 14.37 MB / 0.8966 GB, free: 150.7 MB / 0.4983 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003594/2.084, allocations: 1.458 MB / 0.8981 GB, free: 150.6 MB / 0.4983 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001452/2.086, allocations: 109.7 kB / 0.8982 GB, free: 150.6 MB / 0.4983 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003575/2.09, allocations: 329.1 kB / 0.8985 GB, free: 150.6 MB / 0.4983 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009261/2.09, allocations: 401.6 kB / 0.8989 GB, free: 150.6 MB / 0.4983 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003609/2.091, allocations: 170.1 kB / 0.899 GB, free: 150.6 MB / 0.4983 GB Notification: Performance of sorting global known variables: time 0.007483/2.098, allocations: 4.311 MB / 0.9032 GB, free: 149.9 MB / 0.4983 GB Notification: Performance of sort global known variables: time 3.61e-07/2.098, allocations: 0 / 0.9032 GB, free: 149.9 MB / 0.4983 GB Notification: Performance of remove unused functions: time 0.01454/2.113, allocations: 4.037 MB / 0.9072 GB, free: 148.8 MB / 0.4983 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 (534): * Single equations (assignments): 525 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.00202/2.115, allocations: 327.8 kB / 0.9075 GB, free: 148.6 MB / 0.4983 GB Notification: Performance of simCode: created initialization part: time 0.02585/2.141, allocations: 11.51 MB / 0.9187 GB, free: 144.3 MB / 0.4983 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-05/2.141, allocations: 0 / 0.9187 GB, free: 144.3 MB / 0.4983 GB Notification: Performance of simCode: created simulation system equations: time 0.011/2.152, allocations: 4.737 MB / 0.9233 GB, free: 142.4 MB / 0.4983 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02158/2.174, allocations: 1.475 MB / 0.9248 GB, free: 141.9 MB / 0.4983 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07781/2.251, allocations: 36.89 MB / 0.9608 GB, free: 119.3 MB / 0.4983 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02077/2.272, allocations: 11.26 MB / 0.9718 GB, free: 110.6 MB / 0.4983 GB Notification: Performance of simCode: alias equations: time 0.0124/2.285, allocations: 3.767 MB / 0.9755 GB, free: 108.1 MB / 0.4983 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00289/2.288, allocations: 0.5221 MB / 0.976 GB, free: 107.6 MB / 0.4983 GB Notification: Performance of SimCode: time 1.443e-06/2.288, allocations: 4 kB / 0.976 GB, free: 107.6 MB / 0.4983 GB Notification: Performance of Templates: time 0.156/2.444, allocations: 99.35 MB / 1.073 GB, free: 9.367 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","/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