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.001377/0.001377, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001433/0.001433, allocations: 214 kB / 24.52 MB, free: 3.914 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.428/1.428, allocations: 230.6 MB / 258.3 MB, free: 7.781 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 47.94 kB / 378.5 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.2775, allocations: 53.36 MB / 431.9 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003507/0.281, allocations: 1.974 MB / 433.8 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001146/0.2822, allocations: 0.6272 MB / 434.5 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.002e-05/0.2822, allocations: 4 kB / 434.5 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.787e-05/0.2823, allocations: 19.78 kB / 434.5 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001519/0.2825, allocations: 47.64 kB / 434.5 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004148/0.2829, allocations: 107.7 kB / 434.6 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002422/0.2831, allocations: 179.3 kB / 434.8 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.2833, allocations: 37.72 kB / 434.9 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002273/0.2835, allocations: 87.7 kB / 434.9 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001235/0.2836, allocations: 79.61 kB / 435 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.212e-05/0.2837, allocations: 16 kB / 435 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.469e-05/0.2837, allocations: 24 kB / 435.1 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.224e-05/0.2838, allocations: 35.84 kB / 435.1 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.724e-05/0.2839, allocations: 71.66 kB / 435.2 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002595/0.2841, allocations: 183.2 kB / 435.3 MB, free: 3.137 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2841, allocations: 0 / 435.3 MB, free: 3.137 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2841, allocations: 0 / 435.3 MB, free: 3.137 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.2841, allocations: 4 kB / 435.4 MB, free: 3.133 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.0008181/0.285, allocations: 397.6 kB / 435.7 MB, free: 2.715 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.285, allocations: 8.031 kB / 435.7 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.344e-05/0.285, allocations: 8.188 kB / 435.8 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.608e-05/0.2851, allocations: 42.73 kB / 435.8 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004029/0.2855, allocations: 52.8 kB / 435.8 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002759/0.2857, allocations: 166.2 kB / 436 MB, free: 2.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/0.2858, allocations: 12.38 kB / 436 MB, free: 2.398 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.161e-05/0.2858, allocations: 12.38 kB / 436 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003645/0.2862, allocations: 209 kB / 436.2 MB, free: 2.156 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.2862, allocations: 0 / 436.2 MB, free: 2.156 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.2862, allocations: 0 / 436.2 MB, free: 2.156 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.26e-05/0.2862, allocations: 4 kB / 436.2 MB, free: 2.152 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002782/0.2865, allocations: 99.88 kB / 436.3 MB, free: 2.055 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008857/0.2874, allocations: 446.5 kB / 436.8 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003208/0.2877, allocations: 114.4 kB / 436.9 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000199/0.2879, allocations: 60.83 kB / 436.9 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.154e-05/0.2879, allocations: 3.938 kB / 437 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/0.2879, allocations: 34.56 kB / 437 MB, free: 1.336 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.243e-06/0.2879, allocations: 0 / 437 MB, free: 1.336 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004829/0.2884, allocations: 145.5 kB / 437.1 MB, free: 1.188 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.915e-05/0.2885, allocations: 110.7 kB / 437.2 MB, free: 1.055 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001447/0.2886, allocations: 158.2 kB / 437.4 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.488e-05/0.2887, allocations: 33.7 kB / 437.4 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.565e-05/0.2887, allocations: 120.1 kB / 437.5 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.924e-05/0.2888, allocations: 31.72 kB / 437.6 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.356e-05/0.2888, allocations: 33.7 kB / 437.6 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.289, allocations: 322.8 kB / 437.9 MB, free: 344 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001245/0.2891, allocations: 35.98 kB / 438 MB, free: 308 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001933/0.2893, allocations: 131.7 kB / 438.1 MB, free: 148 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002572/0.2895, allocations: 102.5 kB / 438.2 MB, free: 36 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.2895, allocations: 0 / 438.2 MB, free: 36 kB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003578/0.2899, allocations: 145.5 kB / 438.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.2899, allocations: 4 kB / 438.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.2899, allocations: 0 / 438.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.2899, allocations: 4 kB / 438.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000618/0.2906, allocations: 91.88 kB / 438.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001515/0.2921, allocations: 1.385 MB / 439.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001775/0.2922, allocations: 36.03 kB / 439.8 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.313e-05/0.2923, allocations: 0 / 439.8 MB, free: 14.25 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.0001177/0.2924, allocations: 121.8 kB / 440 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.078e-05/0.2924, allocations: 11.95 kB / 440 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004776/0.2929, allocations: 159.1 kB / 440.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.261e-06/0.2929, allocations: 7.938 kB / 440.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.91e-07/0.2929, allocations: 0 / 440.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.2929, allocations: 0 / 440.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007543/0.2937, allocations: 419.7 kB / 440.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.728e-06/0.2937, allocations: 3.984 kB / 440.6 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001476/0.2938, allocations: 23.98 kB / 440.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002152/0.294, allocations: 28.83 kB / 440.6 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.802e-05/0.294, allocations: 15.88 kB / 440.6 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00118/0.2952, allocations: 1.287 MB / 441.9 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2952, allocations: 0 / 441.9 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006006/0.2958, allocations: 301.2 kB / 442.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.139e-05/0.2958, allocations: 15.92 kB / 442.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.431e-05/0.2959, allocations: 7.938 kB / 442.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001672/0.296, allocations: 11.98 kB / 442.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.004e-05/0.2961, allocations: 11.98 kB / 442.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/0.2961, allocations: 7.984 kB / 442.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.752e-05/0.2962, allocations: 124.1 kB / 442.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2962, allocations: 64 / 442.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002886/0.2965, allocations: 47.89 kB / 442.4 MB, free: 11.46 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.0009013/0.2974, allocations: 0.8218 MB / 443.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006803/0.2981, allocations: 132 kB / 443.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2981, allocations: 0 / 443.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003419/0.2984, allocations: 170.7 kB / 443.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00025/0.2987, allocations: 11.98 kB / 443.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003229/0.3019, allocations: 2.113 MB / 445.7 MB, free: 8.078 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001013/0.302, allocations: 101.4 kB / 445.8 MB, free: 7.957 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.53e-05/0.302, allocations: 12.48 kB / 445.8 MB, free: 7.945 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.211e-05/0.3021, allocations: 47.42 kB / 445.8 MB, free: 7.898 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3021, allocations: 0 / 445.8 MB, free: 7.898 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02862/0.3307, allocations: 3.61 MB / 449.4 MB, free: 4.457 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/12.68, allocations: 18.3 kB / 449.4 MB, free: 4.445 MB / 350.1 MB " [Timeout remaining time 647] (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: 15.078192454064265]