Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.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.00189/0.00189, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001635/0.001635, allocations: 211.5 kB / 24.48 MB, free: 3.941 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.445/1.445, allocations: 230.6 MB / 258.2 MB, free: 7.785 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.2259/0.2259, allocations: 44.94 MB / 359.6 MB, free: 6.066 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: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis") [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.002155/0.002155, allocations: 67.89 kB / 0.4942 GB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.3428, allocations: 65.48 MB / 0.5582 GB, free: 7.5 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003148/0.3459, allocations: 1.458 MB / 0.5596 GB, free: 6.031 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001115/0.3471, allocations: 455 kB / 0.56 GB, free: 5.582 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.934e-05/0.3471, allocations: 0 / 0.56 GB, free: 5.582 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.893e-05/0.3471, allocations: 0 / 0.56 GB, free: 5.582 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.833e-05/0.3472, allocations: 7.875 kB / 0.56 GB, free: 5.574 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002538/0.3475, allocations: 27.97 kB / 0.5601 GB, free: 5.547 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001206/0.3476, allocations: 47.78 kB / 0.5601 GB, free: 5.5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.022e-05/0.3477, allocations: 4 kB / 0.5601 GB, free: 5.496 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001322/0.3478, allocations: 23.92 kB / 0.5601 GB, free: 5.473 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.577e-05/0.3479, allocations: 15.92 kB / 0.5602 GB, free: 5.457 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.631e-05/0.3479, allocations: 4 kB / 0.5602 GB, free: 5.453 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.137e-05/0.3479, allocations: 7.938 kB / 0.5602 GB, free: 5.445 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.616e-05/0.3479, allocations: 11.92 kB / 0.5602 GB, free: 5.434 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.805e-05/0.348, allocations: 15.92 kB / 0.5602 GB, free: 5.418 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001272/0.3481, allocations: 35.56 kB / 0.5602 GB, free: 5.387 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3481, allocations: 0 / 0.5602 GB, free: 5.387 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3481, allocations: 0 / 0.5602 GB, free: 5.387 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.3481, allocations: 0 / 0.5602 GB, free: 5.387 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005299/0.3486, allocations: 288.9 kB / 0.5605 GB, free: 5.078 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.3487, allocations: 8.031 kB / 0.5605 GB, free: 5.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001626/0.3488, allocations: 8.938 kB / 0.5605 GB, free: 5.062 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002352/0.3491, allocations: 118.5 kB / 0.5606 GB, free: 4.922 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.798e-06/0.3491, allocations: 4.375 kB / 0.5606 GB, free: 4.918 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.987e-06/0.3491, allocations: 384 / 0.5606 GB, free: 4.918 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002703/0.3494, allocations: 89.41 kB / 0.5607 GB, free: 4.812 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.3494, allocations: 3.938 kB / 0.5607 GB, free: 4.809 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.3494, allocations: 7.938 kB / 0.5607 GB, free: 4.801 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.3494, allocations: 0 / 0.5607 GB, free: 4.801 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.263e-05/0.3495, allocations: 19.98 kB / 0.5608 GB, free: 4.781 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004304/0.3499, allocations: 212.6 kB / 0.561 GB, free: 4.543 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001006/0.35, allocations: 30.52 kB / 0.561 GB, free: 4.504 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.949e-05/0.3501, allocations: 12.91 kB / 0.561 GB, free: 4.488 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.3501, allocations: 4 kB / 0.561 GB, free: 4.484 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.967e-05/0.3501, allocations: 38.5 kB / 0.561 GB, free: 4.438 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.3501, allocations: 4 kB / 0.561 GB, free: 4.434 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003767/0.3505, allocations: 57.67 kB / 0.5611 GB, free: 4.371 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.734e-05/0.3506, allocations: 81.11 kB / 0.5612 GB, free: 4.273 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001877/0.3508, allocations: 109.8 kB / 0.5613 GB, free: 4.156 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/0.3508, allocations: 29.7 kB / 0.5613 GB, free: 4.121 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.198e-05/0.3509, allocations: 84.52 kB / 0.5614 GB, free: 4.035 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.277e-05/0.3509, allocations: 11.88 kB / 0.5614 GB, free: 4.023 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.676e-05/0.3509, allocations: 13.72 kB / 0.5614 GB, free: 4.004 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002535/0.3512, allocations: 318.8 kB / 0.5617 GB, free: 3.684 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.176e-05/0.3512, allocations: 23.98 kB / 0.5617 GB, free: 3.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.071e-05/0.3513, allocations: 55.41 kB / 0.5618 GB, free: 3.594 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.208e-05/0.3514, allocations: 24.94 kB / 0.5618 GB, free: 3.566 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.3514, allocations: 0 / 0.5618 GB, free: 3.566 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001359/0.3515, allocations: 57.61 kB / 0.5619 GB, free: 3.504 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.3515, allocations: 8 kB / 0.5619 GB, free: 3.496 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.3515, allocations: 0 / 0.5619 GB, free: 3.496 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.3516, allocations: 3.984 kB / 0.5619 GB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.328e-05/0.3516, allocations: 12.03 kB / 0.5619 GB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.545e-06/0.3516, allocations: 3.938 kB / 0.5619 GB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.162e-05/0.3517, allocations: 11.94 kB / 0.5619 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.475e-06/0.3517, allocations: 4 kB / 0.5619 GB, free: 3.461 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 prepare postOptimizeDAE: time 0.0001765/0.3519, allocations: 113.8 kB / 0.562 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.019e-05/0.3519, allocations: 4 kB / 0.562 GB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.226e-05/0.352, allocations: 7.625 kB / 0.562 GB, free: 3.324 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.352, allocations: 0 / 0.562 GB, free: 3.324 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.352, allocations: 4 kB / 0.562 GB, free: 3.32 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.352, allocations: 0 / 0.562 GB, free: 3.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001832/0.3522, allocations: 113.2 kB / 0.5621 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.3522, allocations: 3.938 kB / 0.5622 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.034e-05/0.3522, allocations: 7.984 kB / 0.5622 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3522, allocations: 0 / 0.5622 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.3522, allocations: 0 / 0.5622 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.3522, allocations: 0 / 0.5622 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3522, allocations: 0 / 0.5622 GB, free: 3.168 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001958/0.3524, allocations: 155.4 kB / 0.5623 GB, free: 3 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.426e-05/0.3524, allocations: 7.938 kB / 0.5623 GB, free: 2.992 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.059e-05/0.3524, allocations: 8.031 kB / 0.5623 GB, free: 2.984 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.435e-05/0.3525, allocations: 7.984 kB / 0.5623 GB, free: 2.977 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.42e-05/0.3526, allocations: 7.984 kB / 0.5623 GB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.517e-06/0.3526, allocations: 0 / 0.5623 GB, free: 2.969 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.941e-05/0.3526, allocations: 91.27 kB / 0.5624 GB, free: 2.879 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3526, allocations: 0 / 0.5624 GB, free: 2.879 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002188/0.3528, allocations: 4.281 kB / 0.5624 GB, free: 2.875 MB / 398.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: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001264/0.353, allocations: 91.25 kB / 0.5625 GB, free: 2.777 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001563/0.3531, allocations: 31.98 kB / 0.5625 GB, free: 2.746 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3531, allocations: 3.938 kB / 0.5626 GB, free: 2.742 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.962e-05/0.3532, allocations: 15.92 kB / 0.5626 GB, free: 2.727 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002273/0.3534, allocations: 11.94 kB / 0.5626 GB, free: 2.715 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003423/0.3538, allocations: 148.7 kB / 0.5627 GB, free: 2.539 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.064e-05/0.3538, allocations: 63.34 kB / 0.5628 GB, free: 2.457 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.334e-05/0.3539, allocations: 7.438 kB / 0.5628 GB, free: 2.449 MB / 398.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3539, allocations: 0 / 0.5628 GB, free: 2.449 MB / 398.1 MB Notification: Performance of Templates: time 0.002329/0.3562, allocations: 0.6845 MB / 0.5635 GB, free: 1.766 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.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: 7.341590947005898]