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.0013/0.0013, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001431/0.001431, allocations: 190.8 kB / 24.49 MB, free: 3.98 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.359/1.359, allocations: 225.7 MB / 253.3 MB, free: 12.88 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.00207/0.00207, allocations: 39.94 kB / 371.2 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2708, allocations: 52.19 MB / 423.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003337/0.2741, allocations: 1.96 MB / 425.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009286/0.275, allocations: 0.5338 MB / 425.9 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.646e-05/0.2751, allocations: 4 kB / 425.9 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.93e-05/0.2752, allocations: 19.8 kB / 425.9 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001304/0.2753, allocations: 51.62 kB / 425.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003321/0.2756, allocations: 83.81 kB / 426 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002298/0.2759, allocations: 179.3 kB / 426.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.276, allocations: 41.66 kB / 426.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001661/0.2762, allocations: 83.64 kB / 426.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001201/0.2763, allocations: 79.67 kB / 426.4 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.146e-05/0.2763, allocations: 12 kB / 426.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.299e-05/0.2764, allocations: 16 kB / 426.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.242e-05/0.2764, allocations: 43.78 kB / 426.5 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.125e-05/0.2765, allocations: 71.7 kB / 426.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002282/0.2767, allocations: 163.4 kB / 426.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2767, allocations: 0 / 426.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2767, allocations: 3.938 kB / 426.7 MB, free: 11.1 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.471e-06/0.2767, allocations: 0 / 426.7 MB, free: 11.1 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.0008127/0.2775, allocations: 401.6 kB / 427.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.2776, allocations: 12.03 kB / 427.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.597e-05/0.2776, allocations: 192 / 427.1 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.433e-05/0.2776, allocations: 42.73 kB / 427.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.755e-05/0.2777, allocations: 20.78 kB / 427.2 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001619/0.2778, allocations: 138.3 kB / 427.3 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.2779, allocations: 8.375 kB / 427.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.303e-05/0.2779, allocations: 16.36 kB / 427.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003698/0.2783, allocations: 207.3 kB / 427.5 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.2783, allocations: 0 / 427.5 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.783e-05/0.2783, allocations: 4 kB / 427.5 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.2783, allocations: 4 kB / 427.5 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002712/0.2786, allocations: 91.94 kB / 427.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008919/0.2795, allocations: 454.5 kB / 428.1 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003023/0.2798, allocations: 102.5 kB / 428.2 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001991/0.28, allocations: 68.83 kB / 428.2 MB, free: 9.414 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.28, allocations: 3.938 kB / 428.2 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.487e-05/0.28, allocations: 34.5 kB / 428.3 MB, free: 9.367 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.28, allocations: 0 / 428.3 MB, free: 9.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004813/0.2805, allocations: 145.5 kB / 428.4 MB, free: 9.219 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.206e-05/0.2806, allocations: 110.8 kB / 428.5 MB, free: 9.086 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001495/0.2807, allocations: 155.9 kB / 428.7 MB, free: 8.922 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.064e-05/0.2808, allocations: 29.64 kB / 428.7 MB, free: 8.887 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.894e-05/0.2809, allocations: 120 kB / 428.8 MB, free: 8.766 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.429e-05/0.2809, allocations: 31.89 kB / 428.8 MB, free: 8.734 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.074e-05/0.2809, allocations: 25.7 kB / 428.9 MB, free: 8.703 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.2811, allocations: 322.8 kB / 429.2 MB, free: 8.379 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001333/0.2812, allocations: 39.98 kB / 429.2 MB, free: 8.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002035/0.2815, allocations: 147.5 kB / 429.4 MB, free: 8.168 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002519/0.2817, allocations: 98.47 kB / 429.5 MB, free: 8.062 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2817, allocations: 4 kB / 429.5 MB, free: 8.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000349/0.2821, allocations: 145.5 kB / 429.6 MB, free: 7.91 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.2821, allocations: 4 kB / 429.6 MB, free: 7.906 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.2821, allocations: 0 / 429.6 MB, free: 7.906 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.2821, allocations: 0 / 429.6 MB, free: 7.906 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005954/0.2827, allocations: 87.91 kB / 429.7 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001559/0.2842, allocations: 1.389 MB / 431.1 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000174/0.2844, allocations: 27.84 kB / 431.1 MB, free: 6.285 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.246e-05/0.2844, allocations: 8.188 kB / 431.1 MB, free: 6.277 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.0001218/0.2846, allocations: 132.6 kB / 431.3 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.602e-05/0.2846, allocations: 7.953 kB / 431.3 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004584/0.285, allocations: 151.2 kB / 431.4 MB, free: 5.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.2851, allocations: 7.875 kB / 431.4 MB, free: 5.973 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.72e-07/0.2851, allocations: 4 kB / 431.4 MB, free: 5.969 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.2851, allocations: 3.984 kB / 431.4 MB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007456/0.2858, allocations: 423.1 kB / 431.8 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.2858, allocations: 0 / 431.8 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001407/0.2859, allocations: 24.02 kB / 431.9 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002177/0.2862, allocations: 36.86 kB / 431.9 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.2862, allocations: 0 / 431.9 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001182/0.2874, allocations: 1.288 MB / 433.2 MB, free: 4.027 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2874, allocations: 0 / 433.2 MB, free: 4.027 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006153/0.288, allocations: 297 kB / 433.5 MB, free: 3.715 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.483e-05/0.288, allocations: 15.86 kB / 433.5 MB, free: 3.699 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.653e-05/0.288, allocations: 4.109 kB / 433.5 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001676/0.2882, allocations: 23.98 kB / 433.5 MB, free: 3.672 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.999e-05/0.2882, allocations: 3.984 kB / 433.5 MB, free: 3.668 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.2882, allocations: 7.938 kB / 433.5 MB, free: 3.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001016/0.2883, allocations: 119.2 kB / 433.6 MB, free: 3.543 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2883, allocations: 0 / 433.6 MB, free: 3.543 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002923/0.2886, allocations: 39.95 kB / 433.7 MB, free: 3.504 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.0009617/0.2896, allocations: 0.8233 MB / 434.5 MB, free: 2.648 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006889/0.2903, allocations: 139.9 kB / 434.6 MB, free: 2.512 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.2903, allocations: 4 kB / 434.6 MB, free: 2.508 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003182/0.2906, allocations: 158.6 kB / 434.8 MB, free: 2.34 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002375/0.2908, allocations: 20.05 kB / 434.8 MB, free: 2.32 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003376/0.2942, allocations: 2.106 MB / 436.9 MB, free: 120 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001161/0.2943, allocations: 105.6 kB / 437 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.411e-05/0.2944, allocations: 8.5 kB / 437 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.191e-05/0.2945, allocations: 43.41 kB / 437.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.2945, allocations: 0 / 437.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02724/0.3217, allocations: 3.577 MB / 440.7 MB, free: 12.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.27/12.59, allocations: 12 kB / 440.7 MB, free: 12.51 MB / 350.1 MB " [Timeout remaining time 647] (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.90848772204481]