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.001489/0.001489, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001719/0.001719, allocations: 191.7 kB / 24.5 MB, free: 4.02 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.381/1.381, allocations: 225.7 MB / 253.3 MB, free: 13.05 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 39.94 kB / 371.2 MB, free: 9.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.2411, allocations: 52.19 MB / 423.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003284/0.2444, allocations: 2.052 MB / 425.5 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009608/0.2454, allocations: 0.5805 MB / 426.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.525e-05/0.2454, allocations: 4 kB / 426.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.434e-05/0.2455, allocations: 15.8 kB / 426.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001351/0.2456, allocations: 51.62 kB / 426.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003198/0.2459, allocations: 95.69 kB / 426.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002206/0.2462, allocations: 187.2 kB / 426.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.2463, allocations: 37.67 kB / 426.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001698/0.2465, allocations: 83.69 kB / 426.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.2466, allocations: 67.75 kB / 426.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.876e-05/0.2466, allocations: 16 kB / 426.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.809e-05/0.2466, allocations: 16 kB / 426.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.17e-05/0.2467, allocations: 47.77 kB / 426.7 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.903e-05/0.2468, allocations: 75.66 kB / 426.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002291/0.247, allocations: 168.2 kB / 426.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.247, allocations: 0 / 426.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.247, allocations: 0 / 426.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.247, allocations: 0 / 426.9 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.0007457/0.2477, allocations: 401.6 kB / 427.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.2478, allocations: 8.031 kB / 427.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.845e-05/0.2478, allocations: 4.188 kB / 427.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.595e-05/0.2478, allocations: 50.67 kB / 427.4 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.71e-05/0.2479, allocations: 16.84 kB / 427.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001468/0.248, allocations: 138.3 kB / 427.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.2481, allocations: 8.312 kB / 427.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.966e-05/0.2481, allocations: 12.38 kB / 427.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003175/0.2484, allocations: 163.4 kB / 427.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.2484, allocations: 0 / 427.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.669e-05/0.2484, allocations: 4 kB / 427.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.2484, allocations: 4 kB / 427.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000274/0.2487, allocations: 99.92 kB / 427.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009466/0.2497, allocations: 478.4 kB / 428.3 MB, free: 9.652 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003136/0.25, allocations: 102.5 kB / 428.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001997/0.2502, allocations: 64.83 kB / 428.4 MB, free: 9.477 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.68e-05/0.2502, allocations: 3.938 kB / 428.4 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.372e-05/0.2502, allocations: 34.56 kB / 428.5 MB, free: 9.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.213e-06/0.2502, allocations: 4 kB / 428.5 MB, free: 9.426 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004935/0.2507, allocations: 145.7 kB / 428.6 MB, free: 9.277 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.485e-05/0.2508, allocations: 106.8 kB / 428.7 MB, free: 9.148 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001648/0.251, allocations: 162.2 kB / 428.9 MB, free: 8.977 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.67e-05/0.251, allocations: 29.64 kB / 428.9 MB, free: 8.941 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.138e-05/0.2511, allocations: 116 kB / 429 MB, free: 8.824 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.545e-05/0.2511, allocations: 31.73 kB / 429 MB, free: 8.793 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.215e-05/0.2512, allocations: 29.7 kB / 429.1 MB, free: 8.758 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.2513, allocations: 322.8 kB / 429.4 MB, free: 8.434 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/0.2515, allocations: 43.97 kB / 429.4 MB, free: 8.391 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001723/0.2516, allocations: 72.27 kB / 429.5 MB, free: 8.305 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002563/0.2519, allocations: 102.5 kB / 429.6 MB, free: 8.195 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.2519, allocations: 4 kB / 429.6 MB, free: 8.191 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003441/0.2522, allocations: 145.5 kB / 429.7 MB, free: 8.043 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.2523, allocations: 4 kB / 429.7 MB, free: 8.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.2523, allocations: 7.984 kB / 429.8 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.2523, allocations: 4.031 kB / 429.8 MB, free: 8.027 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005675/0.2528, allocations: 79.92 kB / 429.8 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001497/0.2543, allocations: 1.393 MB / 431.2 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001695/0.2545, allocations: 32.02 kB / 431.3 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/0.2545, allocations: 15.91 kB / 431.3 MB, free: 6.391 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.0001184/0.2546, allocations: 117.8 kB / 431.4 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.932e-05/0.2547, allocations: 11.95 kB / 431.4 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004549/0.2551, allocations: 155.5 kB / 431.6 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.2551, allocations: 11.92 kB / 431.6 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-06/0.2551, allocations: 0 / 431.6 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.2551, allocations: 0 / 431.6 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007373/0.2559, allocations: 443.1 kB / 432 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2559, allocations: 0 / 432 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001369/0.256, allocations: 23.98 kB / 432 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000205/0.2562, allocations: 32.77 kB / 432.1 MB, free: 5.539 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.2562, allocations: 0 / 432.1 MB, free: 5.539 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001202/0.2574, allocations: 1.296 MB / 433.4 MB, free: 4.125 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2574, allocations: 3.938 kB / 433.4 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006014/0.258, allocations: 293.1 kB / 433.6 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.388e-05/0.2581, allocations: 15.86 kB / 433.7 MB, free: 3.797 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.983e-05/0.2581, allocations: 11.98 kB / 433.7 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001562/0.2583, allocations: 11.98 kB / 433.7 MB, free: 3.773 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.008e-05/0.2583, allocations: 12.05 kB / 433.7 MB, free: 3.762 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.2583, allocations: 0 / 433.7 MB, free: 3.762 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001134/0.2584, allocations: 126.1 kB / 433.8 MB, free: 3.641 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2584, allocations: 0 / 433.8 MB, free: 3.641 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002907/0.2587, allocations: 35.95 kB / 433.9 MB, free: 3.605 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.0009433/0.2597, allocations: 0.8272 MB / 434.7 MB, free: 2.746 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007029/0.2604, allocations: 131.9 kB / 434.8 MB, free: 2.617 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2604, allocations: 0 / 434.8 MB, free: 2.617 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003263/0.2607, allocations: 166.7 kB / 435 MB, free: 2.441 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002413/0.2609, allocations: 11.98 kB / 435 MB, free: 2.43 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003493/0.2644, allocations: 2.118 MB / 437.1 MB, free: 224 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004056/0.2648, allocations: 0.7157 MB / 437.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.354e-05/0.2649, allocations: 8.5 kB / 437.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.208e-05/0.265, allocations: 43.41 kB / 437.9 MB, free: 15.42 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.265, allocations: 0 / 437.9 MB, free: 15.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02655/0.2915, allocations: 3.476 MB / 441.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.27, allocations: 8 kB / 441.3 MB, free: 12.09 MB / 350.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --stepSize=0.0100051 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","/var/lib/jenkins1/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: 14.63294824399054]