Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.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.00104/0.00104, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0008944/0.0008944, allocations: 145.1 kB / 24.54 MB, free: 36 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 1.005/1.005, allocations: 173.4 MB / 201.1 MB, free: 9.312 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.Analog.Examples.ShowSaturatingInductor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=628,variableFilter="time|Inductance1.i|SaturatingInductance1.Psi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") translateModel(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=628,variableFilter="time|Inductance1.i|SaturatingInductance1.Psi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 268 MB, free: 6.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.03e-05/4.241e-05, allocations: 2.312 kB / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.004089/0.004132, allocations: 2.057 MB / 270.1 MB, free: 4.34 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001238/0.005369, allocations: 0.5686 MB / 270.6 MB, free: 3.766 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.791e-05/0.005467, allocations: 4 kB / 270.6 MB, free: 3.762 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.344e-05/0.005541, allocations: 19.78 kB / 270.6 MB, free: 3.742 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002021/0.005743, allocations: 51.56 kB / 270.7 MB, free: 3.691 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004296/0.006172, allocations: 83.75 kB / 270.8 MB, free: 3.609 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003239/0.006496, allocations: 191.2 kB / 271 MB, free: 3.422 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002071/0.006703, allocations: 33.67 kB / 271 MB, free: 3.383 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003068/0.00701, allocations: 123.6 kB / 271.1 MB, free: 3.262 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001241/0.007134, allocations: 59.8 kB / 271.2 MB, free: 3.203 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.978e-05/0.007174, allocations: 16 kB / 271.2 MB, free: 3.188 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.983e-05/0.007204, allocations: 12 kB / 271.2 MB, free: 3.176 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.856e-05/0.007242, allocations: 39.89 kB / 271.2 MB, free: 3.137 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.275e-05/0.007315, allocations: 51.84 kB / 271.3 MB, free: 3.086 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002359/0.007551, allocations: 123.5 kB / 271.4 MB, free: 2.965 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.007555, allocations: 0 / 271.4 MB, free: 2.965 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.007557, allocations: 3.938 kB / 271.4 MB, free: 2.961 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.007565, allocations: 4 kB / 271.4 MB, free: 2.957 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: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0007977/0.008363, allocations: 491.9 kB / 271.9 MB, free: 2.441 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.008409, allocations: 8.031 kB / 271.9 MB, free: 2.434 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.768e-05/0.008487, allocations: 24.84 kB / 271.9 MB, free: 2.41 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001675/0.008654, allocations: 136.4 kB / 272.1 MB, free: 2.25 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.896e-05/0.008673, allocations: 8.375 kB / 272.1 MB, free: 2.242 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.557e-05/0.008719, allocations: 16.33 kB / 272.1 MB, free: 2.227 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003463/0.009065, allocations: 193.4 kB / 272.3 MB, free: 2.004 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.009078, allocations: 192 / 272.3 MB, free: 2.004 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.931e-05/0.009097, allocations: 8.312 kB / 272.3 MB, free: 1.996 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.009109, allocations: 7.938 kB / 272.3 MB, free: 1.988 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001327/0.009242, allocations: 46.86 kB / 272.3 MB, free: 1.945 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009144/0.01016, allocations: 462.5 kB / 272.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001677/0.01032, allocations: 59.05 kB / 272.9 MB, free: 1.379 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001404/0.01046, allocations: 47.66 kB / 272.9 MB, free: 1.328 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.076e-05/0.01048, allocations: 0 / 272.9 MB, free: 1.328 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.01052, allocations: 45.33 kB / 272.9 MB, free: 1.273 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.01052, allocations: 0 / 272.9 MB, free: 1.273 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002806/0.0108, allocations: 81.61 kB / 273 MB, free: 1.188 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.853e-05/0.01086, allocations: 110.8 kB / 273.1 MB, free: 1.055 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001707/0.01103, allocations: 209.8 kB / 273.3 MB, free: 0.832 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.853e-05/0.01105, allocations: 25.7 kB / 273.4 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.515e-05/0.01114, allocations: 174.8 kB / 273.5 MB, free: 0.625 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.003e-05/0.01117, allocations: 31.73 kB / 273.6 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.379e-05/0.01124, allocations: 39.34 kB / 273.6 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.01139, allocations: 0.4923 MB / 274.1 MB, free: 44 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.796e-05/0.01144, allocations: 11.98 kB / 274.1 MB, free: 32 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001357/0.01158, allocations: 125.7 kB / 274.2 MB, free: 15.88 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001251/0.01171, allocations: 59.06 kB / 274.3 MB, free: 15.8 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.237e-06/0.01171, allocations: 0 / 274.3 MB, free: 15.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002171/0.01193, allocations: 105.5 kB / 274.4 MB, free: 15.7 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.01194, allocations: 4 kB / 274.4 MB, free: 15.69 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.01195, allocations: 4.062 kB / 274.4 MB, free: 15.69 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.353e-05/0.01197, allocations: 7.938 kB / 274.4 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004604/0.01243, allocations: 75.92 kB / 274.5 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001405/0.01384, allocations: 1.882 MB / 276.4 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001197/0.01396, allocations: 19.94 kB / 276.4 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.01397, allocations: 4 kB / 276.4 MB, free: 13.57 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001074/0.01408, allocations: 164.5 kB / 276.5 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.135e-05/0.01412, allocations: 15.89 kB / 276.6 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002931/0.01441, allocations: 114.2 kB / 276.7 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.01442, allocations: 4 kB / 276.7 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.01442, allocations: 4 kB / 276.7 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.01442, allocations: 0 / 276.7 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005489/0.01497, allocations: 405 kB / 277.1 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.01498, allocations: 0 / 277.1 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.01509, allocations: 23.92 kB / 277.1 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002499/0.01534, allocations: 43.67 kB / 277.1 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.334e-05/0.01536, allocations: 0 / 277.1 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001031/0.01639, allocations: 1.755 MB / 278.9 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.01639, allocations: 4 kB / 278.9 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003353/0.01673, allocations: 283.1 kB / 279.2 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.136e-05/0.01675, allocations: 15.89 kB / 279.2 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.145e-05/0.01677, allocations: 4 kB / 279.2 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.01687, allocations: 8 kB / 279.2 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.313e-05/0.01692, allocations: 3.984 kB / 279.2 MB, free: 10.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/0.01693, allocations: 12 kB / 279.2 MB, free: 10.51 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.828e-05/0.01701, allocations: 157.9 kB / 279.4 MB, free: 10.36 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01701, allocations: 0 / 279.4 MB, free: 10.36 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003227/0.01734, allocations: 39.94 kB / 279.4 MB, free: 10.32 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (SaturatingInductance1.Psi,Inductance1.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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001219/0.01746, allocations: 99.23 kB / 279.5 MB, free: 10.21 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004091/0.01787, allocations: 99.55 kB / 279.6 MB, free: 10.11 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.01787, allocations: 3.938 kB / 279.6 MB, free: 10.11 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002393/0.01811, allocations: 209.2 kB / 279.8 MB, free: 9.883 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000256/0.01837, allocations: 23.92 kB / 279.8 MB, free: 9.859 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.01941, allocations: 425.5 kB / 280.3 MB, free: 9.414 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.222e-05/0.01946, allocations: 71.28 kB / 280.3 MB, free: 9.324 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.441e-05/0.0195, allocations: 16.48 kB / 280.3 MB, free: 9.309 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.949e-05/0.01954, allocations: 16.5 kB / 280.4 MB, free: 9.293 MB / 266.7 MB Notification: Performance of SimCode: time 1.072e-06/0.01954, allocations: 0 / 280.4 MB, free: 9.293 MB / 266.7 MB Notification: Performance of Templates: time 0.003844/0.02338, allocations: 1.796 MB / 282.1 MB, free: 7.504 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.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: 3.028043549042195]