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.001493/0.001493, allocations: 106 kB / 16.62 MB, free: 6.805 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.001742/0.001742, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.293/1.293, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009418/0.0009418, allocations: 51.8 kB / 300.1 MB, free: 6.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08067/0.08162, allocations: 49.45 MB / 349.6 MB, free: 4.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.1785/0.2601, allocations: 28.03 MB / 377.6 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01078/0.2709, allocations: 7.04 MB / 384.6 MB, free: 7.277 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003107/0.2741, allocations: 252.7 kB / 384.9 MB, free: 7.227 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02274/0.2969, allocations: 12.45 MB / 397.3 MB, free: 1.441 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008628/0.3055, allocations: 2.379 MB / 399.7 MB, free: 15.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00462/0.3102, allocations: 1.706 MB / 401.4 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01817/0.3283, allocations: 17.94 MB / 419.4 MB, free: 236 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06372/0.3921, allocations: 51.65 MB / 471 MB, free: 12.38 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01165/0.4038, allocations: 10.07 MB / 481.1 MB, free: 2.297 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01368/0.4175, allocations: 11.14 MB / 492.2 MB, free: 7.117 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006452/0.4239, allocations: 2.926 MB / 495.2 MB, free: 4.191 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008573/0.4325, allocations: 3.172 MB / 498.3 MB, free: 1.02 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005682/0.4382, allocations: 5.511 MB / 0.492 GB, free: 11.49 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01292/0.4512, allocations: 10.83 MB / 0.5026 GB, free: 0.625 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3323/0.7835, allocations: 38.8 MB / 0.5405 GB, free: 83.03 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.055e-06/0.7836, allocations: 0.8125 kB / 0.5405 GB, free: 83.03 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.7836, allocations: 0 / 0.5405 GB, free: 83.03 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.001065/0.7847, allocations: 0 / 0.5405 GB, free: 83.03 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.06395/0.8486, allocations: 22.04 MB / 0.562 GB, free: 70.86 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.8487, allocations: 15.58 kB / 0.562 GB, free: 70.86 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04368/0.8923, allocations: 8.323 MB / 0.5702 GB, free: 66.21 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02252/0.9149, allocations: 11.27 MB / 0.5812 GB, free: 55.47 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008112/0.9158, allocations: 1.332 MB / 0.5825 GB, free: 54.15 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008516/0.9243, allocations: 1.749 MB / 0.5842 GB, free: 52.41 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06521/0.9895, allocations: 28.77 MB / 0.6123 GB, free: 23.6 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004891/0.99, allocations: 19.81 kB / 0.6123 GB, free: 23.58 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005317/0.9954, allocations: 0.7218 MB / 0.613 GB, free: 22.87 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005788/0.996, allocations: 0.8685 MB / 0.6138 GB, free: 22 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0445/1.04, allocations: 24.82 MB / 0.6381 GB, free: 13.16 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3213/1.362, allocations: 88.02 MB / 0.724 GB, free: 118.6 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01956/1.381, allocations: 35.19 MB / 0.7584 GB, free: 91.18 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006984/1.388, allocations: 5.384 MB / 0.7637 GB, free: 91.08 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003933/1.389, allocations: 210.4 kB / 0.7639 GB, free: 90.97 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.582e-05/1.389, allocations: 91.75 kB / 0.764 GB, free: 90.93 MB / 494.1 MB Notification: Performance of pre-optimization done (n=589): time 9.177e-06/1.389, allocations: 0 / 0.764 GB, free: 90.93 MB / 494.1 MB Notification: Performance of matching and sorting (n=589): time 0.03015/1.419, allocations: 14.82 MB / 0.7784 GB, free: 90.09 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.69e-05/1.419, allocations: 141.2 kB / 0.7786 GB, free: 89.98 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008083/1.427, allocations: 6.417 MB / 0.7848 GB, free: 89.29 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007229/1.428, allocations: 121.3 kB / 0.7849 GB, free: 89.18 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002825/1.431, allocations: 7.594 MB / 0.7924 GB, free: 82.58 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001514/1.432, allocations: 2.051 MB / 0.7944 GB, free: 80.82 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002388/1.435, allocations: 2.1 MB / 0.7964 GB, free: 79.62 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.425e-05/1.435, allocations: 305.1 kB / 0.7967 GB, free: 79.32 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005389/1.44, allocations: 4.815 MB / 0.8014 GB, free: 76.76 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006853/1.447, allocations: 9.548 MB / 0.8107 GB, free: 65.15 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01306/1.46, allocations: 15.46 MB / 0.8258 GB, free: 47.38 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.32e-05/1.46, allocations: 48 kB / 0.8259 GB, free: 47.33 MB / 494.1 MB Notification: Performance of matching and sorting (n=1342) (initialization): time 0.02081/1.481, allocations: 15.54 MB / 0.841 GB, free: 31.71 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.301e-05/1.481, allocations: 72.56 kB / 0.8411 GB, free: 31.64 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001726/1.481, allocations: 164 kB / 0.8413 GB, free: 31.48 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005092/1.486, allocations: 1.664 MB / 0.8429 GB, free: 29.81 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007119/1.494, allocations: 2.355 MB / 0.8452 GB, free: 27.45 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01229/1.506, allocations: 11.59 MB / 0.8565 GB, free: 15.73 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007242/1.513, allocations: 1.351 MB / 0.8578 GB, free: 14.37 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001347/1.515, allocations: 0.5273 MB / 0.8584 GB, free: 13.84 MB / 494.1 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.009947/1.524, allocations: 7.153 MB / 0.8653 GB, free: 6.668 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001132/1.526, allocations: 0.6095 MB / 0.8659 GB, free: 6.051 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01463/1.54, allocations: 10.28 MB / 0.876 GB, free: 11.66 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01189/1.552, allocations: 7.931 MB / 0.8837 GB, free: 3.645 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.682e-05/1.552, allocations: 13.31 kB / 0.8837 GB, free: 3.633 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.155e-05/1.552, allocations: 27.89 kB / 0.8838 GB, free: 3.605 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2306/1.783, allocations: 26.25 MB / 0.9094 GB, free: 157 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.269e-05/1.783, allocations: 7.688 kB / 0.9094 GB, free: 157 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003702/1.787, allocations: 1.009 MB / 0.9104 GB, free: 156.9 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005177/1.792, allocations: 1.472 MB / 0.9118 GB, free: 156.6 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005924/1.792, allocations: 129.5 kB / 0.9119 GB, free: 156.6 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01222/1.805, allocations: 11.16 MB / 0.9228 GB, free: 150.7 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.692e-06/1.805, allocations: 15.47 kB / 0.9229 GB, free: 150.7 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01636/1.821, allocations: 14.37 MB / 0.9369 GB, free: 142.7 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002434/1.823, allocations: 1.447 MB / 0.9383 GB, free: 141.4 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007499/1.824, allocations: 113.8 kB / 0.9384 GB, free: 141.2 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002658/1.827, allocations: 320.9 kB / 0.9387 GB, free: 141 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006651/1.828, allocations: 407 kB / 0.9391 GB, free: 140.8 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003126/1.828, allocations: 171.6 kB / 0.9393 GB, free: 140.6 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.004983/1.833, allocations: 4.303 MB / 0.9435 GB, free: 137.1 MB / 0.4982 GB Notification: Performance of sort global known variables: time 9.32e-07/1.833, allocations: 0 / 0.9435 GB, free: 137.1 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.009023/1.842, allocations: 4.045 MB / 0.9474 GB, free: 133.1 MB / 0.4982 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.0007809/1.843, allocations: 334.6 kB / 0.9478 GB, free: 132.8 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.05392/1.897, allocations: 27.28 MB / 0.9744 GB, free: 107 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 8.817e-06/1.897, allocations: 8.25 kB / 0.9744 GB, free: 107 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.00617/1.903, allocations: 4.733 MB / 0.979 GB, free: 102.9 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008122/1.911, allocations: 1.557 MB / 0.9805 GB, free: 101.6 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04888/1.96, allocations: 36.84 MB / 1.017 GB, free: 64.58 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01124/1.971, allocations: 11.26 MB / 1.028 GB, free: 53.27 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.008604/1.98, allocations: 3.774 MB / 1.031 GB, free: 49.49 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001458/1.981, allocations: 0.515 MB / 1.032 GB, free: 48.97 MB / 0.4982 GB Notification: Performance of SimCode: time 8.52e-07/1.981, allocations: 0 / 1.032 GB, free: 48.97 MB / 0.4982 GB Notification: Performance of Templates: time 0.3609/2.342, allocations: 104.4 MB / 1.134 GB, free: 112.9 MB / 0.4982 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