Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.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.0008198/0.0008198, allocations: 79.7 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.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.0008283/0.0008283, allocations: 174.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8673/0.8673, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2245/0.2245, allocations: 32.78 MB / 293.5 MB, free: 1.211 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.164e-06/2.164e-06, allocations: 4 kB / 439.6 MB, free: 4.27 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.035e-05/1.251e-05, allocations: 2.281 kB / 439.6 MB, free: 4.266 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.002285/0.002297, allocations: 1.861 MB / 441.4 MB, free: 2.387 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006846/0.002982, allocations: 0.5569 MB / 442 MB, free: 1.824 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.733e-05/0.003039, allocations: 0 / 442 MB, free: 1.824 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 4.568e-05/0.003085, allocations: 15.84 kB / 442 MB, free: 1.809 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001767/0.003262, allocations: 51.58 kB / 442 MB, free: 1.758 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002089/0.00347, allocations: 78.64 kB / 442.1 MB, free: 1.684 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001328/0.003603, allocations: 163.3 kB / 442.3 MB, free: 1.523 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.003706, allocations: 25.23 kB / 442.3 MB, free: 1.5 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001819/0.003888, allocations: 107.7 kB / 442.4 MB, free: 1.395 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.23e-05/0.00396, allocations: 55.81 kB / 442.5 MB, free: 1.34 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.095e-05/0.003981, allocations: 12 kB / 442.5 MB, free: 1.328 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.761e-05/0.004019, allocations: 16 kB / 442.5 MB, free: 1.312 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.034e-05/0.004039, allocations: 27.89 kB / 442.5 MB, free: 1.285 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.601e-05/0.004075, allocations: 47.84 kB / 442.6 MB, free: 1.238 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001626/0.004238, allocations: 155.5 kB / 442.7 MB, free: 1.086 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.623e-06/0.004239, allocations: 0 / 442.7 MB, free: 1.086 MB / 410.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.00424, allocations: 0 / 442.7 MB, free: 1.086 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.997e-06/0.004244, allocations: 0 / 442.7 MB, free: 1.086 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0004955/0.00474, allocations: 373.8 kB / 443.1 MB, free: 0.6914 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.004773, allocations: 12.03 kB / 443.1 MB, free: 0.6797 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.254e-05/0.004806, allocations: 38.73 kB / 443.1 MB, free: 0.6328 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001504/0.004956, allocations: 48.81 kB / 443.2 MB, free: 0.5859 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001018/0.005058, allocations: 126.2 kB / 443.3 MB, free: 448 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.00507, allocations: 8.359 kB / 443.3 MB, free: 440 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.052e-05/0.005091, allocations: 8.375 kB / 443.3 MB, free: 432 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002105/0.005301, allocations: 182.7 kB / 443.5 MB, free: 224 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.00531, allocations: 192 / 443.5 MB, free: 224 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.005324, allocations: 16.12 kB / 443.5 MB, free: 208 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.005329, allocations: 0 / 443.5 MB, free: 208 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001697/0.005499, allocations: 99.8 kB / 443.6 MB, free: 108 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1618/0.1673, allocations: 389.7 kB / 444 MB, free: 46.44 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001793/0.1675, allocations: 92.08 kB / 444.1 MB, free: 46.41 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.381e-05/0.1676, allocations: 37.78 kB / 444.1 MB, free: 46.41 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.1676, allocations: 2.688 kB / 444.1 MB, free: 46.41 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.797e-05/0.1676, allocations: 34.94 kB / 444.2 MB, free: 46.37 MB / 410.7 MB Notification: Performance of pre-optimization done (n=4): time 1.573e-06/0.1676, allocations: 0.7188 kB / 444.2 MB, free: 46.37 MB / 410.7 MB Notification: Performance of matching and sorting (n=6): time 0.0007458/0.1684, allocations: 324.5 kB / 444.5 MB, free: 46.33 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.649e-05/0.1684, allocations: 102.8 kB / 444.6 MB, free: 46.21 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.318e-05/0.1685, allocations: 154.6 kB / 444.7 MB, free: 46.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.777e-06/0.1685, allocations: 25.7 kB / 444.7 MB, free: 46.07 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.806e-05/0.1685, allocations: 113.8 kB / 444.9 MB, free: 45.98 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.271e-05/0.1685, allocations: 24.45 kB / 444.9 MB, free: 45.96 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-05/0.1686, allocations: 24.5 kB / 444.9 MB, free: 45.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.715e-05/0.1686, allocations: 328 kB / 445.2 MB, free: 45.64 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.1687, allocations: 58.33 kB / 445.3 MB, free: 45.64 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001206/0.1688, allocations: 149.6 kB / 445.4 MB, free: 45.54 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001984/0.169, allocations: 131.1 kB / 445.6 MB, free: 45.51 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.52e-07/0.169, allocations: 1.531 kB / 445.6 MB, free: 45.51 MB / 410.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002465/0.1693, allocations: 180 kB / 445.7 MB, free: 45.47 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.1693, allocations: 5.781 kB / 445.7 MB, free: 45.47 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.1693, allocations: 0 / 445.7 MB, free: 45.47 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.1693, allocations: 2.875 kB / 445.7 MB, free: 45.47 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002902/0.1696, allocations: 88.06 kB / 445.8 MB, free: 45.47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006465/0.1702, allocations: 1.4 MB / 447.2 MB, free: 44.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.669e-05/0.1703, allocations: 27.42 kB / 447.3 MB, free: 44.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-06/0.1703, allocations: 6.219 kB / 447.3 MB, free: 44.11 MB / 410.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 (9): * Single equations (assignments): 8 * 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 5.298e-05/0.1704, allocations: 119.5 kB / 447.4 MB, free: 43.99 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.905e-05/0.1704, allocations: 13.33 kB / 447.4 MB, free: 43.98 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002279/0.1706, allocations: 169.2 kB / 447.6 MB, free: 43.92 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.91e-07/0.1706, allocations: 0 / 447.6 MB, free: 43.92 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.72e-07/0.1706, allocations: 0 / 447.6 MB, free: 43.92 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.1706, allocations: 2.625 kB / 447.6 MB, free: 43.92 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003559/0.171, allocations: 419.3 kB / 448 MB, free: 43.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.171, allocations: 0 / 448 MB, free: 43.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.576e-05/0.1711, allocations: 24.88 kB / 448 MB, free: 43.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1711, allocations: 8.531 kB / 448 MB, free: 43.6 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.1711, allocations: 4 kB / 448 MB, free: 43.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.1711, allocations: 0 / 448 MB, free: 43.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.1711, allocations: 0 / 448 MB, free: 43.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002128/0.1713, allocations: 255.8 kB / 448.3 MB, free: 43.43 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.828e-06/0.1713, allocations: 14.72 kB / 448.3 MB, free: 43.42 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.137e-05/0.1713, allocations: 0 / 448.3 MB, free: 43.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.653e-05/0.1714, allocations: 21.09 kB / 448.3 MB, free: 43.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.511e-05/0.1714, allocations: 13.36 kB / 448.3 MB, free: 43.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-06/0.1714, allocations: 4.312 kB / 448.3 MB, free: 43.42 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.706e-05/0.1715, allocations: 110.2 kB / 448.4 MB, free: 43.34 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1715, allocations: 0 / 448.4 MB, free: 43.34 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001661/0.1716, allocations: 34.19 kB / 448.4 MB, free: 43.33 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003051/0.1719, allocations: 0.7777 MB / 449.2 MB, free: 42.64 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004166/0.1724, allocations: 170.9 kB / 449.4 MB, free: 42.61 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.1724, allocations: 0 / 449.4 MB, free: 42.61 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.1725, allocations: 73.22 kB / 449.5 MB, free: 42.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000257/0.1727, allocations: 9.75 kB / 449.5 MB, free: 42.59 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001601/0.1743, allocations: 1.986 MB / 451.5 MB, free: 41.17 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.792e-05/0.1744, allocations: 85.8 kB / 451.5 MB, free: 41.1 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.702e-05/0.1744, allocations: 15.19 kB / 451.6 MB, free: 41.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.659e-05/0.1745, allocations: 37.62 kB / 451.6 MB, free: 41.07 MB / 410.7 MB Notification: Performance of SimCode: time 7.31e-07/0.1745, allocations: 0 / 451.6 MB, free: 41.07 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01502/0.1895, allocations: 3.975 MB / 455.6 MB, free: 39.98 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.024/8.213, allocations: 0 / 455.6 MB, free: 39.98 MB / 410.7 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/TestSaturatingInductor/TestSaturatingInductor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable saturatingInductor.Psi in file ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv. Warning: Get data of variable saturatingInductor.Psi from file ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv failed! Error: Could not read variable saturatingInductor.i in file ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv. Warning: Get data of variable saturatingInductor.i from file ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.143586816266179]