Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001393/0.001393, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001644/0.001644, allocations: 203.4 kB / 23.73 MB, free: 4.379 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.579/1.579, allocations: 230.6 MB / 257.5 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2332/0.2332, allocations: 46.96 MB / 360.9 MB, free: 4.039 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002674/0.002674, allocations: 71.83 kB / 0.4966 GB, free: 7.234 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4025/0.4051, allocations: 66.04 MB / 0.5611 GB, free: 4.156 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002955/0.4081, allocations: 1.456 MB / 0.5625 GB, free: 2.691 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001255/0.4094, allocations: 455 kB / 0.5629 GB, free: 2.242 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.604e-05/0.4094, allocations: 0 / 0.5629 GB, free: 2.242 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.586e-05/0.4095, allocations: 3.938 kB / 0.5629 GB, free: 2.238 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.108e-05/0.4095, allocations: 3.938 kB / 0.5629 GB, free: 2.234 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00029/0.4098, allocations: 31.89 kB / 0.563 GB, free: 2.203 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001322/0.41, allocations: 39.86 kB / 0.563 GB, free: 2.164 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.4101, allocations: 4 kB / 0.563 GB, free: 2.16 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00014/0.4102, allocations: 19.92 kB / 0.563 GB, free: 2.141 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.945e-05/0.4103, allocations: 27.91 kB / 0.5631 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.365e-05/0.4103, allocations: 0 / 0.5631 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.844e-05/0.4103, allocations: 12 kB / 0.5631 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.43e-05/0.4104, allocations: 0 / 0.5631 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.224e-05/0.4104, allocations: 15.92 kB / 0.5631 GB, free: 2.086 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001379/0.4105, allocations: 43.48 kB / 0.5631 GB, free: 2.047 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.309e-06/0.4105, allocations: 0 / 0.5631 GB, free: 2.047 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4105, allocations: 0 / 0.5631 GB, free: 2.047 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.4105, allocations: 0 / 0.5631 GB, free: 2.047 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.0005476/0.4111, allocations: 276.9 kB / 0.5634 GB, free: 1.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.4111, allocations: 19.97 kB / 0.5634 GB, free: 1.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001647/0.4113, allocations: 12.94 kB / 0.5634 GB, free: 1.719 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002074/0.4115, allocations: 122.4 kB / 0.5635 GB, free: 1.574 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.779e-06/0.4115, allocations: 384 / 0.5635 GB, free: 1.574 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.593e-05/0.4115, allocations: 4.375 kB / 0.5635 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001969/0.4117, allocations: 89.41 kB / 0.5636 GB, free: 1.465 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.4117, allocations: 4 kB / 0.5636 GB, free: 1.461 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.4117, allocations: 0 / 0.5636 GB, free: 1.461 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.4118, allocations: 0 / 0.5636 GB, free: 1.461 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.855e-05/0.4118, allocations: 27.92 kB / 0.5637 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000357/0.4122, allocations: 204.6 kB / 0.5638 GB, free: 1.203 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001051/0.4123, allocations: 34.52 kB / 0.5639 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.222e-05/0.4124, allocations: 16.91 kB / 0.5639 GB, free: 1.141 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.982e-05/0.4124, allocations: 3.984 kB / 0.5639 GB, free: 1.137 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.573e-05/0.4124, allocations: 34.56 kB / 0.5639 GB, free: 1.094 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.4124, allocations: 0 / 0.5639 GB, free: 1.094 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002591/0.4127, allocations: 65.61 kB / 0.564 GB, free: 1.023 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.469e-05/0.4127, allocations: 81.11 kB / 0.5641 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.61e-05/0.4128, allocations: 109.8 kB / 0.5642 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/0.4129, allocations: 25.7 kB / 0.5642 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.764e-05/0.4129, allocations: 92.12 kB / 0.5643 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.018e-05/0.4129, allocations: 7.891 kB / 0.5643 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.107e-05/0.413, allocations: 17.72 kB / 0.5643 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.4131, allocations: 310.8 kB / 0.5646 GB, free: 348 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.573e-05/0.4132, allocations: 15.98 kB / 0.5646 GB, free: 332 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.96e-05/0.4132, allocations: 51.53 kB / 0.5647 GB, free: 268 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.335e-05/0.4133, allocations: 36.75 kB / 0.5647 GB, free: 228 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4133, allocations: 0 / 0.5647 GB, free: 228 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001398/0.4135, allocations: 61.62 kB / 0.5648 GB, free: 160 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.4135, allocations: 4 kB / 0.5648 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.4135, allocations: 0 / 0.5648 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.4135, allocations: 8.359 kB / 0.5648 GB, free: 148 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.809e-05/0.4136, allocations: 0 / 0.5648 GB, free: 148 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.4136, allocations: 4 kB / 0.5648 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.227e-05/0.4136, allocations: 11.94 kB / 0.5648 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.542e-06/0.4136, allocations: 7.938 kB / 0.5648 GB, free: 124 kB / 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.144e-05/0.4137, allocations: 113.8 kB / 0.5649 GB, free: 0 / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.985e-05/0.4138, allocations: 4.047 kB / 0.5649 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.107e-05/0.4138, allocations: 7.625 kB / 0.5649 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.4138, allocations: 0 / 0.5649 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.4138, allocations: 3.938 kB / 0.5649 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.4138, allocations: 0 / 0.5649 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000172/0.414, allocations: 109.3 kB / 0.565 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.414, allocations: 3.938 kB / 0.565 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.412e-05/0.414, allocations: 7.984 kB / 0.565 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.414, allocations: 4 kB / 0.565 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.4141, allocations: 0 / 0.565 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.598e-06/0.4141, allocations: 4 kB / 0.5651 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-07/0.4141, allocations: 0 / 0.5651 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002821/0.4143, allocations: 155.5 kB / 0.5652 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.535e-05/0.4144, allocations: 3.938 kB / 0.5652 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.151e-05/0.4144, allocations: 0 / 0.5652 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.968e-05/0.4145, allocations: 11.98 kB / 0.5652 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.832e-05/0.4145, allocations: 3.984 kB / 0.5652 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.4145, allocations: 8.031 kB / 0.5652 GB, free: 15.63 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.198e-05/0.4146, allocations: 91.2 kB / 0.5653 GB, free: 15.54 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4146, allocations: 4 kB / 0.5653 GB, free: 15.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002274/0.4149, allocations: 8 kB / 0.5653 GB, free: 15.53 MB / 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: 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.0001503/0.415, allocations: 91.25 kB / 0.5654 GB, free: 15.43 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002011/0.4152, allocations: 23.98 kB / 0.5654 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4152, allocations: 0 / 0.5654 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.225e-05/0.4153, allocations: 19.98 kB / 0.5655 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002482/0.4155, allocations: 7.875 kB / 0.5655 GB, free: 15.38 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004558/0.416, allocations: 134.9 kB / 0.5656 GB, free: 15.22 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.605e-05/0.4161, allocations: 63.34 kB / 0.5657 GB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.43e-05/0.4161, allocations: 4.5 kB / 0.5657 GB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.516e-05/0.4162, allocations: 11.44 kB / 0.5657 GB, free: 15.12 MB / 414.1 MB Notification: Performance of SimCode: time 2.6e-07/0.4162, allocations: 0 / 0.5657 GB, free: 15.12 MB / 414.1 MB Notification: Performance of Templates: time 0.003707/0.4199, allocations: 0.6511 MB / 0.5663 GB, free: 14.48 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 5.372353632003069]