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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009412/0.0009412, allocations: 78.19 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009617/0.0009617, allocations: 154.8 kB / 24.81 MB, free: 8.93 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8758/0.8758, allocations: 173.4 MB / 201.5 MB, free: 8.309 MB / 186.7 MB " [Timeout remaining time 179] 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=100,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=100,variableFilter="time|source.plug_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 268.4 MB, free: 9.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.478e-05/1.648e-05, allocations: 3.875 kB / 268.4 MB, free: 9.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.01874/0.01875, allocations: 26.5 MB / 294.9 MB, free: 15.15 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01086/0.02961, allocations: 7.096 MB / 302 MB, free: 8.043 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004175/0.03379, allocations: 314.4 kB / 302.3 MB, free: 7.734 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01581/0.0496, allocations: 13.62 MB / 315.9 MB, free: 10.06 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006769/0.05637, allocations: 2.822 MB / 318.8 MB, free: 7.219 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003122/0.05949, allocations: 1.874 MB / 320.6 MB, free: 5.348 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01353/0.07302, allocations: 18.95 MB / 339.6 MB, free: 2.328 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1546/0.2276, allocations: 28.2 MB / 367.8 MB, free: 12.83 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02253/0.2502, allocations: 15.26 MB / 383 MB, free: 6.309 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01365/0.2638, allocations: 11.18 MB / 394.2 MB, free: 280 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.008907/0.2727, allocations: 3.026 MB / 397.2 MB, free: 13.57 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009877/0.2826, allocations: 3.174 MB / 400.4 MB, free: 10.44 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.008061/0.2906, allocations: 5.679 MB / 406.1 MB, free: 5.762 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01414/0.3048, allocations: 7.334 MB / 413.4 MB, free: 15.11 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02576/0.3305, allocations: 18.31 MB / 431.7 MB, free: 13.94 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3306, allocations: 0 / 431.7 MB, free: 13.94 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.3306, allocations: 0 / 431.7 MB, free: 13.94 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0007691/0.3313, allocations: 0.9062 kB / 431.7 MB, free: 13.94 MB / 362.7 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.0463/0.3776, allocations: 22.55 MB / 454.3 MB, free: 8.332 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.3777, allocations: 11.69 kB / 454.3 MB, free: 8.324 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02664/0.4043, allocations: 8.388 MB / 462.7 MB, free: 20 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01682/0.4211, allocations: 10.28 MB / 473 MB, free: 6.137 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001385/0.4225, allocations: 1.349 MB / 474.3 MB, free: 4.801 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004665/0.4272, allocations: 1.767 MB / 476.1 MB, free: 3.047 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03781/0.465, allocations: 14.01 MB / 490.1 MB, free: 5.684 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004642/0.4655, allocations: 18.95 kB / 490.1 MB, free: 5.668 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003261/0.4687, allocations: 0.7273 MB / 490.8 MB, free: 4.953 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006063/0.4693, allocations: 0.8415 MB / 491.7 MB, free: 4.109 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3007/0.7701, allocations: 5.692 MB / 497.4 MB, free: 91.35 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08694/0.857, allocations: 70.3 MB / 0.5544 GB, free: 59.18 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008117/0.8651, allocations: 8.919 MB / 0.5631 GB, free: 55.13 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002438/0.8676, allocations: 2.319 MB / 0.5653 GB, free: 52.87 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002645/0.8678, allocations: 180.3 kB / 0.5655 GB, free: 52.69 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.628e-05/0.8679, allocations: 93.91 kB / 0.5656 GB, free: 52.59 MB / 410.8 MB Notification: Performance of pre-optimization done (n=577): time 6.893e-06/0.8679, allocations: 7.469 kB / 0.5656 GB, free: 52.58 MB / 410.8 MB Notification: Performance of matching and sorting (n=577): time 0.01422/0.8821, allocations: 7.751 MB / 0.5732 GB, free: 44.8 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.046e-05/0.8822, allocations: 133.6 kB / 0.5733 GB, free: 44.65 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006334/0.8885, allocations: 6.214 MB / 0.5794 GB, free: 39.5 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007581/0.8892, allocations: 121.7 kB / 0.5795 GB, free: 39.37 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003482/0.8927, allocations: 8.409 MB / 0.5877 GB, free: 32.21 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001584/0.8943, allocations: 2.198 MB / 0.5899 GB, free: 30.13 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002238/0.8966, allocations: 2.456 MB / 0.5923 GB, free: 27.86 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 3.452e-05/0.8966, allocations: 476.8 kB / 0.5927 GB, free: 27.39 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001268/0.8979, allocations: 1.066 MB / 0.5937 GB, free: 26.32 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003748/0.9016, allocations: 8.321 MB / 0.6019 GB, free: 15.25 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007679/0.9093, allocations: 10.51 MB / 0.6121 GB, free: 2.523 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001487/0.9094, allocations: 52 kB / 0.6122 GB, free: 2.473 MB / 410.8 MB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.01293/0.9224, allocations: 8.154 MB / 0.6202 GB, free: 11.31 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.9225, allocations: 72 kB / 0.6202 GB, free: 11.24 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002015/0.9227, allocations: 160 kB / 0.6204 GB, free: 11.09 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004245/0.9269, allocations: 1.578 MB / 0.6219 GB, free: 9.52 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005927/0.9328, allocations: 2.187 MB / 0.624 GB, free: 7.512 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008787/0.9416, allocations: 6.95 MB / 0.6308 GB, free: 0.6641 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006349/0.948, allocations: 1.187 MB / 0.632 GB, free: 15.46 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001161/0.9491, allocations: 460 kB / 0.6324 GB, free: 15.02 MB / 442.8 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 (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.004631/0.9538, allocations: 0.8892 MB / 0.6333 GB, free: 14.3 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00131/0.9551, allocations: 0.8045 MB / 0.6341 GB, free: 13.49 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008629/0.9637, allocations: 5.441 MB / 0.6394 GB, free: 8.266 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004006/0.9677, allocations: 2.91 MB / 0.6422 GB, free: 5.332 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.365e-05/0.9677, allocations: 15.94 kB / 0.6423 GB, free: 5.316 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.013e-05/0.9677, allocations: 27.89 kB / 0.6423 GB, free: 5.289 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3259/1.294, allocations: 17.35 MB / 0.6592 GB, free: 101.4 MB / 442.9 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.561e-05/1.294, allocations: 7.594 kB / 0.6592 GB, free: 101.4 MB / 442.9 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001886/1.296, allocations: 0.856 MB / 0.6601 GB, free: 101.4 MB / 442.9 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00305/1.299, allocations: 1.377 MB / 0.6614 GB, free: 101.4 MB / 442.9 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002935/1.299, allocations: 125 kB / 0.6615 GB, free: 101.4 MB / 442.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005494/1.304, allocations: 6.579 MB / 0.668 GB, free: 99.38 MB / 442.9 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/1.304, allocations: 13.25 kB / 0.668 GB, free: 99.38 MB / 442.9 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006326/1.311, allocations: 5.6 MB / 0.6734 GB, free: 98.12 MB / 442.9 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001966/1.313, allocations: 1.151 MB / 0.6746 GB, free: 97.89 MB / 442.9 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005846/1.313, allocations: 112.6 kB / 0.6747 GB, free: 97.89 MB / 442.9 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001325/1.315, allocations: 150.3 kB / 0.6748 GB, free: 97.89 MB / 442.9 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005211/1.315, allocations: 423 kB / 0.6752 GB, free: 97.88 MB / 442.9 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002179/1.315, allocations: 131.9 kB / 0.6753 GB, free: 97.88 MB / 442.9 MB Notification: Performance of sorting global known variables: time 0.002965/1.318, allocations: 2.43 MB / 0.6777 GB, free: 97.65 MB / 442.9 MB Notification: Performance of sort global known variables: time 1.81e-07/1.318, allocations: 0 / 0.6777 GB, free: 97.65 MB / 442.9 MB Notification: Performance of remove unused functions: time 0.00802/1.326, allocations: 4.106 MB / 0.6817 GB, free: 97.05 MB / 442.9 MB 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.0009424/1.327, allocations: 336.8 kB / 0.6821 GB, free: 96.96 MB / 442.9 MB Notification: Performance of simCode: created initialization part: time 0.007436/1.335, allocations: 5.987 MB / 0.6879 GB, free: 96.37 MB / 442.9 MB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/1.335, allocations: 3.875 kB / 0.6879 GB, free: 96.37 MB / 442.9 MB Notification: Performance of simCode: created simulation system equations: time 0.002682/1.337, allocations: 2.51 MB / 0.6904 GB, free: 95.86 MB / 442.9 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004138/1.342, allocations: 1.495 MB / 0.6918 GB, free: 95.07 MB / 442.9 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03075/1.372, allocations: 24.54 MB / 0.7158 GB, free: 75.25 MB / 442.9 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005473/1.378, allocations: 4.908 MB / 0.7206 GB, free: 73 MB / 442.9 MB Notification: Performance of simCode: alias equations: time 0.003181/1.381, allocations: 1.117 MB / 0.7217 GB, free: 72.13 MB / 442.9 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002324/1.383, allocations: 1.505 MB / 0.7231 GB, free: 70.86 MB / 442.9 MB Notification: Performance of SimCode: time 1.643e-06/1.383, allocations: 0 / 0.7231 GB, free: 70.86 MB / 442.9 MB Notification: Performance of Templates: time 0.2832/1.666, allocations: 97.64 MB / 0.8185 GB, free: 123.2 MB / 458.9 MB " [Timeout remaining time 658] make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.782228648196906]