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.001657/0.001657, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.00176/0.00176, allocations: 212 kB / 23.74 MB, free: 4.656 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.462/1.462, allocations: 230.6 MB / 257.5 MB, free: 8.027 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.2253/0.2253, allocations: 46.94 MB / 360.9 MB, free: 4.238 MB / 286.1 MB " [Timeout remaining time 180] 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: "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002163/0.002163, allocations: 67.89 kB / 0.4962 GB, free: 7.891 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3572/0.3594, allocations: 66.03 MB / 0.5606 GB, free: 4.465 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002835/0.3622, allocations: 1.479 MB / 0.5621 GB, free: 2.977 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008742/0.3631, allocations: 498.8 kB / 0.5626 GB, free: 2.484 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.44e-05/0.3632, allocations: 0 / 0.5626 GB, free: 2.484 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.383e-05/0.3632, allocations: 0 / 0.5626 GB, free: 2.484 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.503e-05/0.3632, allocations: 7.875 kB / 0.5626 GB, free: 2.477 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002215/0.3635, allocations: 27.97 kB / 0.5626 GB, free: 2.449 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001167/0.3636, allocations: 43.78 kB / 0.5626 GB, free: 2.406 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.852e-05/0.3637, allocations: 8 kB / 0.5626 GB, free: 2.398 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001126/0.3638, allocations: 15.98 kB / 0.5627 GB, free: 2.383 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.843e-05/0.3639, allocations: 23.91 kB / 0.5627 GB, free: 2.359 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.143e-05/0.3639, allocations: 3.938 kB / 0.5627 GB, free: 2.355 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.144e-05/0.3639, allocations: 12 kB / 0.5627 GB, free: 2.344 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.051e-05/0.3639, allocations: 3.938 kB / 0.5627 GB, free: 2.34 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.239e-05/0.364, allocations: 19.92 kB / 0.5627 GB, free: 2.32 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001214/0.3641, allocations: 37.66 kB / 0.5628 GB, free: 2.285 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3641, allocations: 4 kB / 0.5628 GB, free: 2.281 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3641, allocations: 0 / 0.5628 GB, free: 2.281 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.3641, allocations: 4 kB / 0.5628 GB, free: 2.277 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.000449/0.3645, allocations: 270.2 kB / 0.563 GB, free: 1.984 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.3646, allocations: 15.97 kB / 0.563 GB, free: 1.969 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.182e-05/0.3646, allocations: 30.75 kB / 0.5631 GB, free: 1.93 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001367/0.3648, allocations: 12.92 kB / 0.5631 GB, free: 1.918 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001976/0.365, allocations: 118.5 kB / 0.5632 GB, free: 1.777 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.365, allocations: 4.375 kB / 0.5632 GB, free: 1.773 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.476e-06/0.365, allocations: 384 / 0.5632 GB, free: 1.773 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001653/0.3651, allocations: 67.45 kB / 0.5633 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.3652, allocations: 0 / 0.5633 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.297e-06/0.3652, allocations: 4 kB / 0.5633 GB, free: 1.691 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.3652, allocations: 0 / 0.5633 GB, free: 1.691 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.757e-05/0.3653, allocations: 19.98 kB / 0.5633 GB, free: 1.672 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003872/0.3656, allocations: 243.9 kB / 0.5635 GB, free: 1.391 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001024/0.3657, allocations: 30.52 kB / 0.5635 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.321e-05/0.3658, allocations: 24.84 kB / 0.5636 GB, free: 1.324 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.636e-05/0.3658, allocations: 0 / 0.5636 GB, free: 1.324 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.3658, allocations: 30.56 kB / 0.5636 GB, free: 1.285 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 8.12e-07/0.3658, allocations: 0 / 0.5636 GB, free: 1.285 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002382/0.3661, allocations: 69.67 kB / 0.5637 GB, free: 1.211 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.163e-05/0.3662, allocations: 77.11 kB / 0.5637 GB, free: 1.117 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.304e-05/0.3662, allocations: 109.8 kB / 0.5638 GB, free: 1 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.963e-05/0.3663, allocations: 25.7 kB / 0.5639 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.022e-05/0.3663, allocations: 88.08 kB / 0.5639 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.045e-05/0.3663, allocations: 11.94 kB / 0.564 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.451e-05/0.3664, allocations: 13.72 kB / 0.564 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.3665, allocations: 322.9 kB / 0.5643 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.01e-05/0.3666, allocations: 15.98 kB / 0.5643 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.351e-05/0.3666, allocations: 25.7 kB / 0.5643 GB, free: 488 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.761e-05/0.3667, allocations: 24.84 kB / 0.5643 GB, free: 460 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.3667, allocations: 0 / 0.5643 GB, free: 460 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001302/0.3668, allocations: 57.77 kB / 0.5644 GB, free: 396 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.3669, allocations: 8 kB / 0.5644 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.3669, allocations: 4.031 kB / 0.5644 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.3669, allocations: 0 / 0.5644 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.594e-05/0.3669, allocations: 11.92 kB / 0.5644 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.3669, allocations: 0 / 0.5644 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.645e-05/0.367, allocations: 15.88 kB / 0.5644 GB, free: 356 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-06/0.367, allocations: 0 / 0.5644 GB, free: 356 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 8.675e-05/0.3671, allocations: 113.8 kB / 0.5645 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.687e-05/0.3671, allocations: 4 kB / 0.5645 GB, free: 228 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.046e-05/0.3672, allocations: 11.62 kB / 0.5646 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.3672, allocations: 0 / 0.5646 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3672, allocations: 0 / 0.5646 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.3672, allocations: 0 / 0.5646 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001764/0.3673, allocations: 140.7 kB / 0.5647 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.3673, allocations: 0 / 0.5647 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.043e-05/0.3674, allocations: 12.36 kB / 0.5647 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-06/0.3674, allocations: 0 / 0.5647 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.231e-06/0.3674, allocations: 0 / 0.5647 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.3674, allocations: 0 / 0.5647 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3674, allocations: 3.938 kB / 0.5647 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001979/0.3676, allocations: 163.4 kB / 0.5649 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.723e-06/0.3676, allocations: 0 / 0.5649 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.911e-05/0.3676, allocations: 4 kB / 0.5649 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.272e-05/0.3677, allocations: 11.98 kB / 0.5649 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.765e-05/0.3677, allocations: 7.984 kB / 0.5649 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.507e-06/0.3677, allocations: 0 / 0.5649 GB, free: 15.81 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.213e-05/0.3678, allocations: 87.31 kB / 0.565 GB, free: 15.73 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3678, allocations: 4 kB / 0.565 GB, free: 15.72 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002108/0.368, allocations: 4 kB / 0.565 GB, free: 15.72 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.000488/0.3685, allocations: 0.6811 MB / 0.5656 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001503/0.3686, allocations: 32 kB / 0.5657 GB, free: 14.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.3686, allocations: 4 kB / 0.5657 GB, free: 14.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.255e-05/0.3687, allocations: 8 kB / 0.5657 GB, free: 14.97 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002072/0.3689, allocations: 4 kB / 0.5657 GB, free: 14.96 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001336/0.3702, allocations: 1.274 MB / 0.5669 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003316/0.3706, allocations: 0.6845 MB / 0.5676 GB, free: 12.9 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.845e-05/0.3706, allocations: 4 kB / 0.5676 GB, free: 12.9 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.096e-05/0.3706, allocations: 11.44 kB / 0.5676 GB, free: 12.89 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3706, allocations: 0 / 0.5676 GB, free: 12.89 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02729/0.3979, allocations: 1.661 MB / 0.5692 GB, free: 11.35 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.13, allocations: 13.7 kB / 0.5693 GB, free: 11.34 MB / 414.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/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: 14.04898985195905]