Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.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.000954/0.000954, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.0009491/0.0009491, allocations: 145.2 kB / 25.59 MB, free: 8.918 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.9172/0.9172, allocations: 173.4 MB / 202.3 MB, free: 8.273 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.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|coil.i|coil.Phi|r_mLeak.port_p.Phi|r_mFe.mu_r|r_mFe.B|r_mFe.H",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|coil.i|coil.Phi|r_mLeak.port_p.Phi|r_mFe.mu_r|r_mFe.B|r_mFe.H",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 269.2 MB, free: 9.797 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.127e-05/2.275e-05, allocations: 9.266 kB / 269.2 MB, free: 9.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.002955/0.002978, allocations: 2.732 MB / 271.9 MB, free: 7.055 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009626/0.00394, allocations: 0.8538 MB / 272.8 MB, free: 6.199 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001332/0.004073, allocations: 6.031 kB / 272.8 MB, free: 6.195 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000524/0.004597, allocations: 55.5 kB / 272.8 MB, free: 6.141 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002246/0.004822, allocations: 111.9 kB / 273 MB, free: 6.031 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001828/0.005005, allocations: 97.78 kB / 273 MB, free: 5.938 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002747/0.005279, allocations: 362.5 kB / 273.4 MB, free: 5.582 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001552/0.005435, allocations: 74.03 kB / 273.5 MB, free: 5.508 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001986/0.005633, allocations: 200.9 kB / 273.7 MB, free: 5.312 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001445/0.005778, allocations: 115.7 kB / 273.8 MB, free: 5.199 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.706e-05/0.005815, allocations: 32 kB / 273.8 MB, free: 5.168 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.964e-05/0.005844, allocations: 28.53 kB / 273.8 MB, free: 5.141 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.595e-05/0.00589, allocations: 68.42 kB / 273.9 MB, free: 5.074 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.518e-05/0.005965, allocations: 111.7 kB / 274 MB, free: 4.965 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002322/0.006198, allocations: 236.8 kB / 274.3 MB, free: 4.734 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.0062, allocations: 0 / 274.3 MB, free: 4.734 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.006201, allocations: 0 / 274.3 MB, free: 4.734 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.006207, allocations: 4 kB / 274.3 MB, free: 4.73 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0006651/0.006872, allocations: 0.6335 MB / 274.9 MB, free: 4.062 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.00691, allocations: 12.03 kB / 274.9 MB, free: 4.051 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.638e-05/0.006977, allocations: 52.75 kB / 275 MB, free: 4 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002165/0.007193, allocations: 208 kB / 275.2 MB, free: 3.77 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.612e-05/0.007219, allocations: 17.03 kB / 275.2 MB, free: 3.754 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.297e-05/0.007252, allocations: 28.38 kB / 275.2 MB, free: 3.727 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002497/0.007502, allocations: 209 kB / 275.4 MB, free: 3.508 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.007512, allocations: 4.188 kB / 275.4 MB, free: 3.504 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.636e-05/0.007528, allocations: 8.375 kB / 275.4 MB, free: 3.496 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.754e-06/0.007536, allocations: 11.94 kB / 275.4 MB, free: 3.484 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001092/0.007645, allocations: 88.52 kB / 275.5 MB, free: 3.402 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008073/0.008453, allocations: 0.8013 MB / 276.3 MB, free: 2.547 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001737/0.008626, allocations: 127 kB / 276.4 MB, free: 2.41 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.271e-05/0.008709, allocations: 67.75 kB / 276.5 MB, free: 2.34 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.9e-05/0.008728, allocations: 11.98 kB / 276.5 MB, free: 2.328 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.912e-05/0.008747, allocations: 33.39 kB / 276.5 MB, free: 2.285 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 1.253e-06/0.008749, allocations: 0 / 276.5 MB, free: 2.285 MB / 250.7 MB Notification: Performance of matching and sorting (n=35): time 0.002344/0.01109, allocations: 1.124 MB / 277.7 MB, free: 1.117 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.796e-05/0.01112, allocations: 63.2 kB / 277.7 MB, free: 1.043 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.01125, allocations: 270.5 kB / 278 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.01127, allocations: 37.7 kB / 278 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.472e-05/0.01136, allocations: 231.2 kB / 278.3 MB, free: 496 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.127e-05/0.01142, allocations: 119 kB / 278.4 MB, free: 376 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.441e-05/0.01149, allocations: 79.64 kB / 278.5 MB, free: 288 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.01162, allocations: 0.5156 MB / 279 MB, free: 15.75 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.113e-05/0.01168, allocations: 44.72 kB / 279 MB, free: 15.71 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.23e-05/0.01177, allocations: 113.1 kB / 279.1 MB, free: 15.58 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000162/0.01193, allocations: 173.9 kB / 279.3 MB, free: 15.39 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-06/0.01193, allocations: 0 / 279.3 MB, free: 15.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000646/0.01258, allocations: 399.7 kB / 279.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.01259, allocations: 4 kB / 279.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.0126, allocations: 4.062 kB / 279.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001072/0.01367, allocations: 314.9 kB / 280 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/0.0138, allocations: 63.91 kB / 280.1 MB, free: 14.6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002562/0.01636, allocations: 4.513 MB / 284.6 MB, free: 9.867 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.439e-05/0.01646, allocations: 12.03 kB / 284.6 MB, free: 9.855 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.01647, allocations: 8 kB / 284.6 MB, free: 9.848 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001003/0.01657, allocations: 184.4 kB / 284.8 MB, free: 9.656 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.501e-05/0.01662, allocations: 35.86 kB / 284.8 MB, free: 9.621 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.235e-05/0.01666, allocations: 38.64 kB / 284.8 MB, free: 9.582 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.01666, allocations: 4 kB / 284.9 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.01666, allocations: 0 / 284.9 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.01667, allocations: 0 / 284.9 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009293/0.0176, allocations: 0.7381 MB / 285.6 MB, free: 8.789 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.0176, allocations: 0 / 285.6 MB, free: 8.789 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.0177, allocations: 43.97 kB / 285.6 MB, free: 8.746 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008021/0.0185, allocations: 307 kB / 285.9 MB, free: 8.438 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.01852, allocations: 7.984 kB / 285.9 MB, free: 8.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002573/0.02109, allocations: 4.496 MB / 290.4 MB, free: 3.707 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.02109, allocations: 3.938 kB / 290.4 MB, free: 3.703 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007138/0.02181, allocations: 0.5799 MB / 291 MB, free: 3.086 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.012e-05/0.02183, allocations: 19.81 kB / 291 MB, free: 3.066 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/0.02185, allocations: 8 kB / 291 MB, free: 3.059 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.976e-05/0.02194, allocations: 15.98 kB / 291.1 MB, free: 3.043 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.986e-05/0.02202, allocations: 31.88 kB / 291.1 MB, free: 3.012 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.158e-05/0.02205, allocations: 8 kB / 291.1 MB, free: 3.004 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.709e-05/0.02213, allocations: 186.8 kB / 291.3 MB, free: 2.82 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02213, allocations: 0 / 291.3 MB, free: 2.82 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003588/0.02249, allocations: 100 kB / 291.4 MB, free: 2.723 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (coil.i) * 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 (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 8.858e-05/0.02258, allocations: 111.2 kB / 291.5 MB, free: 2.605 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004813/0.02306, allocations: 0.5592 MB / 292.1 MB, free: 2.008 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.02306, allocations: 0 / 292.1 MB, free: 2.008 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002721/0.02334, allocations: 491.3 kB / 292.5 MB, free: 1.488 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002133/0.02355, allocations: 32.7 kB / 292.6 MB, free: 1.449 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008681/0.02442, allocations: 0.6275 MB / 293.2 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.336e-05/0.02448, allocations: 101.1 kB / 293.3 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.745e-05/0.02454, allocations: 18.28 kB / 293.3 MB, free: 0.6445 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.66e-05/0.02461, allocations: 98.19 kB / 293.4 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.02462, allocations: 0 / 293.4 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of Templates: time 0.007601/0.03222, allocations: 6.324 MB / 299.7 MB, free: 10.25 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/SaturatedInductor/SaturatedInductor.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: 2.9595955088734627]