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.001547/0.001547, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 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.001459/0.001459, allocations: 207.6 kB / 23.73 MB, free: 4.379 MB / 14.72 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 1.375/1.375, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 51.92 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2398/0.2412, allocations: 53.36 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003571/0.2448, allocations: 1.992 MB / 433.1 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001226/0.246, allocations: 0.6078 MB / 433.7 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.2461, allocations: 8 kB / 433.7 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.385e-05/0.2462, allocations: 19.78 kB / 433.7 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001516/0.2464, allocations: 43.62 kB / 433.8 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004076/0.2468, allocations: 103.7 kB / 433.9 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002396/0.247, allocations: 187.2 kB / 434 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.2471, allocations: 39.41 kB / 434.1 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000198/0.2473, allocations: 91.64 kB / 434.2 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.2475, allocations: 79.67 kB / 434.3 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.686e-05/0.2475, allocations: 16 kB / 434.3 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.14e-05/0.2475, allocations: 24 kB / 434.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.674e-05/0.2476, allocations: 35.84 kB / 434.3 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.979e-05/0.2477, allocations: 67.72 kB / 434.4 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002292/0.2479, allocations: 183.2 kB / 434.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2479, allocations: 0 / 434.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2479, allocations: 0 / 434.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.91e-06/0.2479, allocations: 0 / 434.6 MB, free: 3.152 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.0007609/0.2487, allocations: 405.6 kB / 435 MB, free: 2.727 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.2487, allocations: 8.031 kB / 435 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.664e-05/0.2487, allocations: 38.75 kB / 435 MB, free: 2.672 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003868/0.2491, allocations: 60.8 kB / 435.1 MB, free: 2.613 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002729/0.2494, allocations: 163.8 kB / 435.2 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.727e-06/0.2494, allocations: 4.375 kB / 435.2 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.49e-05/0.2494, allocations: 16.36 kB / 435.3 MB, free: 2.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003469/0.2498, allocations: 211.2 kB / 435.5 MB, free: 2.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.2498, allocations: 3.938 kB / 435.5 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.749e-05/0.2498, allocations: 4 kB / 435.5 MB, free: 2.172 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.2498, allocations: 7.938 kB / 435.5 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002772/0.2501, allocations: 95.94 kB / 435.6 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008582/0.251, allocations: 450.5 kB / 436 MB, free: 1.578 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003074/0.2513, allocations: 102.5 kB / 436.1 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001989/0.2515, allocations: 68.81 kB / 436.2 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.449e-05/0.2515, allocations: 0 / 436.2 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.691e-05/0.2515, allocations: 34.5 kB / 436.2 MB, free: 1.355 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 8.12e-07/0.2515, allocations: 0 / 436.2 MB, free: 1.355 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004803/0.252, allocations: 145.6 kB / 436.4 MB, free: 1.207 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.121e-05/0.252, allocations: 102.8 kB / 436.5 MB, free: 1.082 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/0.2522, allocations: 162.2 kB / 436.6 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/0.2522, allocations: 29.7 kB / 436.6 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.315e-05/0.2523, allocations: 116.1 kB / 436.8 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.973e-05/0.2523, allocations: 35.73 kB / 436.8 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.949e-05/0.2524, allocations: 33.7 kB / 436.8 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.2525, allocations: 322.8 kB / 437.1 MB, free: 372 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.2527, allocations: 43.97 kB / 437.2 MB, free: 328 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/0.2528, allocations: 123.7 kB / 437.3 MB, free: 176 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002583/0.2531, allocations: 102.6 kB / 437.4 MB, free: 64 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.2531, allocations: 0 / 437.4 MB, free: 64 kB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003535/0.2534, allocations: 145.4 kB / 437.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.2535, allocations: 4 kB / 437.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.2535, allocations: 4.031 kB / 437.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/0.2535, allocations: 7.984 kB / 437.6 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006297/0.2541, allocations: 75.92 kB / 437.6 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001502/0.2556, allocations: 1.397 MB / 439 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001846/0.2558, allocations: 27.75 kB / 439.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.366e-05/0.2558, allocations: 11.98 kB / 439.1 MB, free: 14.27 MB / 350.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.000117/0.2559, allocations: 125.8 kB / 439.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.797e-05/0.256, allocations: 7.953 kB / 439.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004725/0.2564, allocations: 155.3 kB / 439.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.2564, allocations: 7.922 kB / 439.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.2565, allocations: 4 kB / 439.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.2565, allocations: 0 / 439.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007435/0.2572, allocations: 415.2 kB / 439.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.2572, allocations: 3.938 kB / 439.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001467/0.2573, allocations: 27.97 kB / 439.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002067/0.2576, allocations: 24.84 kB / 439.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.2576, allocations: 4 kB / 439.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001142/0.2587, allocations: 1.295 MB / 441.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.2587, allocations: 0 / 441.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006154/0.2593, allocations: 309.1 kB / 441.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.506e-05/0.2594, allocations: 15.91 kB / 441.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.63e-05/0.2594, allocations: 7.938 kB / 441.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001727/0.2596, allocations: 15.98 kB / 441.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.915e-05/0.2596, allocations: 8.047 kB / 441.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.776e-06/0.2596, allocations: 8 kB / 441.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.511e-05/0.2597, allocations: 120.1 kB / 441.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2597, allocations: 4 kB / 441.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002857/0.26, allocations: 39.95 kB / 441.6 MB, free: 11.48 MB / 350.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.000878/0.2609, allocations: 0.8233 MB / 442.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007052/0.2616, allocations: 135.9 kB / 442.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2616, allocations: 4 kB / 442.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003374/0.2619, allocations: 162.7 kB / 442.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002385/0.2621, allocations: 8 kB / 442.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003236/0.2654, allocations: 2.121 MB / 444.9 MB, free: 8.094 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.046e-05/0.2655, allocations: 101.4 kB / 445 MB, free: 7.973 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.483e-05/0.2655, allocations: 16.48 kB / 445 MB, free: 7.957 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.75e-05/0.2656, allocations: 39.42 kB / 445 MB, free: 7.918 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.2656, allocations: 0 / 445 MB, free: 7.918 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03245/0.2981, allocations: 4.001 MB / 449 MB, free: 4.047 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/12.19, allocations: 8.047 kB / 449 MB, free: 4.039 MB / 350.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --stepSize=0.0100051 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 14.43596577300923]