Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001663/0.001663, allocations: 109.1 kB / 21.22 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001866/0.001866, allocations: 209.5 kB / 24.52 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 230.5 MB / 258.2 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 59.89 kB / 378.5 MB, free: 2.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.3107, allocations: 53.41 MB / 431.9 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.0035/0.3142, allocations: 1.97 MB / 433.9 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001239/0.3155, allocations: 0.6233 MB / 434.5 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.916e-05/0.3156, allocations: 0 / 434.5 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.827e-05/0.3156, allocations: 23.78 kB / 434.5 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001529/0.3158, allocations: 39.64 kB / 434.6 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004368/0.3162, allocations: 111.7 kB / 434.7 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002565/0.3165, allocations: 183.3 kB / 434.9 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001615/0.3166, allocations: 44.11 kB / 434.9 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002415/0.3169, allocations: 87.69 kB / 435 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001381/0.317, allocations: 87.61 kB / 435.1 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.595e-05/0.3171, allocations: 16 kB / 435.1 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.138e-05/0.3171, allocations: 20 kB / 435.1 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.342e-05/0.3172, allocations: 31.91 kB / 435.1 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.788e-05/0.3173, allocations: 71.66 kB / 435.2 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002913/0.3176, allocations: 187.2 kB / 435.4 MB, free: 2.969 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3176, allocations: 0 / 435.4 MB, free: 2.969 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3176, allocations: 0 / 435.4 MB, free: 2.969 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.538e-06/0.3176, allocations: 0 / 435.4 MB, free: 2.969 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.0009123/0.3185, allocations: 393.6 kB / 435.8 MB, free: 2.555 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.344e-05/0.3185, allocations: 16.03 kB / 435.8 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.098e-05/0.3186, allocations: 4.188 kB / 435.8 MB, free: 2.535 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.51e-05/0.3186, allocations: 42.73 kB / 435.8 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004278/0.319, allocations: 56.8 kB / 435.9 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003446/0.3194, allocations: 165.3 kB / 436.1 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.3194, allocations: 8.375 kB / 436.1 MB, free: 2.238 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.247e-05/0.3194, allocations: 16.36 kB / 436.1 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003879/0.3198, allocations: 203.4 kB / 436.3 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.3198, allocations: 0 / 436.3 MB, free: 1.996 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.105e-05/0.3199, allocations: 8 kB / 436.3 MB, free: 1.988 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.3199, allocations: 0 / 436.3 MB, free: 1.988 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002949/0.3202, allocations: 99.88 kB / 436.4 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008989/0.3211, allocations: 446.5 kB / 436.8 MB, free: 1.402 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003156/0.3214, allocations: 102.5 kB / 436.9 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002025/0.3216, allocations: 64.83 kB / 437 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.764e-05/0.3216, allocations: 7.875 kB / 437 MB, free: 1.219 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.3216, allocations: 34.56 kB / 437 MB, free: 1.176 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.3216, allocations: 0 / 437 MB, free: 1.176 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004945/0.3221, allocations: 145.5 kB / 437.2 MB, free: 1.027 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.991e-05/0.3222, allocations: 106.8 kB / 437.3 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001593/0.3223, allocations: 162.8 kB / 437.4 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.265e-05/0.3224, allocations: 25.7 kB / 437.5 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.646e-05/0.3225, allocations: 123.9 kB / 437.6 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.557e-05/0.3225, allocations: 35.88 kB / 437.6 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.171e-05/0.3226, allocations: 25.7 kB / 437.6 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.3227, allocations: 326.8 kB / 438 MB, free: 184 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.3228, allocations: 39.98 kB / 438 MB, free: 144 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000222/0.323, allocations: 131.7 kB / 438.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002597/0.3233, allocations: 94.48 kB / 438.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3233, allocations: 0 / 438.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003472/0.3237, allocations: 149.4 kB / 438.4 MB, free: 15.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.3237, allocations: 8 kB / 438.4 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.3237, allocations: 0 / 438.4 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.3237, allocations: 0 / 438.4 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006155/0.3243, allocations: 95.88 kB / 438.5 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001552/0.3259, allocations: 1.393 MB / 439.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001856/0.3261, allocations: 32.03 kB / 439.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.575e-05/0.3261, allocations: 4 kB / 439.9 MB, free: 14.08 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.0001188/0.3262, allocations: 121.8 kB / 440 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.077e-05/0.3262, allocations: 7.953 kB / 440 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004857/0.3267, allocations: 163.5 kB / 440.2 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.3267, allocations: 3.938 kB / 440.2 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.72e-07/0.3267, allocations: 0 / 440.2 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.3267, allocations: 0 / 440.2 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007883/0.3275, allocations: 427.2 kB / 440.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3275, allocations: 4.031 kB / 440.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001392/0.3277, allocations: 19.98 kB / 440.6 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002629/0.3279, allocations: 36.77 kB / 440.7 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.3279, allocations: 0 / 440.7 MB, free: 13.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001284/0.3292, allocations: 1.283 MB / 441.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3292, allocations: 0 / 441.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006212/0.3298, allocations: 305.1 kB / 442.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.294e-05/0.3299, allocations: 11.92 kB / 442.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.727e-05/0.3299, allocations: 8 kB / 442.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001679/0.3301, allocations: 15.98 kB / 442.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.234e-05/0.3301, allocations: 7.984 kB / 442.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.897e-06/0.3301, allocations: 7.922 kB / 442.3 MB, free: 11.47 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001083/0.3302, allocations: 123.2 kB / 442.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3302, allocations: 0 / 442.4 MB, free: 11.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003266/0.3305, allocations: 39.89 kB / 442.5 MB, free: 11.31 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.000982/0.3315, allocations: 0.8347 MB / 443.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007213/0.3322, allocations: 131.9 kB / 443.4 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3322, allocations: 3.938 kB / 443.4 MB, free: 10.31 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003482/0.3326, allocations: 166.8 kB / 443.6 MB, free: 10.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002563/0.3329, allocations: 15.98 kB / 443.6 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003598/0.3365, allocations: 2.114 MB / 445.7 MB, free: 7.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001078/0.3366, allocations: 105.3 kB / 445.8 MB, free: 7.785 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.105e-05/0.3366, allocations: 16.47 kB / 445.8 MB, free: 7.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.611e-05/0.3367, allocations: 39.42 kB / 445.9 MB, free: 7.73 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.3367, allocations: 4 kB / 445.9 MB, free: 7.727 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03699/0.3737, allocations: 3.601 MB / 449.5 MB, free: 4.258 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.54/12.91, allocations: 14.44 kB / 449.5 MB, free: 4.25 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor_fmu --startTime=0 --stopTime=6.2832 --stepSize=0.0100051 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ShowSaturatingInductor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.45322970196139]