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.001542/0.001542, allocations: 112.5 kB / 21.19 MB, free: 0.7617 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.001681/0.001681, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.43/1.43, allocations: 230.6 MB / 258.3 MB, free: 7.973 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.2277/0.2277, allocations: 44.91 MB / 359.6 MB, free: 6.258 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.002106/0.002106, allocations: 75.89 kB / 0.4943 GB, free: 10.19 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3497/0.3518, allocations: 65.46 MB / 0.5582 GB, free: 7.68 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002962/0.3548, allocations: 1.485 MB / 0.5597 GB, free: 6.203 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009272/0.3557, allocations: 490.8 kB / 0.5601 GB, free: 5.719 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.413e-05/0.3557, allocations: 0 / 0.5601 GB, free: 5.719 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.027e-05/0.3558, allocations: 3.938 kB / 0.5602 GB, free: 5.715 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.432e-05/0.3558, allocations: 11.92 kB / 0.5602 GB, free: 5.703 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002494/0.3561, allocations: 31.91 kB / 0.5602 GB, free: 5.672 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001174/0.3562, allocations: 35.86 kB / 0.5602 GB, free: 5.637 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.142e-05/0.3563, allocations: 4 kB / 0.5602 GB, free: 5.633 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001387/0.3564, allocations: 27.91 kB / 0.5603 GB, free: 5.605 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.184e-05/0.3565, allocations: 19.92 kB / 0.5603 GB, free: 5.586 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.266e-05/0.3565, allocations: 0 / 0.5603 GB, free: 5.586 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.476e-05/0.3566, allocations: 8 kB / 0.5603 GB, free: 5.578 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.719e-05/0.3566, allocations: 11.92 kB / 0.5603 GB, free: 5.566 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.187e-05/0.3566, allocations: 15.92 kB / 0.5603 GB, free: 5.551 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001204/0.3567, allocations: 35.56 kB / 0.5603 GB, free: 5.52 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.3567, allocations: 4 kB / 0.5604 GB, free: 5.516 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.005e-06/0.3567, allocations: 3.984 kB / 0.5604 GB, free: 5.512 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.3567, allocations: 0 / 0.5604 GB, free: 5.512 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.000582/0.3573, allocations: 272.9 kB / 0.5606 GB, free: 5.219 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.3574, allocations: 12.03 kB / 0.5606 GB, free: 5.207 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001707/0.3575, allocations: 12.92 kB / 0.5606 GB, free: 5.195 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002262/0.3578, allocations: 118.4 kB / 0.5608 GB, free: 5.055 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.618e-06/0.3578, allocations: 4.375 kB / 0.5608 GB, free: 5.051 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.134e-05/0.3578, allocations: 4.375 kB / 0.5608 GB, free: 5.047 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000177/0.358, allocations: 63.64 kB / 0.5608 GB, free: 4.973 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.358, allocations: 0 / 0.5608 GB, free: 4.973 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.358, allocations: 7.938 kB / 0.5608 GB, free: 4.965 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.358, allocations: 3.984 kB / 0.5608 GB, free: 4.961 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.611e-05/0.3581, allocations: 19.98 kB / 0.5609 GB, free: 4.941 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004183/0.3585, allocations: 243.9 kB / 0.5611 GB, free: 4.66 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.439e-05/0.3586, allocations: 34.5 kB / 0.5611 GB, free: 4.617 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.92e-05/0.3586, allocations: 16.92 kB / 0.5611 GB, free: 4.598 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.265e-05/0.3587, allocations: 0 / 0.5611 GB, free: 4.598 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.203e-05/0.3587, allocations: 30.56 kB / 0.5612 GB, free: 4.559 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.3587, allocations: 4 kB / 0.5612 GB, free: 4.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002576/0.3589, allocations: 61.67 kB / 0.5612 GB, free: 4.488 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.916e-05/0.359, allocations: 85.05 kB / 0.5613 GB, free: 4.387 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.3591, allocations: 105.8 kB / 0.5614 GB, free: 4.273 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.68e-05/0.3591, allocations: 33.7 kB / 0.5614 GB, free: 4.234 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.416e-05/0.3592, allocations: 84.12 kB / 0.5615 GB, free: 4.148 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.232e-05/0.3592, allocations: 11.89 kB / 0.5615 GB, free: 4.137 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.774e-05/0.3593, allocations: 17.84 kB / 0.5615 GB, free: 4.113 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.3594, allocations: 322.8 kB / 0.5619 GB, free: 3.789 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.426e-05/0.3595, allocations: 4 kB / 0.5619 GB, free: 3.785 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.378e-05/0.3595, allocations: 25.7 kB / 0.5619 GB, free: 3.754 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.888e-05/0.3596, allocations: 28.78 kB / 0.5619 GB, free: 3.723 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3596, allocations: 0 / 0.5619 GB, free: 3.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001417/0.3597, allocations: 69.64 kB / 0.562 GB, free: 3.648 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.3597, allocations: 4 kB / 0.562 GB, free: 3.645 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3598, allocations: 4 kB / 0.562 GB, free: 3.641 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.3598, allocations: 0 / 0.562 GB, free: 3.641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.659e-05/0.3598, allocations: 0 / 0.562 GB, free: 3.641 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.3598, allocations: 4 kB / 0.562 GB, free: 3.637 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.826e-05/0.3599, allocations: 11.94 kB / 0.562 GB, free: 3.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.869e-06/0.3599, allocations: 0 / 0.562 GB, free: 3.625 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 9.797e-05/0.36, allocations: 117.8 kB / 0.5621 GB, free: 3.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.432e-05/0.36, allocations: 7.938 kB / 0.5621 GB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.843e-05/0.3601, allocations: 7.625 kB / 0.5621 GB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.3601, allocations: 4.359 kB / 0.5621 GB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3601, allocations: 0 / 0.5621 GB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.3601, allocations: 4 kB / 0.5621 GB, free: 3.473 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001909/0.3603, allocations: 140.7 kB / 0.5623 GB, free: 3.293 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.3603, allocations: 3.938 kB / 0.5623 GB, free: 3.289 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.895e-05/0.3603, allocations: 4 kB / 0.5623 GB, free: 3.285 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.3603, allocations: 0 / 0.5623 GB, free: 3.285 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-06/0.3603, allocations: 0 / 0.5623 GB, free: 3.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.3603, allocations: 4 kB / 0.5623 GB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3603, allocations: 0 / 0.5623 GB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001907/0.3605, allocations: 159.4 kB / 0.5624 GB, free: 3.109 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.762e-06/0.3605, allocations: 4 kB / 0.5624 GB, free: 3.105 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.743e-05/0.3605, allocations: 0 / 0.5624 GB, free: 3.105 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.47e-05/0.3606, allocations: 11.98 kB / 0.5624 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.709e-05/0.3607, allocations: 8.016 kB / 0.5625 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.467e-06/0.3607, allocations: 0 / 0.5625 GB, free: 3.086 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.81e-05/0.3607, allocations: 91.27 kB / 0.5625 GB, free: 2.996 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3607, allocations: 0 / 0.5625 GB, free: 2.996 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002171/0.3609, allocations: 8 kB / 0.5626 GB, free: 2.988 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.0001124/0.3611, allocations: 95.39 kB / 0.5626 GB, free: 2.887 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001572/0.3612, allocations: 31.91 kB / 0.5627 GB, free: 2.855 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.3612, allocations: 4 kB / 0.5627 GB, free: 2.852 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.075e-05/0.3613, allocations: 15.98 kB / 0.5627 GB, free: 2.836 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002093/0.3615, allocations: 3.938 kB / 0.5627 GB, free: 2.832 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003479/0.3618, allocations: 148.7 kB / 0.5628 GB, free: 2.656 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003403/0.3622, allocations: 0.6768 MB / 0.5635 GB, free: 1.953 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.655e-05/0.3622, allocations: 15.44 kB / 0.5635 GB, free: 1.938 MB / 398.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3622, allocations: 0 / 0.5635 GB, free: 1.938 MB / 398.1 MB Notification: Performance of Templates: time 0.002263/0.3645, allocations: 0.6663 MB / 0.5642 GB, free: 1.277 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.456230801064521]