Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001172/0.001172, allocations: 89.05 kB / 9.989 MB, free: 0.6992 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001934/0.003107, allocations: 452 kB / 10.43 MB, free: 264 kB / 10.45 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.001264/0.001264, allocations: 161.1 kB / 11.33 MB, free: 2.84 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001655/0.002919, allocations: 483.5 kB / 11.8 MB, free: 2.363 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8153/0.8153, allocations: 158.6 MB / 171.2 MB, free: 2.508 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1321/0.9473, allocations: 49.5 MB / 220.7 MB, free: 1.359 MB / 218.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1183/0.1183, allocations: 32.35 MB / 253.8 MB, free: 228 kB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02099/0.1393, allocations: 12.31 MB / 266.1 MB, free: 3.875 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 267.4 MB, free: 2.578 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.174e-05/2.344e-05, allocations: 6.25 kB / 267.4 MB, free: 2.57 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002671/0.002694, allocations: 1.535 MB / 268.9 MB, free: 1.016 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006953/0.003389, allocations: 463.7 kB / 269.4 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.149e-05/0.003421, allocations: 0 / 269.4 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.368e-05/0.003445, allocations: 3.984 kB / 269.4 MB, free: 0.5508 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 3.235e-05/0.003477, allocations: 7.875 kB / 269.4 MB, free: 0.543 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001035/0.00358, allocations: 15.98 kB / 269.4 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 7.57e-05/0.003656, allocations: 35.86 kB / 269.4 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.368e-05/0.00373, allocations: 7.984 kB / 269.4 MB, free: 496 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.003836, allocations: 23.98 kB / 269.5 MB, free: 472 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.343e-05/0.003899, allocations: 19.92 kB / 269.5 MB, free: 452 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.021e-05/0.00392, allocations: 7.938 kB / 269.5 MB, free: 444 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.016e-05/0.00393, allocations: 4 kB / 269.5 MB, free: 440 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.859e-05/0.003948, allocations: 4 kB / 269.5 MB, free: 436 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.01e-05/0.003969, allocations: 8 kB / 269.5 MB, free: 428 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 8.717e-05/0.004056, allocations: 23.84 kB / 269.5 MB, free: 404 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.685e-05/0.004073, allocations: 0 / 269.5 MB, free: 404 kB / 266.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.004075, allocations: 4 kB / 269.5 MB, free: 400 kB / 266.7 MB Notification: Performance of Transformations before backend: time 9.478e-06/0.004084, allocations: 0 / 269.5 MB, free: 400 kB / 266.7 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.0004133/0.004497, allocations: 248.5 kB / 269.8 MB, free: 128 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.004535, allocations: 8.031 kB / 269.8 MB, free: 120 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.769e-05/0.004572, allocations: 12.92 kB / 269.8 MB, free: 108 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.00469, allocations: 113.8 kB / 269.9 MB, free: 15.97 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.033e-05/0.0047, allocations: 384 / 269.9 MB, free: 15.97 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.559e-05/0.004716, allocations: 4.375 kB / 269.9 MB, free: 15.96 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001497/0.004866, allocations: 98.3 kB / 270 MB, free: 15.85 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.004875, allocations: 4.172 kB / 270 MB, free: 15.84 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.624e-06/0.004882, allocations: 384 / 270 MB, free: 15.84 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.004889, allocations: 3.938 kB / 270 MB, free: 15.84 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.237e-05/0.004911, allocations: 4 kB / 270 MB, free: 15.84 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002395/0.00515, allocations: 148.3 kB / 270.2 MB, free: 15.68 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.335e-05/0.005204, allocations: 22.58 kB / 270.2 MB, free: 15.64 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.016e-05/0.005224, allocations: 20.83 kB / 270.2 MB, free: 15.62 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.005237, allocations: 0 / 270.2 MB, free: 15.62 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.005261, allocations: 30.56 kB / 270.2 MB, free: 15.58 MB / 282.7 MB Notification: Performance of pre-optimization done (n=2): time 7.31e-07/0.005261, allocations: 0 / 270.2 MB, free: 15.58 MB / 282.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001261/0.005387, allocations: 37.64 kB / 270.3 MB, free: 15.54 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.764e-05/0.005415, allocations: 59.39 kB / 270.3 MB, free: 15.47 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.956e-05/0.005485, allocations: 114.7 kB / 270.4 MB, free: 15.34 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.005505, allocations: 29.7 kB / 270.5 MB, free: 15.31 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.784e-05/0.005542, allocations: 88.22 kB / 270.6 MB, free: 15.22 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.933e-05/0.005562, allocations: 7.938 kB / 270.6 MB, free: 15.21 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.996e-05/0.005592, allocations: 13.72 kB / 270.6 MB, free: 15.19 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.982e-05/0.005681, allocations: 318.8 kB / 270.9 MB, free: 14.87 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.309e-05/0.005695, allocations: 7.938 kB / 270.9 MB, free: 14.86 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.364e-05/0.005728, allocations: 43.42 kB / 270.9 MB, free: 14.81 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.39e-05/0.005762, allocations: 12.84 kB / 270.9 MB, free: 14.79 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.005765, allocations: 4 kB / 271 MB, free: 14.79 MB / 282.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.744e-05/0.005832, allocations: 37.69 kB / 271 MB, free: 14.75 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.005845, allocations: 4 kB / 271 MB, free: 14.74 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.005849, allocations: 0 / 271 MB, free: 14.74 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.005863, allocations: 7.969 kB / 271 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.912e-05/0.005942, allocations: 7.938 kB / 271 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.905e-06/0.005945, allocations: 0 / 271 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.08e-05/0.005976, allocations: 7.984 kB / 271 MB, free: 14.72 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.005983, allocations: 4 kB / 271 MB, free: 14.71 MB / 282.7 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 6.397e-05/0.006047, allocations: 105.8 kB / 271.1 MB, free: 14.6 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.253e-05/0.006069, allocations: 4 kB / 271.1 MB, free: 14.6 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.679e-05/0.006096, allocations: 7.625 kB / 271.1 MB, free: 14.59 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.006102, allocations: 11.92 kB / 271.1 MB, free: 14.58 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.006103, allocations: 0 / 271.1 MB, free: 14.58 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.006106, allocations: 4 kB / 271.2 MB, free: 14.58 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001117/0.006217, allocations: 73.84 kB / 271.2 MB, free: 14.49 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.006219, allocations: 0 / 271.2 MB, free: 14.49 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.694e-05/0.006256, allocations: 7.984 kB / 271.2 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.881e-06/0.006262, allocations: 0 / 271.2 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.006265, allocations: 0 / 271.2 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.999e-06/0.00627, allocations: 3.938 kB / 271.2 MB, free: 14.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.006274, allocations: 7.938 kB / 271.2 MB, free: 14.47 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.006275, allocations: 0 / 271.2 MB, free: 14.47 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001172/0.006392, allocations: 131.6 kB / 271.4 MB, free: 14.32 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.904e-05/0.006411, allocations: 8.031 kB / 271.4 MB, free: 14.32 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.55e-05/0.006477, allocations: 11.97 kB / 271.4 MB, free: 14.3 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.202e-05/0.006519, allocations: 11.92 kB / 271.4 MB, free: 14.29 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.568e-06/0.006523, allocations: 0 / 271.4 MB, free: 14.29 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.854e-05/0.006552, allocations: 16.84 kB / 271.4 MB, free: 14.27 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006552, allocations: 0 / 271.4 MB, free: 14.27 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001941/0.006746, allocations: 4 kB / 271.4 MB, free: 14.27 MB / 282.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: 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.0001112/0.006857, allocations: 80.41 kB / 271.5 MB, free: 14.18 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.272e-05/0.00695, allocations: 12.86 kB / 271.5 MB, free: 14.17 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.006956, allocations: 4 kB / 271.5 MB, free: 14.16 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.75e-05/0.006983, allocations: 12.86 kB / 271.5 MB, free: 14.15 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001759/0.007159, allocations: 7.984 kB / 271.5 MB, free: 14.14 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008783/0.008038, allocations: 131.5 kB / 271.7 MB, free: 13.99 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.066e-05/0.008088, allocations: 59.34 kB / 271.7 MB, free: 13.91 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.949e-05/0.008118, allocations: 3.938 kB / 271.7 MB, free: 13.91 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.902e-05/0.008187, allocations: 55.47 kB / 271.8 MB, free: 13.85 MB / 282.7 MB Notification: Performance of SimCode: time 7.61e-07/0.008188, allocations: 4 kB / 271.8 MB, free: 13.85 MB / 282.7 MB Notification: Performance of Templates: time 0.002667/0.01085, allocations: 0.7001 MB / 272.5 MB, free: 13.15 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.3790482468903065]