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.001339/0.001339, allocations: 116.9 kB / 18.49 MB, free: 4.559 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.001431/0.001431, allocations: 217.4 kB / 21.46 MB, free: 1.605 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.498/1.498, allocations: 230.6 MB / 254.8 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] 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.2244/0.2244, allocations: 44.9 MB / 355.8 MB, free: 12.31 MB / 286.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002113/0.002113, allocations: 73.45 kB / 0.4885 GB, free: 11.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1346, allocations: 65.42 MB / 0.5524 GB, free: 10.14 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.003414/0.138, allocations: 1.93 MB / 0.5543 GB, free: 8.195 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.1392, allocations: 0.5961 MB / 0.5549 GB, free: 7.594 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.1393, allocations: 3.938 kB / 0.5549 GB, free: 7.59 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 6.978e-05/0.1394, allocations: 15.86 kB / 0.5549 GB, free: 7.574 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002374/0.1397, allocations: 39.7 kB / 0.5549 GB, free: 7.535 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003665/0.14, allocations: 91.75 kB / 0.555 GB, free: 7.445 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00022/0.1402, allocations: 147.5 kB / 0.5552 GB, free: 7.301 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001329/0.1404, allocations: 25.28 kB / 0.5552 GB, free: 7.277 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003064/0.1407, allocations: 83.69 kB / 0.5553 GB, free: 7.195 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001352/0.1408, allocations: 63.75 kB / 0.5553 GB, free: 7.133 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.707e-05/0.1408, allocations: 15.98 kB / 0.5554 GB, free: 7.117 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.53e-05/0.1409, allocations: 20 kB / 0.5554 GB, free: 7.098 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.71e-05/0.141, allocations: 31.86 kB / 0.5554 GB, free: 7.066 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 8.53e-05/0.141, allocations: 59.72 kB / 0.5555 GB, free: 7.008 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002388/0.1413, allocations: 143.5 kB / 0.5556 GB, free: 6.867 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.034e-06/0.1413, allocations: 3.984 kB / 0.5556 GB, free: 6.863 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1413, allocations: 4 kB / 0.5556 GB, free: 6.859 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.1413, allocations: 0 / 0.5556 GB, free: 6.859 MB / 414.1 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.0008656/0.1422, allocations: 453.1 kB / 0.556 GB, free: 6.371 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.1422, allocations: 8.031 kB / 0.556 GB, free: 6.363 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.219e-05/0.1422, allocations: 4.188 kB / 0.556 GB, free: 6.359 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.585e-05/0.1423, allocations: 42.73 kB / 0.5561 GB, free: 6.309 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002993/0.1426, allocations: 36.83 kB / 0.5561 GB, free: 6.273 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001915/0.1428, allocations: 194 kB / 0.5563 GB, free: 6.047 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.1428, allocations: 12.38 kB / 0.5563 GB, free: 6.035 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.519e-05/0.1428, allocations: 4.375 kB / 0.5563 GB, free: 6.031 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003429/0.1431, allocations: 136.1 kB / 0.5565 GB, free: 5.883 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.1432, allocations: 0 / 0.5565 GB, free: 5.883 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.054e-05/0.1432, allocations: 8 kB / 0.5565 GB, free: 5.875 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.1432, allocations: 3.938 kB / 0.5565 GB, free: 5.871 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003472/0.1435, allocations: 99.86 kB / 0.5566 GB, free: 5.773 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008855/0.1444, allocations: 459.4 kB / 0.557 GB, free: 5.266 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000307/0.1447, allocations: 78.53 kB / 0.5571 GB, free: 5.18 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001949/0.1449, allocations: 44.92 kB / 0.5571 GB, free: 5.133 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.1449, allocations: 7.984 kB / 0.5571 GB, free: 5.125 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.456e-05/0.145, allocations: 30.56 kB / 0.5572 GB, free: 5.086 MB / 414.1 MB Notification: Performance of pre-optimization done (n=4): time 1.272e-06/0.145, allocations: 0 / 0.5572 GB, free: 5.086 MB / 414.1 MB Notification: Performance of matching and sorting (n=6): time 0.001697/0.1467, allocations: 325.3 kB / 0.5575 GB, free: 4.762 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.1468, allocations: 106.8 kB / 0.5576 GB, free: 4.633 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000222/0.147, allocations: 149.5 kB / 0.5577 GB, free: 4.477 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.365e-05/0.147, allocations: 33.7 kB / 0.5577 GB, free: 4.438 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.1472, allocations: 108.2 kB / 0.5578 GB, free: 4.324 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.966e-05/0.1472, allocations: 23.8 kB / 0.5579 GB, free: 4.301 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.982e-05/0.1473, allocations: 25.7 kB / 0.5579 GB, free: 4.27 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000203/0.1475, allocations: 322.8 kB / 0.5582 GB, free: 3.945 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003692/0.1479, allocations: 59.89 kB / 0.5583 GB, free: 3.887 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004069/0.1483, allocations: 100.2 kB / 0.5583 GB, free: 3.773 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006901/0.149, allocations: 134.5 kB / 0.5585 GB, free: 3.633 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.149, allocations: 0 / 0.5585 GB, free: 3.633 MB / 414.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0009008/0.1499, allocations: 181.4 kB / 0.5586 GB, free: 3.449 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.069e-05/0.1499, allocations: 8.062 kB / 0.5587 GB, free: 3.441 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.1499, allocations: 4 kB / 0.5587 GB, free: 3.438 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.431e-05/0.1499, allocations: 0 / 0.5587 GB, free: 3.438 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008727/0.1508, allocations: 87.91 kB / 0.5587 GB, free: 3.352 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002308/0.1531, allocations: 1.496 MB / 0.5602 GB, free: 1.707 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003294/0.1535, allocations: 31.94 kB / 0.5602 GB, free: 1.676 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.084e-05/0.1535, allocations: 4 kB / 0.5602 GB, free: 1.672 MB / 414.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 (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 0.0001825/0.1537, allocations: 121.8 kB / 0.5604 GB, free: 1.543 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.777e-05/0.1537, allocations: 7.953 kB / 0.5604 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007811/0.1545, allocations: 166.3 kB / 0.5605 GB, free: 1.371 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.1545, allocations: 0 / 0.5605 GB, free: 1.371 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.524e-06/0.1545, allocations: 0 / 0.5605 GB, free: 1.371 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.1545, allocations: 7.938 kB / 0.5605 GB, free: 1.363 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001357/0.1559, allocations: 466.3 kB / 0.561 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.1559, allocations: 0 / 0.561 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002404/0.1561, allocations: 28.16 kB / 0.561 GB, free: 0.8242 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.552e-06/0.1561, allocations: 4 kB / 0.561 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.125e-05/0.1561, allocations: 11.88 kB / 0.561 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.1561, allocations: 0 / 0.561 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.1562, allocations: 0 / 0.561 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008299/0.157, allocations: 255.3 kB / 0.5613 GB, free: 0.543 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.381e-05/0.1571, allocations: 89.05 kB / 0.5613 GB, free: 448 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.831e-05/0.1571, allocations: 3.938 kB / 0.5613 GB, free: 444 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000333/0.1574, allocations: 19.97 kB / 0.5614 GB, free: 424 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.814e-05/0.1575, allocations: 12 kB / 0.5614 GB, free: 412 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.459e-05/0.1575, allocations: 4 kB / 0.5614 GB, free: 408 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001347/0.1577, allocations: 109.1 kB / 0.5615 GB, free: 300 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1577, allocations: 0 / 0.5615 GB, free: 300 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005365/0.1582, allocations: 32 kB / 0.5615 GB, free: 268 kB / 414.1 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.001356/0.1596, allocations: 0.7831 MB / 0.5623 GB, free: 15.45 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001351/0.1609, allocations: 171.6 kB / 0.5624 GB, free: 15.28 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.1609, allocations: 0 / 0.5624 GB, free: 15.28 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003703/0.1613, allocations: 72 kB / 0.5625 GB, free: 15.21 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005719/0.1619, allocations: 10.66 kB / 0.5625 GB, free: 15.2 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005576/0.1674, allocations: 1.982 MB / 0.5645 GB, free: 13.13 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004436/0.1679, allocations: 0.7002 MB / 0.5651 GB, free: 12.4 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001214/0.168, allocations: 16.42 kB / 0.5652 GB, free: 12.39 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001322/0.1681, allocations: 31.42 kB / 0.5652 GB, free: 12.36 MB / 430.1 MB Notification: Performance of SimCode: time 9.32e-07/0.1681, allocations: 4 kB / 0.5652 GB, free: 12.35 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02879/0.1969, allocations: 3.249 MB / 0.5684 GB, free: 9.27 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/12.42, allocations: 8.047 kB / 0.5684 GB, free: 9.262 MB / 430.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/TestSaturatingInductor/TestSaturatingInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.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.461459644022398]