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.001449/0.001449, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.001635/0.001635, allocations: 139.7 kB / 24.97 MB, free: 8.383 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 1.002/1.002, allocations: 173.4 MB / 201.5 MB, free: 9.359 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.844e-06/1.844e-06, allocations: 0 / 268.1 MB, free: 6.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.95e-05/2.134e-05, allocations: 6.25 kB / 268.1 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003211/0.003232, allocations: 2.049 MB / 270.1 MB, free: 4.68 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009482/0.00418, allocations: 0.5685 MB / 270.7 MB, free: 4.105 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.696e-05/0.004257, allocations: 0 / 270.7 MB, free: 4.105 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.994e-05/0.004317, allocations: 23.78 kB / 270.7 MB, free: 4.082 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000145/0.004462, allocations: 51.56 kB / 270.8 MB, free: 4.031 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003163/0.004778, allocations: 87.75 kB / 270.9 MB, free: 3.945 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002137/0.004992, allocations: 187.2 kB / 271 MB, free: 3.762 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001446/0.005137, allocations: 33.66 kB / 271.1 MB, free: 3.723 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000222/0.005359, allocations: 115.8 kB / 271.2 MB, free: 3.609 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001/0.005459, allocations: 59.8 kB / 271.3 MB, free: 3.551 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.842e-05/0.005497, allocations: 16 kB / 271.3 MB, free: 3.535 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.797e-05/0.005525, allocations: 16 kB / 271.3 MB, free: 3.52 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.584e-05/0.005561, allocations: 31.84 kB / 271.3 MB, free: 3.488 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.708e-05/0.005628, allocations: 63.83 kB / 271.4 MB, free: 3.426 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002012/0.005829, allocations: 127.5 kB / 271.5 MB, free: 3.301 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.005832, allocations: 0 / 271.5 MB, free: 3.301 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.005832, allocations: 0 / 271.5 MB, free: 3.301 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.005837, allocations: 0 / 271.5 MB, free: 3.301 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.0005325/0.006369, allocations: 487.9 kB / 272 MB, free: 2.789 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.00641, allocations: 12.03 kB / 272 MB, free: 2.777 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.134e-05/0.006482, allocations: 28.84 kB / 272 MB, free: 2.75 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001523/0.006634, allocations: 136.4 kB / 272.2 MB, free: 2.59 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.00665, allocations: 4.375 kB / 272.2 MB, free: 2.586 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.696e-05/0.006687, allocations: 16.33 kB / 272.2 MB, free: 2.57 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002862/0.006973, allocations: 185.4 kB / 272.4 MB, free: 2.355 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.006986, allocations: 192 / 272.4 MB, free: 2.355 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.007004, allocations: 8.375 kB / 272.4 MB, free: 2.348 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.007012, allocations: 3.938 kB / 272.4 MB, free: 2.344 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001194/0.007131, allocations: 46.86 kB / 272.4 MB, free: 2.301 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00082/0.007951, allocations: 474.5 kB / 272.9 MB, free: 1.793 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001476/0.008099, allocations: 59.03 kB / 272.9 MB, free: 1.723 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.008221, allocations: 47.66 kB / 273 MB, free: 1.672 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.708e-05/0.008239, allocations: 4 kB / 273 MB, free: 1.668 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.829e-05/0.008267, allocations: 33.39 kB / 273 MB, free: 1.625 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 1.824e-06/0.008269, allocations: 3.938 kB / 273 MB, free: 1.621 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002417/0.00851, allocations: 89.56 kB / 273.1 MB, free: 1.527 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.851e-05/0.008559, allocations: 106.8 kB / 273.2 MB, free: 1.398 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.008678, allocations: 209.9 kB / 273.4 MB, free: 1.176 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.008696, allocations: 25.7 kB / 273.4 MB, free: 1.145 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.653e-05/0.008782, allocations: 174.6 kB / 273.6 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.017e-05/0.008812, allocations: 27.75 kB / 273.6 MB, free: 0.9414 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.938e-05/0.008872, allocations: 35.36 kB / 273.7 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.009008, allocations: 0.4923 MB / 274.2 MB, free: 404 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.357e-05/0.009061, allocations: 19.98 kB / 274.2 MB, free: 384 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001006/0.009162, allocations: 117.8 kB / 274.3 MB, free: 232 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000112/0.009274, allocations: 63.02 kB / 274.4 MB, free: 156 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.009277, allocations: 4 kB / 274.4 MB, free: 152 kB / 250.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001944/0.009472, allocations: 105.6 kB / 274.5 MB, free: 40 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.009493, allocations: 8 kB / 274.5 MB, free: 32 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.009498, allocations: 0 / 274.5 MB, free: 32 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.009513, allocations: 0 / 274.5 MB, free: 32 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004395/0.009952, allocations: 79.92 kB / 274.6 MB, free: 15.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001615/0.01157, allocations: 1.885 MB / 276.4 MB, free: 13.94 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/0.01168, allocations: 15.94 kB / 276.5 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.244e-05/0.01169, allocations: 4.156 kB / 276.5 MB, free: 13.92 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.0001056/0.0118, allocations: 164.6 kB / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.483e-05/0.01184, allocations: 19.88 kB / 276.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002789/0.01212, allocations: 114 kB / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.01213, allocations: 0 / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-06/0.01213, allocations: 0 / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.01213, allocations: 0 / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004598/0.01259, allocations: 413 kB / 277.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.01259, allocations: 0 / 277.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.01271, allocations: 23.92 kB / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002453/0.01295, allocations: 43.64 kB / 277.2 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.01296, allocations: 4 kB / 277.2 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001009/0.01397, allocations: 1.752 MB / 279 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.01398, allocations: 3.984 kB / 279 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003519/0.01433, allocations: 283.1 kB / 279.3 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.274e-05/0.01435, allocations: 15.89 kB / 279.3 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.461e-05/0.01437, allocations: 4.156 kB / 279.3 MB, free: 10.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.01448, allocations: 8 kB / 279.3 MB, free: 10.87 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.506e-05/0.01452, allocations: 11.98 kB / 279.3 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.652e-06/0.01453, allocations: 4 kB / 279.3 MB, free: 10.86 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.112e-05/0.01462, allocations: 161.8 kB / 279.5 MB, free: 10.7 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.01462, allocations: 3.938 kB / 279.5 MB, free: 10.7 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003322/0.01495, allocations: 39.94 kB / 279.5 MB, free: 10.66 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 9.895e-05/0.01505, allocations: 99.23 kB / 279.6 MB, free: 10.55 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00044/0.01549, allocations: 95.55 kB / 279.7 MB, free: 10.45 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.01549, allocations: 4 kB / 279.7 MB, free: 10.45 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002334/0.01573, allocations: 205.2 kB / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002827/0.01601, allocations: 19.86 kB / 279.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001182/0.01719, allocations: 429.4 kB / 280.3 MB, free: 9.758 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.543e-05/0.01725, allocations: 75.28 kB / 280.4 MB, free: 9.664 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.631e-05/0.0173, allocations: 8.5 kB / 280.4 MB, free: 9.656 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.54e-05/0.01735, allocations: 20.48 kB / 280.4 MB, free: 9.637 MB / 266.7 MB Notification: Performance of SimCode: time 8.02e-07/0.01735, allocations: 4 kB / 280.4 MB, free: 9.633 MB / 266.7 MB Notification: Performance of Templates: time 0.004593/0.02194, allocations: 1.796 MB / 282.2 MB, free: 7.848 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.7134934598580003]