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.001326/0.001326, allocations: 83.89 kB / 21.19 MB, free: 3.383 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.001318/0.001318, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.9121/0.9121, allocations: 173.4 MB / 201.1 MB, free: 9.332 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.202e-06/1.202e-06, allocations: 3.938 kB / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.634e-05/1.754e-05, allocations: 2.312 kB / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.002735/0.002753, allocations: 2.775 MB / 270.8 MB, free: 3.648 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001068/0.003821, allocations: 0.8605 MB / 271.6 MB, free: 2.781 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.003929, allocations: 4 kB / 271.6 MB, free: 2.777 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002003/0.004129, allocations: 59.45 kB / 271.7 MB, free: 2.719 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002171/0.004347, allocations: 103.1 kB / 271.8 MB, free: 2.617 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000194/0.004541, allocations: 103.8 kB / 271.9 MB, free: 2.516 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002822/0.004823, allocations: 362.4 kB / 272.2 MB, free: 2.16 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.004954, allocations: 66.94 kB / 272.3 MB, free: 2.094 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000203/0.005157, allocations: 215.5 kB / 272.5 MB, free: 1.883 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001306/0.005287, allocations: 107.7 kB / 272.6 MB, free: 1.777 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.878e-05/0.005326, allocations: 28 kB / 272.7 MB, free: 1.75 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.199e-05/0.005358, allocations: 32 kB / 272.7 MB, free: 1.719 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.208e-05/0.0054, allocations: 71.75 kB / 272.8 MB, free: 1.648 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.581e-05/0.005476, allocations: 107.7 kB / 272.9 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002205/0.005696, allocations: 231.1 kB / 273.1 MB, free: 1.316 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.005699, allocations: 0 / 273.1 MB, free: 1.316 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.005699, allocations: 0 / 273.1 MB, free: 1.316 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.97e-06/0.005704, allocations: 0 / 273.1 MB, free: 1.316 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.0006423/0.006347, allocations: 0.6363 MB / 273.7 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.00638, allocations: 11.97 kB / 273.7 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.271e-05/0.006453, allocations: 56.75 kB / 273.8 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002004/0.006653, allocations: 199.9 kB / 274 MB, free: 364 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/0.006678, allocations: 21.03 kB / 274 MB, free: 344 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.965e-05/0.006717, allocations: 28.38 kB / 274 MB, free: 316 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002806/0.006998, allocations: 233 kB / 274.3 MB, free: 64 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.007006, allocations: 192 / 274.3 MB, free: 64 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.043e-05/0.007027, allocations: 16.38 kB / 274.3 MB, free: 48 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.007035, allocations: 7.938 kB / 274.3 MB, free: 40 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001709/0.007206, allocations: 111.8 kB / 274.4 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008882/0.008094, allocations: 0.8282 MB / 275.2 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002179/0.008312, allocations: 157.6 kB / 275.4 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001206/0.008433, allocations: 75.64 kB / 275.4 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.108e-05/0.008454, allocations: 4 kB / 275.4 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.081e-05/0.008475, allocations: 45.27 kB / 275.5 MB, free: 14.74 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.233e-06/0.008476, allocations: 0 / 275.5 MB, free: 14.74 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.002451/0.01093, allocations: 1.201 MB / 276.7 MB, free: 13.5 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.842e-05/0.01095, allocations: 55.41 kB / 276.7 MB, free: 13.43 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001741/0.01113, allocations: 274.6 kB / 277 MB, free: 13.14 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.01115, allocations: 37.64 kB / 277.1 MB, free: 13.1 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.01125, allocations: 239.2 kB / 277.3 MB, free: 12.86 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.727e-05/0.01132, allocations: 123 kB / 277.4 MB, free: 12.74 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.116e-05/0.0114, allocations: 71.73 kB / 277.5 MB, free: 12.66 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.01154, allocations: 0.5117 MB / 278 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.01164, allocations: 56.7 kB / 278 MB, free: 12.08 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001333/0.01178, allocations: 125.1 kB / 278.2 MB, free: 11.94 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002378/0.01201, allocations: 197.9 kB / 278.4 MB, free: 11.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.01202, allocations: 4 kB / 278.4 MB, free: 11.72 MB / 266.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007251/0.01274, allocations: 443.7 kB / 278.8 MB, free: 11.27 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.01275, allocations: 4 kB / 278.8 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.01276, allocations: 0 / 278.8 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008579/0.01362, allocations: 314.9 kB / 279.1 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001411/0.01376, allocations: 51.97 kB / 279.2 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002732/0.01649, allocations: 4.596 MB / 283.8 MB, free: 6.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.551e-05/0.01659, allocations: 8 kB / 283.8 MB, free: 6.062 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.881e-05/0.0166, allocations: 24.02 kB / 283.8 MB, free: 6.039 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 9.961e-05/0.0167, allocations: 180.4 kB / 284 MB, free: 5.852 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.325e-05/0.01675, allocations: 39.81 kB / 284 MB, free: 5.812 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.099e-05/0.01679, allocations: 38.64 kB / 284 MB, free: 5.773 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.01679, allocations: 4 kB / 284 MB, free: 5.77 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.0168, allocations: 3.938 kB / 284 MB, free: 5.766 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.0168, allocations: 0 / 284 MB, free: 5.766 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000972/0.01777, allocations: 0.7923 MB / 284.8 MB, free: 4.914 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.01778, allocations: 8.047 kB / 284.8 MB, free: 4.906 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001038/0.01788, allocations: 43.92 kB / 284.9 MB, free: 4.863 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007833/0.01866, allocations: 311.3 kB / 285.2 MB, free: 4.551 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.01868, allocations: 8 kB / 285.2 MB, free: 4.543 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002518/0.0212, allocations: 4.588 MB / 289.8 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.0212, allocations: 0 / 289.8 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000817/0.02202, allocations: 0.615 MB / 290.4 MB, free: 15.06 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.264e-05/0.02204, allocations: 31.78 kB / 290.4 MB, free: 15.03 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.977e-05/0.02206, allocations: 8 kB / 290.4 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.167e-05/0.02215, allocations: 11.98 kB / 290.5 MB, free: 15.01 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.229e-05/0.02222, allocations: 31.94 kB / 290.5 MB, free: 14.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.02224, allocations: 11.98 kB / 290.5 MB, free: 14.96 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.962e-05/0.02233, allocations: 186.9 kB / 290.7 MB, free: 14.78 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02233, allocations: 0 / 290.7 MB, free: 14.78 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003555/0.02268, allocations: 108 kB / 290.8 MB, free: 14.68 MB / 282.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 9.134e-05/0.02277, allocations: 107.2 kB / 290.9 MB, free: 14.56 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005526/0.02333, allocations: 0.5788 MB / 291.5 MB, free: 13.95 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.02333, allocations: 4 kB / 291.5 MB, free: 13.94 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003139/0.02364, allocations: 0.4954 MB / 292 MB, free: 13.41 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.02387, allocations: 32.66 kB / 292 MB, free: 13.37 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009956/0.02486, allocations: 0.6303 MB / 292.6 MB, free: 12.7 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.506e-05/0.02493, allocations: 101.1 kB / 292.7 MB, free: 12.58 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.598e-05/0.02498, allocations: 26.27 kB / 292.8 MB, free: 12.55 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.88e-05/0.02502, allocations: 16.5 kB / 292.8 MB, free: 12.54 MB / 282.7 MB Notification: Performance of SimCode: time 5.41e-07/0.02502, allocations: 4 kB / 292.8 MB, free: 12.54 MB / 282.7 MB Notification: Performance of Templates: time 0.007316/0.03234, allocations: 6.109 MB / 298.9 MB, free: 6.445 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.849839338567108]