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.001328/0.001328, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001592/0.001592, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.432/1.432, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009465/0.0009466, allocations: 51.33 kB / 300.6 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08351/0.08447, allocations: 49.43 MB / 350 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.1877/0.2722, allocations: 28.61 MB / 378.7 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01452/0.2868, allocations: 7.121 MB / 385.8 MB, free: 7.203 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005253/0.292, allocations: 263.8 kB / 386 MB, free: 7.152 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02391/0.316, allocations: 13.11 MB / 399.1 MB, free: 40 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01151/0.3275, allocations: 2.688 MB / 401.8 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006124/0.3337, allocations: 1.841 MB / 403.7 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01952/0.3532, allocations: 17.96 MB / 421.6 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07279/0.426, allocations: 44.64 MB / 466.3 MB, free: 1.258 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01571/0.4418, allocations: 9.902 MB / 476.2 MB, free: 7.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01662/0.4585, allocations: 11.07 MB / 487.2 MB, free: 12.24 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007069/0.4656, allocations: 2.918 MB / 490.2 MB, free: 9.32 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009774/0.4754, allocations: 3.164 MB / 493.3 MB, free: 6.16 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008319/0.4837, allocations: 5.491 MB / 498.8 MB, free: 0.6562 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.018/0.5017, allocations: 10.82 MB / 0.4977 GB, free: 5.797 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3922/0.894, allocations: 38.76 MB / 0.5355 GB, free: 78.94 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.8941, allocations: 0 / 0.5355 GB, free: 78.94 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.8941, allocations: 1.781 kB / 0.5355 GB, free: 78.94 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.00107/0.8952, allocations: 0 / 0.5355 GB, free: 78.94 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.06535/0.9605, allocations: 21.93 MB / 0.5569 GB, free: 68.06 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.9606, allocations: 15.58 kB / 0.557 GB, free: 68.05 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04326/1.004, allocations: 8.32 MB / 0.5651 GB, free: 64.28 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02266/1.027, allocations: 11.27 MB / 0.5761 GB, free: 54.12 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001193/1.028, allocations: 1.343 MB / 0.5774 GB, free: 52.79 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007721/1.036, allocations: 1.757 MB / 0.5791 GB, free: 51.04 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0667/1.102, allocations: 28.71 MB / 0.6072 GB, free: 22.29 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006252/1.103, allocations: 20.92 kB / 0.6072 GB, free: 22.27 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007116/1.11, allocations: 0.7296 MB / 0.6079 GB, free: 21.55 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006169/1.111, allocations: 0.8454 MB / 0.6087 GB, free: 20.7 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04401/1.155, allocations: 24.78 MB / 0.6329 GB, free: 11.91 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3857/1.54, allocations: 88.01 MB / 0.7189 GB, free: 117 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02209/1.563, allocations: 35.13 MB / 0.7532 GB, free: 89.53 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006983/1.57, allocations: 5.296 MB / 0.7583 GB, free: 89.46 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004069/1.57, allocations: 201 kB / 0.7585 GB, free: 89.36 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.612e-05/1.57, allocations: 98.72 kB / 0.7586 GB, free: 89.31 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=577): time 8.777e-06/1.57, allocations: 0 / 0.7586 GB, free: 89.31 MB / 0.4982 GB Notification: Performance of matching and sorting (n=577): time 0.02977/1.6, allocations: 14.73 MB / 0.773 GB, free: 88.51 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.345e-05/1.6, allocations: 142.7 kB / 0.7731 GB, free: 88.41 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008573/1.609, allocations: 6.42 MB / 0.7794 GB, free: 88.02 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.001074/1.61, allocations: 117.3 kB / 0.7795 GB, free: 87.99 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.003413/1.613, allocations: 7.609 MB / 0.787 GB, free: 83.65 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001761/1.615, allocations: 2.011 MB / 0.7889 GB, free: 82.42 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0026/1.618, allocations: 2.088 MB / 0.791 GB, free: 81.44 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 6.173e-05/1.618, allocations: 304.8 kB / 0.7912 GB, free: 81.14 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005828/1.623, allocations: 4.737 MB / 0.7959 GB, free: 78.61 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007917/1.631, allocations: 9.469 MB / 0.8051 GB, free: 69.68 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01512/1.646, allocations: 15.31 MB / 0.8201 GB, free: 53.23 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000186/1.647, allocations: 44 kB / 0.8201 GB, free: 53.18 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.02452/1.671, allocations: 15.37 MB / 0.8351 GB, free: 38.71 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001028/1.671, allocations: 76.56 kB / 0.8352 GB, free: 38.64 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001921/1.672, allocations: 160 kB / 0.8353 GB, free: 38.48 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004975/1.677, allocations: 1.674 MB / 0.837 GB, free: 36.8 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007522/1.684, allocations: 2.347 MB / 0.8393 GB, free: 34.64 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0127/1.697, allocations: 11.6 MB / 0.8506 GB, free: 22.99 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007681/1.705, allocations: 1.343 MB / 0.8519 GB, free: 21.64 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001721/1.706, allocations: 0.535 MB / 0.8524 GB, free: 21.1 MB / 0.4982 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.01028/1.717, allocations: 7.144 MB / 0.8594 GB, free: 14.12 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001237/1.718, allocations: 0.6182 MB / 0.86 GB, free: 13.5 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01259/1.73, allocations: 10.11 MB / 0.8699 GB, free: 3.32 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01023/1.741, allocations: 7.761 MB / 0.8775 GB, free: 11.52 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.509e-05/1.741, allocations: 16 kB / 0.8775 GB, free: 11.5 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.88e-05/1.741, allocations: 31.88 kB / 0.8775 GB, free: 11.47 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04935/1.79, allocations: 25.97 MB / 0.9029 GB, free: 1.211 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.591e-05/1.79, allocations: 14.09 kB / 0.9029 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004024/1.794, allocations: 1.007 MB / 0.9039 GB, free: 248 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1946/1.989, allocations: 1.471 MB / 0.9053 GB, free: 188.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001179/1.99, allocations: 125.6 kB / 0.9054 GB, free: 188.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01449/2.005, allocations: 11.15 MB / 0.9163 GB, free: 186.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.705e-06/2.005, allocations: 10.28 kB / 0.9163 GB, free: 186.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01592/2.021, allocations: 14.1 MB / 0.9301 GB, free: 180.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002628/2.023, allocations: 1.436 MB / 0.9315 GB, free: 179.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007916/2.024, allocations: 111.1 kB / 0.9316 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002591/2.027, allocations: 319.9 kB / 0.9319 GB, free: 179.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007333/2.027, allocations: 399.9 kB / 0.9323 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002895/2.028, allocations: 167.8 kB / 0.9325 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005278/2.033, allocations: 4.299 MB / 0.9367 GB, free: 178.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/2.033, allocations: 0 / 0.9367 GB, free: 178.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009434/2.042, allocations: 4.046 MB / 0.9406 GB, free: 176.8 MB / 0.5294 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.0007981/2.043, allocations: 339.3 kB / 0.9409 GB, free: 176.6 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.04844/2.092, allocations: 26.54 MB / 0.9669 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/2.092, allocations: 0 / 0.9669 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005512/2.097, allocations: 4.639 MB / 0.9714 GB, free: 153.6 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006552/2.104, allocations: 1.556 MB / 0.9729 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04718/2.151, allocations: 29.62 MB / 1.002 GB, free: 125.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01419/2.165, allocations: 11.25 MB / 1.013 GB, free: 116.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.008882/2.174, allocations: 3.768 MB / 1.016 GB, free: 113.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001601/2.176, allocations: 0.515 MB / 1.017 GB, free: 112.7 MB / 0.5294 GB Notification: Performance of SimCode: time 8.61e-07/2.176, allocations: 0 / 1.017 GB, free: 112.7 MB / 0.5294 GB Notification: Performance of Templates: time 0.3549/2.531, allocations: 103.3 MB / 1.118 GB, free: 162.9 MB / 0.5294 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