Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 83.58 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9754/0.9754, allocations: 177.1 MB / 205 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.714e-06/1.714e-06, allocations: 0 / 273 MB, free: 1.555 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.426e-05/2.597e-05, allocations: 6.312 kB / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.002418/0.002444, allocations: 2.084 MB / 275.1 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009487/0.003393, allocations: 0.6387 MB / 275.7 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.148e-05/0.003474, allocations: 4 kB / 275.7 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 5.599e-05/0.00353, allocations: 23.72 kB / 275.7 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001243/0.003654, allocations: 39.64 kB / 275.8 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003691/0.004024, allocations: 115.7 kB / 275.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002089/0.004232, allocations: 187.2 kB / 276.1 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.004355, allocations: 33.8 kB / 276.1 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002286/0.004584, allocations: 123.7 kB / 276.2 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.105e-05/0.004665, allocations: 59.81 kB / 276.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.481e-05/0.00469, allocations: 12 kB / 276.3 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.731e-05/0.004747, allocations: 27.92 kB / 276.3 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.609e-05/0.004773, allocations: 39.84 kB / 276.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.718e-05/0.00482, allocations: 55.83 kB / 276.4 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001889/0.005009, allocations: 131.5 kB / 276.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.205e-06/0.005012, allocations: 4 kB / 276.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.005012, allocations: 0 / 276.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.005018, allocations: 0 / 276.6 MB, free: 13.96 MB / 266.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.0005389/0.005556, allocations: 495.8 kB / 277 MB, free: 13.44 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.005593, allocations: 8.031 kB / 277 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000212/0.005805, allocations: 56.81 kB / 277.1 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002036/0.006009, allocations: 173.1 kB / 277.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.006021, allocations: 8.375 kB / 277.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.474e-05/0.006046, allocations: 4.375 kB / 277.3 MB, free: 13.17 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002364/0.006282, allocations: 200.4 kB / 277.5 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.006293, allocations: 192 / 277.5 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.006307, allocations: 4.375 kB / 277.5 MB, free: 12.94 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.886e-06/0.006316, allocations: 11.94 kB / 277.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.549e-05/0.006391, allocations: 39.95 kB / 277.5 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005779/0.006969, allocations: 466.5 kB / 278 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001308/0.0071, allocations: 63.03 kB / 278.1 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.007203, allocations: 43.66 kB / 278.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.221e-05/0.007215, allocations: 0 / 278.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.337e-05/0.007238, allocations: 37.39 kB / 278.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.007239, allocations: 4 kB / 278.1 MB, free: 12.22 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002085/0.007448, allocations: 89.5 kB / 278.2 MB, free: 12.13 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/0.007491, allocations: 110.8 kB / 278.3 MB, free: 12 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001145/0.007605, allocations: 216.5 kB / 278.5 MB, free: 11.77 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/0.00762, allocations: 25.7 kB / 278.6 MB, free: 11.74 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.611e-05/0.007686, allocations: 170.8 kB / 278.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.064e-05/0.007707, allocations: 27.75 kB / 278.8 MB, free: 11.54 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.267e-05/0.007749, allocations: 35.34 kB / 278.8 MB, free: 11.5 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.007862, allocations: 0.4923 MB / 279.3 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.882e-05/0.007901, allocations: 16 kB / 279.3 MB, free: 10.98 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.194e-05/0.007973, allocations: 121.8 kB / 279.4 MB, free: 10.82 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.203e-05/0.008055, allocations: 66.98 kB / 279.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.008058, allocations: 4 kB / 279.5 MB, free: 10.74 MB / 266.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001308/0.008189, allocations: 89.56 kB / 279.6 MB, free: 10.65 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.008202, allocations: 8 kB / 279.6 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.008206, allocations: 0 / 279.6 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.008217, allocations: 0 / 279.6 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003195/0.008537, allocations: 91.92 kB / 279.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001008/0.009545, allocations: 1.881 MB / 281.6 MB, free: 8.547 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.288e-05/0.009618, allocations: 11.95 kB / 281.6 MB, free: 8.535 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.729e-06/0.009627, allocations: 12.16 kB / 281.6 MB, free: 8.523 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 7.687e-05/0.009704, allocations: 160.6 kB / 281.7 MB, free: 8.355 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.937e-05/0.009734, allocations: 19.94 kB / 281.8 MB, free: 8.336 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001948/0.009928, allocations: 122 kB / 281.9 MB, free: 8.207 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.00993, allocations: 0 / 281.9 MB, free: 8.207 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-06/0.009931, allocations: 0 / 281.9 MB, free: 8.207 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.009934, allocations: 0 / 281.9 MB, free: 8.207 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003534/0.01029, allocations: 404.5 kB / 282.3 MB, free: 7.762 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.01029, allocations: 4 kB / 282.3 MB, free: 7.758 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.1e-05/0.01036, allocations: 19.98 kB / 282.3 MB, free: 7.738 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001727/0.01053, allocations: 43.64 kB / 282.3 MB, free: 7.691 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.337e-06/0.01054, allocations: 0 / 282.3 MB, free: 7.691 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008619/0.01141, allocations: 1.748 MB / 284.1 MB, free: 5.816 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.01141, allocations: 0 / 284.1 MB, free: 5.816 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000299/0.01171, allocations: 287 kB / 284.4 MB, free: 5.508 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.272e-05/0.01173, allocations: 15.89 kB / 284.4 MB, free: 5.492 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.109e-05/0.01175, allocations: 12.16 kB / 284.4 MB, free: 5.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.414e-05/0.01184, allocations: 4 kB / 284.4 MB, free: 5.477 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.912e-05/0.01188, allocations: 7.984 kB / 284.4 MB, free: 5.469 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/0.01189, allocations: 7.984 kB / 284.4 MB, free: 5.461 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.825e-05/0.01197, allocations: 160.6 kB / 284.6 MB, free: 5.305 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01197, allocations: 0 / 284.6 MB, free: 5.305 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002938/0.01226, allocations: 39.94 kB / 284.6 MB, free: 5.266 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.875e-05/0.01236, allocations: 95.25 kB / 284.7 MB, free: 5.16 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003915/0.01275, allocations: 104.2 kB / 284.8 MB, free: 5.055 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.01276, allocations: 0 / 284.8 MB, free: 5.055 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002074/0.01296, allocations: 208.8 kB / 285 MB, free: 4.832 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002471/0.01321, allocations: 19.94 kB / 285 MB, free: 4.812 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.01425, allocations: 449 kB / 285.5 MB, free: 4.344 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.719e-05/0.0143, allocations: 67.34 kB / 285.5 MB, free: 4.258 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.478e-05/0.01434, allocations: 12.48 kB / 285.5 MB, free: 4.246 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.163e-05/0.01438, allocations: 12.5 kB / 285.6 MB, free: 4.23 MB / 266.7 MB Notification: Performance of SimCode: time 7.11e-07/0.01438, allocations: 0 / 285.6 MB, free: 4.23 MB / 266.7 MB Notification: Performance of Templates: time 0.004361/0.01874, allocations: 1.88 MB / 287.4 MB, free: 2.352 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.5826877458021045]