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.001603/0.001603, allocations: 103.6 kB / 20.43 MB, free: 1.211 MB / 14.72 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.001713/0.001713, allocations: 186.5 kB / 23.71 MB, free: 4.434 MB / 14.72 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.639/1.639, allocations: 225.7 MB / 252.5 MB, free: 12.87 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001529/0.001529, allocations: 51.92 kB / 370.9 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2655, allocations: 52.17 MB / 423.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003576/0.2691, allocations: 1.962 MB / 425 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001073/0.2702, allocations: 0.5455 MB / 425.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.969e-05/0.2702, allocations: 0 / 425.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.022e-05/0.2703, allocations: 27.78 kB / 425.6 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001433/0.2705, allocations: 43.64 kB / 425.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004316/0.2709, allocations: 83.81 kB / 425.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002346/0.2711, allocations: 187.3 kB / 425.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000133/0.2713, allocations: 34.39 kB / 425.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001652/0.2714, allocations: 91.62 kB / 426 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000106/0.2715, allocations: 63.69 kB / 426.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.295e-05/0.2716, allocations: 16 kB / 426.1 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.615e-05/0.2716, allocations: 16 kB / 426.1 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.017e-05/0.2716, allocations: 43.83 kB / 426.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.692e-05/0.2717, allocations: 67.72 kB / 426.2 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002567/0.272, allocations: 167 kB / 426.4 MB, free: 11.13 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.272, allocations: 0 / 426.4 MB, free: 11.13 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.272, allocations: 0 / 426.4 MB, free: 11.13 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.014e-06/0.272, allocations: 0 / 426.4 MB, free: 11.13 MB / 334.1 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.0007991/0.2728, allocations: 401.6 kB / 426.8 MB, free: 10.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.132e-05/0.2728, allocations: 8.031 kB / 426.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.062e-05/0.2729, allocations: 16.84 kB / 426.8 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001887/0.2731, allocations: 142.2 kB / 427 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/0.2731, allocations: 8.375 kB / 427 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.299e-05/0.2731, allocations: 12.38 kB / 427 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003797/0.2735, allocations: 211.2 kB / 427.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.2735, allocations: 0 / 427.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.345e-05/0.2735, allocations: 8 kB / 427.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.2735, allocations: 7.938 kB / 427.2 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002986/0.2738, allocations: 95.88 kB / 427.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009423/0.2748, allocations: 419.1 kB / 427.7 MB, free: 9.719 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000306/0.2751, allocations: 102.5 kB / 427.8 MB, free: 9.609 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002034/0.2753, allocations: 56.83 kB / 427.9 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.751e-05/0.2753, allocations: 8 kB / 427.9 MB, free: 9.543 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.376e-05/0.2753, allocations: 38.5 kB / 427.9 MB, free: 9.496 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.2753, allocations: 0 / 427.9 MB, free: 9.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004661/0.2758, allocations: 153.6 kB / 428.1 MB, free: 9.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.799e-05/0.2759, allocations: 102.8 kB / 428.2 MB, free: 9.215 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.276, allocations: 162.2 kB / 428.3 MB, free: 9.043 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.21e-05/0.2761, allocations: 29.7 kB / 428.3 MB, free: 9.008 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.974e-05/0.2761, allocations: 116 kB / 428.5 MB, free: 8.891 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.309e-05/0.2762, allocations: 31.73 kB / 428.5 MB, free: 8.859 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.105e-05/0.2762, allocations: 29.7 kB / 428.5 MB, free: 8.824 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.2764, allocations: 322.8 kB / 428.8 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001321/0.2765, allocations: 35.98 kB / 428.9 MB, free: 8.465 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001989/0.2767, allocations: 135.6 kB / 429 MB, free: 8.305 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002495/0.277, allocations: 94.58 kB / 429.1 MB, free: 8.203 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.277, allocations: 0 / 429.1 MB, free: 8.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003654/0.2773, allocations: 145.5 kB / 429.2 MB, free: 8.055 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.2773, allocations: 8 kB / 429.2 MB, free: 8.047 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.385e-06/0.2774, allocations: 3.938 kB / 429.2 MB, free: 8.043 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.2774, allocations: 0 / 429.2 MB, free: 8.043 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005991/0.278, allocations: 91.84 kB / 429.3 MB, free: 7.953 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001604/0.2796, allocations: 1.371 MB / 430.7 MB, free: 6.477 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001879/0.2798, allocations: 27.91 kB / 430.7 MB, free: 6.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.593e-05/0.2798, allocations: 4 kB / 430.7 MB, free: 6.445 MB / 334.1 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.0001277/0.2799, allocations: 128.7 kB / 430.9 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.634e-05/0.2799, allocations: 19.98 kB / 430.9 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004908/0.2804, allocations: 155.1 kB / 431 MB, free: 6.137 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.2804, allocations: 4 kB / 431 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.512e-06/0.2804, allocations: 0 / 431 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.2804, allocations: 0 / 431 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007763/0.2812, allocations: 391.7 kB / 431.4 MB, free: 5.707 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.2812, allocations: 0 / 431.4 MB, free: 5.707 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001394/0.2814, allocations: 23.98 kB / 431.4 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001978/0.2816, allocations: 36.8 kB / 431.5 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.2816, allocations: 11.94 kB / 431.5 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001283/0.2829, allocations: 1.253 MB / 432.7 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.2829, allocations: 0.5469 kB / 432.7 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006298/0.2835, allocations: 301.2 kB / 433 MB, free: 3.957 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.766e-05/0.2835, allocations: 11.98 kB / 433 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.72e-05/0.2836, allocations: 7.984 kB / 433.1 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.2837, allocations: 16.05 kB / 433.1 MB, free: 3.922 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.923e-05/0.2838, allocations: 11.94 kB / 433.1 MB, free: 3.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.103e-05/0.2838, allocations: 7.922 kB / 433.1 MB, free: 3.902 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001089/0.2839, allocations: 119.2 kB / 433.2 MB, free: 3.785 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2839, allocations: 0 / 433.2 MB, free: 3.785 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003103/0.2842, allocations: 39.89 kB / 433.2 MB, free: 3.746 MB / 334.1 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.0001201/0.2843, allocations: 103.2 kB / 433.3 MB, free: 3.637 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007103/0.285, allocations: 135.8 kB / 433.5 MB, free: 3.504 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.285, allocations: 0 / 433.5 MB, free: 3.504 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003509/0.2854, allocations: 162.8 kB / 433.6 MB, free: 3.332 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002561/0.2856, allocations: 8 kB / 433.6 MB, free: 3.324 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001708/0.2874, allocations: 0.5396 MB / 434.2 MB, free: 2.758 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001203/0.2875, allocations: 105.5 kB / 434.3 MB, free: 2.633 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.413e-05/0.2875, allocations: 12.48 kB / 434.3 MB, free: 2.621 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.86e-05/0.2876, allocations: 15.44 kB / 434.3 MB, free: 2.605 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2876, allocations: 4 kB / 434.3 MB, free: 2.602 MB / 334.1 MB Notification: Performance of Templates: time 0.005703/0.2933, allocations: 1.87 MB / 436.2 MB, free: 0.7383 MB / 334.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.757653722539544]