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.001685/0.001685, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001552/0.001552, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.448/1.448, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001526/0.001526, allocations: 55.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0973/0.09882, allocations: 53.33 MB / 426.3 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003456/0.1023, allocations: 2.069 MB / 428.4 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.1035, allocations: 0.6506 MB / 429.1 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.788e-05/0.1036, allocations: 0 / 429.1 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.357e-05/0.1036, allocations: 23.78 kB / 429.1 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001599/0.1038, allocations: 51.56 kB / 429.1 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003955/0.1042, allocations: 103.4 kB / 429.2 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002491/0.1044, allocations: 187.2 kB / 429.4 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001248/0.1046, allocations: 33.53 kB / 429.4 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002218/0.1048, allocations: 91.64 kB / 429.5 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001231/0.1049, allocations: 79.67 kB / 429.6 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.024e-05/0.1049, allocations: 16 kB / 429.6 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.343e-05/0.105, allocations: 24 kB / 429.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.911e-05/0.105, allocations: 39.84 kB / 429.7 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.842e-05/0.1051, allocations: 71.66 kB / 429.8 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002671/0.1054, allocations: 183.2 kB / 429.9 MB, free: 1.145 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.1054, allocations: 7.938 kB / 429.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1054, allocations: 0 / 429.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.1054, allocations: 0 / 429.9 MB, free: 1.137 MB / 350.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.0008094/0.1062, allocations: 478.7 kB / 430.4 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.1062, allocations: 8.031 kB / 430.4 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.435e-05/0.1063, allocations: 42.73 kB / 430.5 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003748/0.1067, allocations: 56.75 kB / 430.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/0.107, allocations: 220.1 kB / 430.7 MB, free: 260 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.167e-05/0.107, allocations: 8.375 kB / 430.7 MB, free: 252 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.133e-05/0.107, allocations: 16.31 kB / 430.8 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000321/0.1073, allocations: 156.1 kB / 430.9 MB, free: 64 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.1074, allocations: 4 kB / 430.9 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.1074, allocations: 4 kB / 430.9 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.311e-06/0.1074, allocations: 4 kB / 430.9 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1707/0.2781, allocations: 89.89 kB / 431 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008491/0.279, allocations: 0.5014 MB / 431.5 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002865/0.2792, allocations: 106.2 kB / 431.6 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001783/0.2794, allocations: 63.52 kB / 431.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.2794, allocations: 1.516 kB / 431.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.516e-05/0.2795, allocations: 33.66 kB / 431.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.2795, allocations: 0 / 431.7 MB, free: 11.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004464/0.2799, allocations: 155.8 kB / 431.9 MB, free: 11.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.856e-05/0.2799, allocations: 105.7 kB / 432 MB, free: 11.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001203/0.2801, allocations: 158.9 kB / 432.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.315e-05/0.2801, allocations: 26.64 kB / 432.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.802e-05/0.2801, allocations: 123.2 kB / 432.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.003e-05/0.2801, allocations: 24.88 kB / 432.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.274e-05/0.2802, allocations: 31.38 kB / 432.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.163e-05/0.2802, allocations: 319.5 kB / 432.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.2804, allocations: 44.41 kB / 432.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001324/0.2805, allocations: 80.41 kB / 432.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002205/0.2807, allocations: 101.6 kB / 432.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.2807, allocations: 0.5625 kB / 432.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003138/0.281, allocations: 146.8 kB / 433 MB, free: 10.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.281, allocations: 9.266 kB / 433 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.281, allocations: 2.375 kB / 433 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.2811, allocations: 5.438 kB / 433 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005514/0.2816, allocations: 91.25 kB / 433.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001003/0.2826, allocations: 1.494 MB / 434.6 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001599/0.2828, allocations: 16.81 kB / 434.6 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.075e-05/0.2828, allocations: 4.594 kB / 434.6 MB, free: 9.074 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 7.125e-05/0.2829, allocations: 136.3 kB / 434.8 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.524e-05/0.2829, allocations: 10.88 kB / 434.8 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004043/0.2833, allocations: 151.2 kB / 434.9 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.2833, allocations: 1.062 kB / 434.9 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.62e-07/0.2833, allocations: 3.281 kB / 434.9 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.2833, allocations: 1.188 kB / 434.9 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005899/0.2839, allocations: 469.7 kB / 435.4 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.2839, allocations: 0.625 kB / 435.4 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001261/0.284, allocations: 25.84 kB / 435.4 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001857/0.2842, allocations: 35.55 kB / 435.4 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.2842, allocations: 2.438 kB / 435.4 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007059/0.2849, allocations: 1.392 MB / 436.8 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2849, allocations: 0.625 kB / 436.8 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000498/0.2854, allocations: 303.6 kB / 437.1 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.62e-05/0.2855, allocations: 84.42 kB / 437.2 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.111e-05/0.2855, allocations: 5.141 kB / 437.2 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001565/0.2856, allocations: 22.05 kB / 437.2 MB, free: 6.883 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.985e-05/0.2857, allocations: 9.672 kB / 437.2 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.794e-06/0.2857, allocations: 3.312 kB / 437.2 MB, free: 6.879 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.023e-05/0.2857, allocations: 125.2 kB / 437.4 MB, free: 6.789 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2857, allocations: 1.625 kB / 437.4 MB, free: 6.789 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002884/0.286, allocations: 40.91 kB / 437.4 MB, free: 6.781 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.0006794/0.2867, allocations: 0.8365 MB / 438.2 MB, free: 6.055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006611/0.2874, allocations: 142.4 kB / 438.4 MB, free: 6.027 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2874, allocations: 1.5 kB / 438.4 MB, free: 6.027 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002654/0.2876, allocations: 159.9 kB / 438.5 MB, free: 5.906 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002341/0.2879, allocations: 9.703 kB / 438.6 MB, free: 5.902 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002686/0.2906, allocations: 2.108 MB / 440.7 MB, free: 4.367 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001403/0.2907, allocations: 0.7132 MB / 441.4 MB, free: 3.672 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.437e-05/0.2908, allocations: 10.55 kB / 441.4 MB, free: 3.668 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.291e-05/0.2908, allocations: 43.58 kB / 441.4 MB, free: 3.637 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2908, allocations: 4 kB / 441.4 MB, free: 3.633 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03186/0.3227, allocations: 3.399 MB / 444.8 MB, free: 3.121 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.56, allocations: 7.141 kB / 444.8 MB, free: 3.117 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: 13.86980115994811]