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.0009422/0.0009422, allocations: 80.62 kB / 22.21 MB, free: 2.289 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.0008823/0.0008823, allocations: 155.1 kB / 25.6 MB, free: 8.926 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.8894/0.8894, allocations: 173.4 MB / 202.2 MB, free: 8.32 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.513e-06/1.513e-06, allocations: 0 / 269.2 MB, free: 9.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.581e-05/1.732e-05, allocations: 6.484 kB / 269.2 MB, free: 9.773 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.002139/0.002157, allocations: 2.037 MB / 271.2 MB, free: 7.738 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006879/0.002845, allocations: 0.5587 MB / 271.8 MB, free: 7.176 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.032e-05/0.002905, allocations: 4.688 kB / 271.8 MB, free: 7.172 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.034e-05/0.002955, allocations: 20.5 kB / 271.8 MB, free: 7.152 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001123/0.003068, allocations: 54.53 kB / 271.9 MB, free: 7.102 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002307/0.003298, allocations: 83.77 kB / 272 MB, free: 7.02 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00015/0.003448, allocations: 191.2 kB / 272.1 MB, free: 6.832 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.003553, allocations: 29.66 kB / 272.2 MB, free: 6.797 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001582/0.003711, allocations: 123.6 kB / 272.3 MB, free: 6.676 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.773e-05/0.003789, allocations: 59.81 kB / 272.4 MB, free: 6.617 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.319e-05/0.003812, allocations: 16.95 kB / 272.4 MB, free: 6.602 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.787e-05/0.00383, allocations: 16 kB / 272.4 MB, free: 6.586 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.862e-05/0.003858, allocations: 35.84 kB / 272.4 MB, free: 6.551 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.261e-05/0.003901, allocations: 55.89 kB / 272.5 MB, free: 6.496 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001438/0.004045, allocations: 131.5 kB / 272.6 MB, free: 6.367 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.004047, allocations: 0 / 272.6 MB, free: 6.367 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.32e-07/0.004047, allocations: 0 / 272.6 MB, free: 6.367 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.537e-06/0.004051, allocations: 0 / 272.6 MB, free: 6.367 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.0004702/0.004521, allocations: 487.9 kB / 273.1 MB, free: 5.855 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.002e-05/0.004551, allocations: 12.03 kB / 273.1 MB, free: 5.844 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.459e-05/0.004596, allocations: 28.78 kB / 273.1 MB, free: 5.816 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000102/0.004698, allocations: 132.5 kB / 273.2 MB, free: 5.66 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.00471, allocations: 8.375 kB / 273.3 MB, free: 5.652 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.204e-05/0.004732, allocations: 8.375 kB / 273.3 MB, free: 5.645 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001928/0.004925, allocations: 193.3 kB / 273.5 MB, free: 5.422 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.004935, allocations: 4.141 kB / 273.5 MB, free: 5.418 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.083e-05/0.004946, allocations: 4.375 kB / 273.5 MB, free: 5.414 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.004953, allocations: 7.938 kB / 273.5 MB, free: 5.406 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.335e-05/0.005006, allocations: 38.86 kB / 273.5 MB, free: 5.371 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004786/0.005485, allocations: 435.2 kB / 273.9 MB, free: 4.91 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.901e-05/0.005574, allocations: 58.98 kB / 274 MB, free: 4.84 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.491e-05/0.005639, allocations: 43.8 kB / 274 MB, free: 4.793 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.219e-05/0.005651, allocations: 4 kB / 274 MB, free: 4.789 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.727e-05/0.005668, allocations: 33.39 kB / 274.1 MB, free: 4.746 MB / 250.7 MB Notification: Performance of pre-optimization done (n=7): time 1.343e-06/0.00567, allocations: 0 / 274.1 MB, free: 4.746 MB / 250.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001488/0.005818, allocations: 81.58 kB / 274.1 MB, free: 4.66 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/0.00586, allocations: 106.8 kB / 274.3 MB, free: 4.531 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.842e-05/0.005959, allocations: 213.7 kB / 274.5 MB, free: 4.305 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.005972, allocations: 25.7 kB / 274.5 MB, free: 4.273 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.882e-05/0.006041, allocations: 174.6 kB / 274.7 MB, free: 4.098 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.168e-05/0.006063, allocations: 31.73 kB / 274.7 MB, free: 4.066 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.191e-05/0.006105, allocations: 31.36 kB / 274.7 MB, free: 4.027 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.00622, allocations: 0.4962 MB / 275.2 MB, free: 3.52 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.619e-05/0.006247, allocations: 15.92 kB / 275.2 MB, free: 3.504 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.765e-05/0.006314, allocations: 113.8 kB / 275.3 MB, free: 3.359 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.659e-05/0.006381, allocations: 63 kB / 275.4 MB, free: 3.285 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.006383, allocations: 0 / 275.4 MB, free: 3.285 MB / 250.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001114/0.006494, allocations: 97.5 kB / 275.5 MB, free: 3.184 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.006505, allocations: 4 kB / 275.5 MB, free: 3.18 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.006509, allocations: 0 / 275.5 MB, free: 3.18 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.358e-06/0.006519, allocations: 4 kB / 275.5 MB, free: 3.176 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002971/0.006816, allocations: 75.95 kB / 275.6 MB, free: 3.102 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000859/0.007675, allocations: 1.871 MB / 277.5 MB, free: 1.113 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.272e-05/0.007747, allocations: 19.94 kB / 277.5 MB, free: 1.094 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.007756, allocations: 8.094 kB / 277.5 MB, free: 1.086 MB / 250.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 7.763e-05/0.007833, allocations: 164.6 kB / 277.6 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.587e-05/0.007859, allocations: 7.953 kB / 277.6 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001668/0.008026, allocations: 118.3 kB / 277.8 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.008027, allocations: 0 / 277.8 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.41e-07/0.008028, allocations: 0 / 277.8 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.00803, allocations: 0 / 277.8 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003206/0.008351, allocations: 389.2 kB / 278.1 MB, free: 372 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.008352, allocations: 0 / 278.1 MB, free: 372 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.785e-05/0.00842, allocations: 23.97 kB / 278.2 MB, free: 348 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001478/0.008568, allocations: 35.66 kB / 278.2 MB, free: 308 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.282e-06/0.008574, allocations: 0 / 278.2 MB, free: 308 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006912/0.009265, allocations: 1.725 MB / 279.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.009267, allocations: 3.938 kB / 279.9 MB, free: 14.45 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002093/0.009476, allocations: 275.1 kB / 280.2 MB, free: 14.16 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.403e-05/0.00949, allocations: 20.03 kB / 280.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.479e-05/0.009505, allocations: 11.94 kB / 280.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.776e-05/0.009573, allocations: 8 kB / 280.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.465e-05/0.009597, allocations: 7.984 kB / 280.2 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-06/0.009603, allocations: 7.922 kB / 280.3 MB, free: 14.1 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.373e-05/0.009657, allocations: 154.2 kB / 280.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.009657, allocations: 0 / 280.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001993/0.009856, allocations: 39.94 kB / 280.4 MB, free: 13.91 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 7.167e-05/0.009928, allocations: 99.25 kB / 280.5 MB, free: 13.81 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002764/0.0102, allocations: 91.55 kB / 280.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.212e-06/0.01021, allocations: 0 / 280.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000145/0.01035, allocations: 213.1 kB / 280.8 MB, free: 13.48 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001624/0.01051, allocations: 12 kB / 280.8 MB, free: 13.47 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007422/0.01126, allocations: 436.6 kB / 281.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.384e-05/0.01129, allocations: 67.33 kB / 281.3 MB, free: 12.93 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.573e-05/0.01132, allocations: 12.48 kB / 281.4 MB, free: 12.92 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.551e-05/0.01141, allocations: 94.17 kB / 281.4 MB, free: 12.82 MB / 266.7 MB Notification: Performance of SimCode: time 4.21e-07/0.01141, allocations: 4 kB / 281.4 MB, free: 12.82 MB / 266.7 MB Notification: Performance of Templates: time 0.003199/0.01461, allocations: 1.95 MB / 283.4 MB, free: 10.89 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.639267113059759]