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.001093/0.001093, 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.0009826/0.0009826, allocations: 145.5 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 0.9504/0.9504, allocations: 173.4 MB / 201.1 MB, free: 9.348 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 1.743e-06/1.743e-06, allocations: 0 / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.547e-05/2.721e-05, allocations: 10.31 kB / 268 MB, free: 6.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.002292/0.002319, allocations: 2.053 MB / 270.1 MB, free: 4.367 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000998/0.003317, allocations: 0.5647 MB / 270.6 MB, free: 3.797 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.51e-05/0.003382, allocations: 4 kB / 270.6 MB, free: 3.793 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.169e-05/0.003434, allocations: 15.8 kB / 270.6 MB, free: 3.777 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001251/0.003559, allocations: 47.56 kB / 270.7 MB, free: 3.73 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002793/0.003838, allocations: 99.73 kB / 270.8 MB, free: 3.633 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001545/0.003993, allocations: 183.2 kB / 271 MB, free: 3.453 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.004123, allocations: 37.66 kB / 271 MB, free: 3.41 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001723/0.004295, allocations: 119.6 kB / 271.1 MB, free: 3.293 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.9e-05/0.004374, allocations: 63.8 kB / 271.2 MB, free: 3.23 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.866e-05/0.004403, allocations: 12 kB / 271.2 MB, free: 3.219 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.932e-05/0.004422, allocations: 16 kB / 271.2 MB, free: 3.203 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.092e-05/0.004453, allocations: 31.89 kB / 271.2 MB, free: 3.172 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.555e-05/0.004509, allocations: 51.86 kB / 271.3 MB, free: 3.121 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001902/0.004699, allocations: 131.5 kB / 271.4 MB, free: 2.992 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.854e-06/0.004701, allocations: 0 / 271.4 MB, free: 2.992 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.004702, allocations: 0 / 271.4 MB, free: 2.992 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.004706, allocations: 0 / 271.4 MB, free: 2.992 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.0005996/0.005305, allocations: 491.9 kB / 271.9 MB, free: 2.477 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.005342, allocations: 8.031 kB / 271.9 MB, free: 2.469 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.099e-05/0.005403, allocations: 24.84 kB / 271.9 MB, free: 2.445 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001284/0.005531, allocations: 144.4 kB / 272.1 MB, free: 2.277 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.005545, allocations: 4.375 kB / 272.1 MB, free: 2.273 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.153e-05/0.005576, allocations: 16.33 kB / 272.1 MB, free: 2.258 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002609/0.005837, allocations: 193.3 kB / 272.3 MB, free: 2.035 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.005849, allocations: 4.125 kB / 272.3 MB, free: 2.031 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.526e-05/0.005865, allocations: 4.375 kB / 272.3 MB, free: 2.027 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/0.005875, allocations: 7.938 kB / 272.3 MB, free: 2.02 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.57e-05/0.005971, allocations: 42.67 kB / 272.3 MB, free: 1.98 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006733/0.006644, allocations: 474.5 kB / 272.8 MB, free: 1.473 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001295/0.006773, allocations: 59.03 kB / 272.9 MB, free: 1.402 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.006878, allocations: 43.67 kB / 272.9 MB, free: 1.355 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.394e-05/0.006892, allocations: 3.984 kB / 272.9 MB, free: 1.352 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.006916, allocations: 41.33 kB / 272.9 MB, free: 1.301 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.006917, allocations: 0 / 272.9 MB, free: 1.301 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.000221/0.007138, allocations: 77.62 kB / 273 MB, free: 1.219 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.507e-05/0.007183, allocations: 110.8 kB / 273.1 MB, free: 1.086 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001215/0.007305, allocations: 213.9 kB / 273.3 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.43e-05/0.007319, allocations: 25.7 kB / 273.4 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.348e-05/0.007393, allocations: 174.6 kB / 273.5 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.223e-05/0.007415, allocations: 23.75 kB / 273.6 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.232e-05/0.007467, allocations: 39.36 kB / 273.6 MB, free: 0.582 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003501/0.007817, allocations: 0.4923 MB / 274.1 MB, free: 80 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.177e-05/0.007859, allocations: 15.98 kB / 274.1 MB, free: 64 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.79e-05/0.007957, allocations: 121.9 kB / 274.2 MB, free: 15.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.868e-05/0.008056, allocations: 63.03 kB / 274.3 MB, free: 15.84 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.008058, allocations: 4.031 kB / 274.3 MB, free: 15.83 MB / 266.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001573/0.008215, allocations: 101.5 kB / 274.4 MB, free: 15.73 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.008229, allocations: 7.984 kB / 274.4 MB, free: 15.72 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.008233, allocations: 3.938 kB / 274.4 MB, free: 15.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.008246, allocations: 4 kB / 274.4 MB, free: 15.71 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00037/0.008616, allocations: 75.92 kB / 274.5 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001078/0.009694, allocations: 1.885 MB / 276.4 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.855e-05/0.009783, allocations: 15.94 kB / 276.4 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.868e-06/0.009793, allocations: 4 kB / 276.4 MB, free: 13.61 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 8.441e-05/0.009877, allocations: 164.7 kB / 276.5 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.54e-05/0.009913, allocations: 15.89 kB / 276.6 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000219/0.01013, allocations: 110.1 kB / 276.7 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.01013, allocations: 0 / 276.7 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.82e-07/0.01013, allocations: 0 / 276.7 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.01014, allocations: 8.031 kB / 276.7 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004108/0.01055, allocations: 413 kB / 277.1 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.01055, allocations: 4.031 kB / 277.1 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.752e-05/0.01064, allocations: 23.92 kB / 277.1 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001879/0.01083, allocations: 39.66 kB / 277.1 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.01084, allocations: 3.984 kB / 277.1 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008115/0.01165, allocations: 1.748 MB / 278.9 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01165, allocations: 0 / 278.9 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000278/0.01193, allocations: 291.1 kB / 279.2 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.648e-05/0.01195, allocations: 11.91 kB / 279.2 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.669e-05/0.01196, allocations: 0 / 279.2 MB, free: 10.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.058e-05/0.01205, allocations: 12.14 kB / 279.2 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.573e-05/0.01209, allocations: 11.98 kB / 279.2 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.0121, allocations: 4 kB / 279.2 MB, free: 10.54 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.32e-05/0.01217, allocations: 157.6 kB / 279.4 MB, free: 10.39 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01217, allocations: 0 / 279.4 MB, free: 10.39 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002678/0.01244, allocations: 35.94 kB / 279.4 MB, free: 10.36 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 8.007e-05/0.01252, allocations: 103.2 kB / 279.5 MB, free: 10.25 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003638/0.01288, allocations: 103.6 kB / 279.6 MB, free: 10.14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.01288, allocations: 0 / 279.6 MB, free: 10.14 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001983/0.01308, allocations: 209.1 kB / 279.8 MB, free: 9.914 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002347/0.01332, allocations: 19.92 kB / 279.8 MB, free: 9.895 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009761/0.01429, allocations: 433.5 kB / 280.3 MB, free: 9.441 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.54e-05/0.01434, allocations: 71.28 kB / 280.3 MB, free: 9.352 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.392e-05/0.01438, allocations: 12.48 kB / 280.3 MB, free: 9.34 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.144e-05/0.01442, allocations: 20.48 kB / 280.4 MB, free: 9.32 MB / 266.7 MB Notification: Performance of SimCode: time 7.12e-07/0.01442, allocations: 0 / 280.4 MB, free: 9.32 MB / 266.7 MB Notification: Performance of Templates: time 0.004308/0.01873, allocations: 1.887 MB / 282.2 MB, free: 7.441 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: 2.7634930731728673]