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.001378/0.001378, allocations: 112.5 kB / 21.22 MB, free: 0.7305 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.001403/0.001403, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.348/1.348, allocations: 230.6 MB / 258.3 MB, free: 8.016 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.001455/0.001455, allocations: 52.02 kB / 378.6 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2288/0.2302, allocations: 53.36 MB / 431.9 MB, free: 6.992 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.003118/0.2333, allocations: 2.077 MB / 434 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001063/0.2344, allocations: 0.6699 MB / 434.7 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.984e-05/0.2345, allocations: 4 kB / 434.7 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.426e-05/0.2345, allocations: 15.84 kB / 434.7 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001272/0.2346, allocations: 47.56 kB / 434.7 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003477/0.235, allocations: 114.1 kB / 434.9 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002273/0.2352, allocations: 183.3 kB / 435 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.2353, allocations: 37.72 kB / 435.1 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001863/0.2355, allocations: 91.69 kB / 435.2 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001162/0.2356, allocations: 75.62 kB / 435.2 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.802e-05/0.2357, allocations: 16 kB / 435.2 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.85e-05/0.2357, allocations: 24 kB / 435.3 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.605e-05/0.2358, allocations: 35.84 kB / 435.3 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.131e-05/0.2359, allocations: 83.58 kB / 435.4 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002329/0.2361, allocations: 188.1 kB / 435.6 MB, free: 3.336 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.2361, allocations: 0 / 435.6 MB, free: 3.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.051e-06/0.2361, allocations: 0 / 435.6 MB, free: 3.336 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.156e-06/0.2361, allocations: 0 / 435.6 MB, free: 3.336 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.0007171/0.2368, allocations: 401.6 kB / 436 MB, free: 2.914 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.2368, allocations: 8.031 kB / 436 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.207e-05/0.2369, allocations: 8.188 kB / 436 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.738e-05/0.2369, allocations: 38.75 kB / 436 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003645/0.2373, allocations: 52.8 kB / 436.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002484/0.2375, allocations: 163.9 kB / 436.2 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.2375, allocations: 8.375 kB / 436.2 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.956e-05/0.2375, allocations: 12.38 kB / 436.2 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003161/0.2379, allocations: 159.6 kB / 436.4 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.2379, allocations: 0 / 436.4 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.493e-05/0.2379, allocations: 0 / 436.4 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.2379, allocations: 8 kB / 436.4 MB, free: 2.422 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002739/0.2382, allocations: 91.94 kB / 436.5 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008491/0.239, allocations: 490.4 kB / 437 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002939/0.2393, allocations: 94.53 kB / 437.1 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001904/0.2395, allocations: 68.77 kB / 437.1 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.782e-05/0.2395, allocations: 3.938 kB / 437.1 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.935e-05/0.2396, allocations: 34.56 kB / 437.2 MB, free: 1.582 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.2396, allocations: 0 / 437.2 MB, free: 1.582 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004478/0.24, allocations: 153.7 kB / 437.3 MB, free: 1.426 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.835e-05/0.2401, allocations: 106.8 kB / 437.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/0.2402, allocations: 162.1 kB / 437.6 MB, free: 1.129 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.231e-05/0.2402, allocations: 29.7 kB / 437.6 MB, free: 1.094 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.689e-05/0.2403, allocations: 116 kB / 437.7 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.962e-05/0.2403, allocations: 31.73 kB / 437.8 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.255e-05/0.2404, allocations: 29.7 kB / 437.8 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.2405, allocations: 326.8 kB / 438.1 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001299/0.2407, allocations: 43.97 kB / 438.2 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.2408, allocations: 72.27 kB / 438.2 MB, free: 464 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002442/0.2411, allocations: 106.8 kB / 438.3 MB, free: 348 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2411, allocations: 0 / 438.3 MB, free: 348 kB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003392/0.2414, allocations: 153.5 kB / 438.5 MB, free: 188 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.2414, allocations: 4 kB / 438.5 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.575e-06/0.2414, allocations: 7.984 kB / 438.5 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.2414, allocations: 0 / 438.5 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005579/0.242, allocations: 79.92 kB / 438.6 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001414/0.2434, allocations: 1.404 MB / 440 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001697/0.2436, allocations: 27.84 kB / 440 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.2436, allocations: 7.984 kB / 440 MB, free: 14.54 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.0001019/0.2437, allocations: 117.8 kB / 440.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.879e-05/0.2437, allocations: 11.95 kB / 440.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004526/0.2442, allocations: 155.2 kB / 440.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.2442, allocations: 7.922 kB / 440.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-06/0.2442, allocations: 0 / 440.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.2442, allocations: 3.938 kB / 440.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007229/0.2449, allocations: 435.1 kB / 440.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2449, allocations: 4 kB / 440.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001301/0.2451, allocations: 19.98 kB / 440.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001912/0.2452, allocations: 32.86 kB / 440.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.316e-05/0.2453, allocations: 4 kB / 440.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001086/0.2463, allocations: 1.295 MB / 442.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.2464, allocations: 8.016 kB / 442.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005791/0.2469, allocations: 293.2 kB / 442.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.123e-05/0.247, allocations: 11.88 kB / 442.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.318e-05/0.247, allocations: 8 kB / 442.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001624/0.2471, allocations: 20.03 kB / 442.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.784e-05/0.2472, allocations: 7.984 kB / 442.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.2472, allocations: 8 kB / 442.4 MB, free: 11.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.495e-05/0.2473, allocations: 120.1 kB / 442.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2473, allocations: 0 / 442.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002882/0.2476, allocations: 43.83 kB / 442.6 MB, free: 11.74 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.0009018/0.2485, allocations: 0.835 MB / 443.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006603/0.2491, allocations: 128.2 kB / 443.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.2491, allocations: 4.125 kB / 443.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003095/0.2494, allocations: 166.6 kB / 443.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002438/0.2497, allocations: 12 kB / 443.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003185/0.2529, allocations: 2.109 MB / 445.8 MB, free: 8.355 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/0.2532, allocations: 0.7196 MB / 446.6 MB, free: 7.609 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.369e-05/0.2532, allocations: 16.47 kB / 446.6 MB, free: 7.594 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.29e-05/0.2533, allocations: 39.42 kB / 446.6 MB, free: 7.555 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2533, allocations: 0 / 446.6 MB, free: 7.555 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02654/0.2799, allocations: 3.489 MB / 450.1 MB, free: 4.211 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.15, allocations: 13.98 kB / 450.1 MB, free: 4.203 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: 14.441887051041704]