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.0008519/0.0008519, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0008326/0.0008326, allocations: 170.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.8916/0.8916, allocations: 177.1 MB / 204.3 MB, free: 5.754 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.2246/0.2246, allocations: 32.79 MB / 293.5 MB, free: 1.23 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.635e-06/2.635e-06, allocations: 3.984 kB / 439.6 MB, free: 4.281 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.158e-05/2.422e-05, allocations: 4.531 kB / 439.6 MB, free: 4.277 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.002566/0.00259, allocations: 1.857 MB / 441.4 MB, free: 2.402 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008547/0.003445, allocations: 0.5609 MB / 442 MB, free: 1.836 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.438e-05/0.003519, allocations: 0 / 442 MB, free: 1.836 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 4.823e-05/0.003567, allocations: 11.86 kB / 442 MB, free: 1.824 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002209/0.003788, allocations: 43.58 kB / 442 MB, free: 1.781 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002754/0.004064, allocations: 86.94 kB / 442.1 MB, free: 1.699 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001695/0.004233, allocations: 151.4 kB / 442.3 MB, free: 1.551 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001288/0.004362, allocations: 29.22 kB / 442.3 MB, free: 1.523 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002424/0.004604, allocations: 107.7 kB / 442.4 MB, free: 1.418 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.893e-05/0.004683, allocations: 51.81 kB / 442.5 MB, free: 1.367 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.223e-05/0.004706, allocations: 16 kB / 442.5 MB, free: 1.352 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.406e-05/0.00475, allocations: 16 kB / 442.5 MB, free: 1.336 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.366e-05/0.004773, allocations: 27.91 kB / 442.5 MB, free: 1.309 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 4.269e-05/0.004816, allocations: 47.89 kB / 442.6 MB, free: 1.262 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001812/0.004997, allocations: 151.5 kB / 442.7 MB, free: 1.113 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.005001, allocations: 4 kB / 442.7 MB, free: 1.109 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.005003, allocations: 0 / 442.7 MB, free: 1.109 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.269e-06/0.005007, allocations: 3.938 kB / 442.7 MB, free: 1.105 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.0005594/0.005566, allocations: 377.8 kB / 443.1 MB, free: 0.707 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.005606, allocations: 8.031 kB / 443.1 MB, free: 0.6992 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.666e-05/0.005642, allocations: 38.75 kB / 443.1 MB, free: 0.6523 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001687/0.005811, allocations: 44.81 kB / 443.2 MB, free: 0.6094 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000116/0.005927, allocations: 133.7 kB / 443.3 MB, free: 464 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.176e-05/0.005939, allocations: 4.375 kB / 443.3 MB, free: 460 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.39e-05/0.005963, allocations: 12.31 kB / 443.3 MB, free: 448 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002304/0.006193, allocations: 183.3 kB / 443.5 MB, free: 240 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.006202, allocations: 192 / 443.5 MB, free: 240 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.006217, allocations: 8.125 kB / 443.5 MB, free: 232 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.91e-06/0.006222, allocations: 4 kB / 443.5 MB, free: 228 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001753/0.006397, allocations: 99.91 kB / 443.6 MB, free: 128 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.165/0.1713, allocations: 383.2 kB / 444 MB, free: 45.91 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001845/0.1715, allocations: 90.44 kB / 444.1 MB, free: 45.89 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.125e-05/0.1716, allocations: 42.97 kB / 444.1 MB, free: 45.88 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.629e-05/0.1716, allocations: 2.656 kB / 444.1 MB, free: 45.88 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.523e-05/0.1716, allocations: 36.75 kB / 444.2 MB, free: 45.84 MB / 410.7 MB Notification: Performance of pre-optimization done (n=4): time 2.104e-06/0.1716, allocations: 0 / 444.2 MB, free: 45.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=6): time 0.0007588/0.1724, allocations: 323.9 kB / 444.5 MB, free: 45.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.578e-05/0.1724, allocations: 105.7 kB / 444.6 MB, free: 45.68 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.327e-05/0.1725, allocations: 153.5 kB / 444.7 MB, free: 45.57 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.017e-05/0.1725, allocations: 29.58 kB / 444.8 MB, free: 45.54 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.1e-05/0.1726, allocations: 111 kB / 444.9 MB, free: 45.45 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.385e-05/0.1726, allocations: 25.22 kB / 444.9 MB, free: 45.44 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.015e-05/0.1726, allocations: 25.09 kB / 444.9 MB, free: 45.42 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.114e-05/0.1727, allocations: 322.2 kB / 445.2 MB, free: 45.11 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.1728, allocations: 56.86 kB / 445.3 MB, free: 45.11 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001209/0.1729, allocations: 152.6 kB / 445.4 MB, free: 45.01 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001946/0.1731, allocations: 132.7 kB / 445.6 MB, free: 44.98 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.1731, allocations: 2.594 kB / 445.6 MB, free: 44.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000241/0.1733, allocations: 174 kB / 445.7 MB, free: 44.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.1733, allocations: 7.297 kB / 445.7 MB, free: 44.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.1733, allocations: 0 / 445.7 MB, free: 44.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.1734, allocations: 0 / 445.7 MB, free: 44.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002866/0.1736, allocations: 93.81 kB / 445.8 MB, free: 44.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006605/0.1743, allocations: 1.402 MB / 447.2 MB, free: 43.63 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/0.1744, allocations: 24.12 kB / 447.3 MB, free: 43.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.1744, allocations: 2.969 kB / 447.3 MB, free: 43.63 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.612e-05/0.1745, allocations: 121.6 kB / 447.4 MB, free: 43.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.978e-05/0.1745, allocations: 15.8 kB / 447.4 MB, free: 43.51 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002291/0.1747, allocations: 166.3 kB / 447.6 MB, free: 43.47 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.1747, allocations: 6.219 kB / 447.6 MB, free: 43.47 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-06/0.1747, allocations: 0 / 447.6 MB, free: 43.47 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.1747, allocations: 0 / 447.6 MB, free: 43.47 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000375/0.1751, allocations: 411.6 kB / 448 MB, free: 43.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1751, allocations: 6.516 kB / 448 MB, free: 43.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.801e-05/0.1752, allocations: 32.72 kB / 448 MB, free: 43.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.1752, allocations: 0 / 448 MB, free: 43.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-06/0.1752, allocations: 0 / 448 MB, free: 43.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1752, allocations: 2.906 kB / 448 MB, free: 43.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1752, allocations: 0 / 448 MB, free: 43.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002173/0.1754, allocations: 255.1 kB / 448.3 MB, free: 43.06 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.286e-05/0.1754, allocations: 14.09 kB / 448.3 MB, free: 43.05 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.228e-05/0.1754, allocations: 3.375 kB / 448.3 MB, free: 43.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.844e-05/0.1755, allocations: 21.11 kB / 448.3 MB, free: 43.05 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.742e-05/0.1756, allocations: 10.27 kB / 448.3 MB, free: 43.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-06/0.1756, allocations: 3.031 kB / 448.3 MB, free: 43.05 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.484e-05/0.1756, allocations: 115.2 kB / 448.4 MB, free: 42.97 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1756, allocations: 0 / 448.4 MB, free: 42.97 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001758/0.1758, allocations: 28.56 kB / 448.4 MB, free: 42.97 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.0003161/0.1761, allocations: 0.7848 MB / 449.2 MB, free: 42.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004253/0.1765, allocations: 169.9 kB / 449.4 MB, free: 42.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1765, allocations: 0 / 449.4 MB, free: 42.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 9.859e-05/0.1766, allocations: 60.25 kB / 449.5 MB, free: 42.29 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002563/0.1769, allocations: 15.06 kB / 449.5 MB, free: 42.29 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001631/0.1785, allocations: 1.993 MB / 451.5 MB, free: 40.98 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.177e-05/0.1785, allocations: 82.16 kB / 451.5 MB, free: 40.91 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.844e-05/0.1786, allocations: 16.7 kB / 451.6 MB, free: 40.91 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.885e-05/0.1787, allocations: 38.59 kB / 451.6 MB, free: 40.88 MB / 410.7 MB Notification: Performance of SimCode: time 5.91e-07/0.1787, allocations: 0 / 451.6 MB, free: 40.88 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01794/0.1966, allocations: 3.975 MB / 455.6 MB, free: 39.79 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.502/7.699, allocations: 7.875 kB / 455.6 MB, free: 39.78 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 & /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/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.591540881432593]