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.0008109/0.0008109, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.00077/0.00077, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.8865/0.8865, allocations: 173.4 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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 1.853e-06/1.853e-06, allocations: 0 / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.259e-05/1.445e-05, allocations: 2.281 kB / 318.4 MB, free: 6.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowSaturatingInductor): time 0.002753/0.002768, allocations: 1.944 MB / 320.4 MB, free: 4.379 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00064/0.003408, allocations: 0.5492 MB / 320.9 MB, free: 3.824 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.326e-05/0.003461, allocations: 4 kB / 320.9 MB, free: 3.82 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.513e-05/0.003506, allocations: 23.72 kB / 321 MB, free: 3.797 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001035/0.00361, allocations: 51.56 kB / 321 MB, free: 3.746 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002512/0.003861, allocations: 87.75 kB / 321.1 MB, free: 3.66 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001472/0.004008, allocations: 191.1 kB / 321.3 MB, free: 3.473 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001254/0.004134, allocations: 41.66 kB / 321.3 MB, free: 3.426 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001603/0.004294, allocations: 115.7 kB / 321.4 MB, free: 3.312 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.046e-05/0.004364, allocations: 59.86 kB / 321.5 MB, free: 3.254 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.988e-05/0.004394, allocations: 12 kB / 321.5 MB, free: 3.242 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.842e-05/0.004413, allocations: 16 kB / 321.5 MB, free: 3.227 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.594e-05/0.004439, allocations: 35.84 kB / 321.6 MB, free: 3.191 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.724e-05/0.004486, allocations: 59.83 kB / 321.6 MB, free: 3.133 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000162/0.004648, allocations: 179.5 kB / 321.8 MB, free: 2.957 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.743e-06/0.004649, allocations: 0 / 321.8 MB, free: 2.957 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.00465, allocations: 0 / 321.8 MB, free: 2.957 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.008e-06/0.004654, allocations: 0 / 321.8 MB, free: 2.957 MB / 282.7 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.0005173/0.005172, allocations: 393.6 kB / 322.2 MB, free: 2.543 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.005213, allocations: 12.92 kB / 322.2 MB, free: 2.531 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.363e-05/0.005247, allocations: 46.73 kB / 322.2 MB, free: 2.477 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.426e-05/0.005281, allocations: 16.84 kB / 322.3 MB, free: 2.461 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001098/0.005391, allocations: 141.5 kB / 322.4 MB, free: 2.297 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.344e-05/0.005404, allocations: 12.31 kB / 322.4 MB, free: 2.285 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.448e-05/0.005429, allocations: 12.33 kB / 322.4 MB, free: 2.273 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002278/0.005657, allocations: 208 kB / 322.6 MB, free: 2.043 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.005666, allocations: 192 / 322.6 MB, free: 2.043 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.593e-05/0.005682, allocations: 12.12 kB / 322.6 MB, free: 2.031 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.005686, allocations: 0 / 322.6 MB, free: 2.031 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00015/0.005836, allocations: 95.88 kB / 322.7 MB, free: 1.938 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005674/0.006404, allocations: 442.8 kB / 323.2 MB, free: 1.457 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001765/0.00658, allocations: 98.53 kB / 323.3 MB, free: 1.352 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001248/0.006705, allocations: 68.81 kB / 323.3 MB, free: 1.281 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.546e-05/0.00672, allocations: 0 / 323.3 MB, free: 1.281 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2e-05/0.00674, allocations: 34.56 kB / 323.4 MB, free: 1.238 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 9.92e-07/0.006741, allocations: 3.938 kB / 323.4 MB, free: 1.234 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002778/0.007019, allocations: 149.5 kB / 323.5 MB, free: 1.082 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.176e-05/0.007061, allocations: 106.8 kB / 323.6 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.826e-05/0.007159, allocations: 153.2 kB / 323.8 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.007173, allocations: 29.7 kB / 323.8 MB, free: 0.7617 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.192e-05/0.007235, allocations: 124 kB / 323.9 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.88e-05/0.007254, allocations: 23.91 kB / 323.9 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.031e-05/0.007294, allocations: 29.7 kB / 324 MB, free: 0.5781 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.746e-05/0.007372, allocations: 322.8 kB / 324.3 MB, free: 260 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.148e-05/0.007443, allocations: 43.97 kB / 324.3 MB, free: 216 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001/0.007543, allocations: 143.5 kB / 324.5 MB, free: 44 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001468/0.00769, allocations: 98.84 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.007692, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001846/0.007876, allocations: 157.5 kB / 324.7 MB, free: 15.78 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.086e-05/0.007887, allocations: 4 kB / 324.7 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.007892, allocations: 0 / 324.7 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.007904, allocations: 11.88 kB / 324.7 MB, free: 15.76 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003065/0.008211, allocations: 83.89 kB / 324.8 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008334/0.009044, allocations: 1.385 MB / 326.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.596e-05/0.00913, allocations: 24.06 kB / 326.2 MB, free: 14.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.009138, allocations: 4 kB / 326.2 MB, free: 14.15 MB / 298.7 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 7.547e-05/0.009213, allocations: 125.8 kB / 326.3 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.023e-05/0.009233, allocations: 7.953 kB / 326.4 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002436/0.009477, allocations: 159.2 kB / 326.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.009478, allocations: 0 / 326.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.00948, allocations: 4 kB / 326.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.009482, allocations: 4 kB / 326.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004075/0.00989, allocations: 415.1 kB / 326.9 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.009891, allocations: 4.031 kB / 326.9 MB, free: 13.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.67e-05/0.009967, allocations: 31.97 kB / 327 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001269/0.01009, allocations: 24.78 kB / 327 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.01011, allocations: 7.984 kB / 327 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006192/0.01072, allocations: 1.291 MB / 328.3 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.01073, allocations: 0 / 328.3 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003036/0.01103, allocations: 293.1 kB / 328.6 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.977e-05/0.01105, allocations: 19.94 kB / 328.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.275e-05/0.01106, allocations: 4 kB / 328.6 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.791e-05/0.01114, allocations: 15.98 kB / 328.6 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.452e-05/0.01117, allocations: 11.92 kB / 328.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.569e-06/0.01118, allocations: 0 / 328.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.851e-05/0.01124, allocations: 126 kB / 328.7 MB, free: 11.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01124, allocations: 0 / 328.7 MB, free: 11.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001858/0.01142, allocations: 39.94 kB / 328.8 MB, free: 11.38 MB / 298.7 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.0004688/0.01189, allocations: 0.8272 MB / 329.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003459/0.01224, allocations: 135.9 kB / 329.7 MB, free: 10.38 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.01224, allocations: 0 / 329.7 MB, free: 10.38 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001787/0.01242, allocations: 166.7 kB / 329.9 MB, free: 10.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001638/0.01258, allocations: 15.94 kB / 329.9 MB, free: 10.19 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001823/0.0144, allocations: 2.062 MB / 332 MB, free: 8.035 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.028e-05/0.01446, allocations: 109.4 kB / 332.1 MB, free: 7.906 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.375e-05/0.0145, allocations: 4.5 kB / 332.1 MB, free: 7.902 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.996e-05/0.01456, allocations: 48.47 kB / 332.1 MB, free: 7.855 MB / 298.7 MB Notification: Performance of SimCode: time 3.91e-07/0.01456, allocations: 0 / 332.1 MB, free: 7.855 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01745/0.03201, allocations: 4.073 MB / 336.2 MB, free: 3.91 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.89/7.922, allocations: 11.78 kB / 336.2 MB, free: 3.898 MB / 298.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowSaturatingInductor/ShowSaturatingInductor.csv","/var/lib/jenkins/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: 9.559334618970752]