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.001305/0.001305, allocations: 112.2 kB / 20.43 MB, free: 1.457 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.001294/0.001294, allocations: 180.5 kB / 23.72 MB, free: 4.699 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.385/1.385, allocations: 225.6 MB / 252.5 MB, free: 13.02 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00168/0.00168, allocations: 43.94 kB / 370.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.2634, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003982/0.2674, allocations: 2.055 MB / 424.7 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001125/0.2685, allocations: 0.5805 MB / 425.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.328e-05/0.2686, allocations: 0 / 425.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.288e-05/0.2687, allocations: 23.78 kB / 425.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001481/0.2688, allocations: 43.62 kB / 425.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003361/0.2692, allocations: 87.58 kB / 425.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002446/0.2694, allocations: 191.2 kB / 425.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001497/0.2695, allocations: 37.66 kB / 425.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001808/0.2697, allocations: 87.64 kB / 425.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001299/0.2699, allocations: 75.69 kB / 425.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.394e-05/0.2699, allocations: 16 kB / 425.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.959e-05/0.2699, allocations: 12 kB / 425.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.492e-05/0.27, allocations: 39.83 kB / 425.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.489e-05/0.2701, allocations: 75.66 kB / 425.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002597/0.2703, allocations: 179.7 kB / 426.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.2703, allocations: 0 / 426.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.2703, allocations: 0 / 426.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.2703, allocations: 0 / 426.1 MB, free: 11.11 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.0008831/0.2712, allocations: 397.6 kB / 426.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.2713, allocations: 12.03 kB / 426.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.167e-05/0.2713, allocations: 38.73 kB / 426.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.956e-05/0.2714, allocations: 24.84 kB / 426.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001908/0.2715, allocations: 142.2 kB / 426.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.339e-05/0.2716, allocations: 8.375 kB / 426.7 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.374e-05/0.2716, allocations: 8.375 kB / 426.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003546/0.2719, allocations: 163.6 kB / 426.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.272, allocations: 0 / 426.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.736e-05/0.272, allocations: 4 kB / 426.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.535e-06/0.272, allocations: 8 kB / 426.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002805/0.2723, allocations: 91.94 kB / 427 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009725/0.2732, allocations: 482.5 kB / 427.5 MB, free: 9.641 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003018/0.2735, allocations: 94.53 kB / 427.6 MB, free: 9.539 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002053/0.2737, allocations: 72.75 kB / 427.6 MB, free: 9.465 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.488e-05/0.2738, allocations: 3.938 kB / 427.6 MB, free: 9.461 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.137e-05/0.2738, allocations: 38.5 kB / 427.7 MB, free: 9.414 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.2738, allocations: 0 / 427.7 MB, free: 9.414 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005073/0.2743, allocations: 149.7 kB / 427.8 MB, free: 9.262 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.532e-05/0.2744, allocations: 106.8 kB / 427.9 MB, free: 9.133 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/0.2746, allocations: 154.2 kB / 428.1 MB, free: 8.969 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.71e-05/0.2746, allocations: 29.7 kB / 428.1 MB, free: 8.934 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.2747, allocations: 120 kB / 428.2 MB, free: 8.812 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.587e-05/0.2747, allocations: 27.75 kB / 428.2 MB, free: 8.785 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.364e-05/0.2748, allocations: 33.69 kB / 428.3 MB, free: 8.746 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.275, allocations: 322.8 kB / 428.6 MB, free: 8.422 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001302/0.2751, allocations: 43.91 kB / 428.6 MB, free: 8.379 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001565/0.2753, allocations: 72.27 kB / 428.7 MB, free: 8.293 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002625/0.2755, allocations: 106.5 kB / 428.8 MB, free: 8.18 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.2755, allocations: 0 / 428.8 MB, free: 8.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003387/0.2759, allocations: 149.5 kB / 429 MB, free: 8.027 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.2759, allocations: 11.22 kB / 429 MB, free: 8.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.2759, allocations: 0 / 429 MB, free: 8.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.2759, allocations: 4 kB / 429 MB, free: 8.016 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005858/0.2765, allocations: 75.92 kB / 429 MB, free: 7.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00156/0.278, allocations: 1.408 MB / 430.5 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001843/0.2782, allocations: 27.84 kB / 430.5 MB, free: 6.387 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.728e-06/0.2782, allocations: 0 / 430.5 MB, free: 6.387 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.0001248/0.2784, allocations: 128.6 kB / 430.6 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.561e-05/0.2784, allocations: 7.953 kB / 430.6 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004788/0.2789, allocations: 155.2 kB / 430.8 MB, free: 6.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.2789, allocations: 3.938 kB / 430.8 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/0.2789, allocations: 0 / 430.8 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-06/0.2789, allocations: 4 kB / 430.8 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007694/0.2797, allocations: 439 kB / 431.2 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2797, allocations: 0 / 431.2 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001409/0.2798, allocations: 31.91 kB / 431.2 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000222/0.28, allocations: 28.88 kB / 431.3 MB, free: 5.535 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.04e-05/0.28, allocations: 11.98 kB / 431.3 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001355/0.2814, allocations: 1.288 MB / 432.6 MB, free: 4.117 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2814, allocations: 0 / 432.6 MB, free: 4.117 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006248/0.282, allocations: 293.7 kB / 432.9 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.879e-05/0.2821, allocations: 15.91 kB / 432.9 MB, free: 3.793 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.542e-05/0.2821, allocations: 7.938 kB / 432.9 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001734/0.2823, allocations: 20.05 kB / 432.9 MB, free: 3.766 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.797e-05/0.2823, allocations: 3.984 kB / 432.9 MB, free: 3.762 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.727e-06/0.2823, allocations: 4 kB / 432.9 MB, free: 3.758 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001184/0.2824, allocations: 119.2 kB / 433 MB, free: 3.641 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2824, allocations: 0 / 433 MB, free: 3.641 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002886/0.2827, allocations: 43.89 kB / 433.1 MB, free: 3.598 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.000988/0.2837, allocations: 0.8351 MB / 433.9 MB, free: 2.73 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006843/0.2844, allocations: 131.8 kB / 434 MB, free: 2.602 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2844, allocations: 4.125 kB / 434 MB, free: 2.598 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003482/0.2847, allocations: 158.7 kB / 434.2 MB, free: 2.43 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002482/0.285, allocations: 8 kB / 434.2 MB, free: 2.422 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003566/0.2886, allocations: 2.123 MB / 436.3 MB, free: 208 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004026/0.289, allocations: 0.7157 MB / 437 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.887e-05/0.289, allocations: 12.48 kB / 437 MB, free: 15.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.576e-05/0.2891, allocations: 43.42 kB / 437.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2891, allocations: 4 kB / 437.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03537/0.3245, allocations: 3.426 MB / 440.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/12.62, allocations: 6.469 kB / 440.5 MB, free: 12.1 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.851851559942588]