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.001551/0.001551, allocations: 112.2 kB / 21.19 MB, free: 0.7539 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.001684/0.001684, allocations: 213.7 kB / 24.49 MB, free: 4.137 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.37/1.37, 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.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.217/0.217, allocations: 46.93 MB / 361.6 MB, free: 4.227 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: 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.001916/0.001916, allocations: 67.89 kB / 0.4974 GB, free: 7.363 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2977/0.2996, allocations: 66.03 MB / 0.5619 GB, free: 4.363 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002765/0.3024, allocations: 1.476 MB / 0.5633 GB, free: 2.875 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008348/0.3032, allocations: 498.7 kB / 0.5638 GB, free: 2.383 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.642e-05/0.3032, allocations: 4 kB / 0.5638 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.634e-05/0.3033, allocations: 0 / 0.5638 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.676e-05/0.3033, allocations: 7.875 kB / 0.5638 GB, free: 2.371 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002038/0.3035, allocations: 27.97 kB / 0.5638 GB, free: 2.344 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001026/0.3036, allocations: 43.78 kB / 0.5639 GB, free: 2.301 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.729e-05/0.3037, allocations: 4 kB / 0.5639 GB, free: 2.297 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001122/0.3038, allocations: 19.98 kB / 0.5639 GB, free: 2.277 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.019e-05/0.3039, allocations: 19.92 kB / 0.5639 GB, free: 2.258 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.108e-05/0.3039, allocations: 3.938 kB / 0.5639 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.844e-05/0.3039, allocations: 8 kB / 0.5639 GB, free: 2.246 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.808e-05/0.3039, allocations: 15.97 kB / 0.5639 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.468e-05/0.304, allocations: 11.94 kB / 0.5639 GB, free: 2.219 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001039/0.3041, allocations: 39.5 kB / 0.564 GB, free: 2.184 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3041, allocations: 0 / 0.564 GB, free: 2.184 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.3041, allocations: 0 / 0.564 GB, free: 2.184 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.3041, allocations: 0 / 0.564 GB, free: 2.184 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.0004271/0.3045, allocations: 284.8 kB / 0.5642 GB, free: 1.879 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.3045, allocations: 12.03 kB / 0.5643 GB, free: 1.867 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001399/0.3047, allocations: 16.92 kB / 0.5643 GB, free: 1.852 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001916/0.3049, allocations: 114.5 kB / 0.5644 GB, free: 1.715 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.119e-06/0.3049, allocations: 384 / 0.5644 GB, free: 1.715 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.458e-05/0.3049, allocations: 4.375 kB / 0.5644 GB, free: 1.711 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001508/0.305, allocations: 59.7 kB / 0.5644 GB, free: 1.641 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.3051, allocations: 0 / 0.5644 GB, free: 1.641 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.967e-06/0.3051, allocations: 0 / 0.5644 GB, free: 1.641 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.3051, allocations: 7.938 kB / 0.5645 GB, free: 1.633 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.27e-05/0.3052, allocations: 19.98 kB / 0.5645 GB, free: 1.613 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003469/0.3055, allocations: 239.9 kB / 0.5647 GB, free: 1.336 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.368e-05/0.3056, allocations: 30.56 kB / 0.5647 GB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.062e-05/0.3056, allocations: 20.91 kB / 0.5647 GB, free: 1.273 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.178e-05/0.3056, allocations: 0 / 0.5647 GB, free: 1.273 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.494e-05/0.3057, allocations: 38.5 kB / 0.5648 GB, free: 1.227 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 8.32e-07/0.3057, allocations: 3.938 kB / 0.5648 GB, free: 1.223 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002331/0.3059, allocations: 61.67 kB / 0.5648 GB, free: 1.156 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.715e-05/0.306, allocations: 81.11 kB / 0.5649 GB, free: 1.059 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.551e-05/0.306, allocations: 105.8 kB / 0.565 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.162e-05/0.3061, allocations: 29.7 kB / 0.5651 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.563e-05/0.3061, allocations: 92.25 kB / 0.5651 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.3061, allocations: 11.89 kB / 0.5652 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.295e-05/0.3062, allocations: 13.72 kB / 0.5652 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.3063, allocations: 322.8 kB / 0.5655 GB, free: 472 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.463e-05/0.3064, allocations: 4 kB / 0.5655 GB, free: 468 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.701e-05/0.3064, allocations: 29.64 kB / 0.5655 GB, free: 432 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.19e-05/0.3065, allocations: 32.81 kB / 0.5655 GB, free: 396 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.3065, allocations: 0 / 0.5655 GB, free: 396 kB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001293/0.3066, allocations: 61.67 kB / 0.5656 GB, free: 328 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.3066, allocations: 4 kB / 0.5656 GB, free: 324 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.3066, allocations: 4 kB / 0.5656 GB, free: 320 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.3067, allocations: 0 / 0.5656 GB, free: 320 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.873e-05/0.3067, allocations: 0 / 0.5656 GB, free: 320 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.3067, allocations: 7.938 kB / 0.5656 GB, free: 312 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.658e-05/0.3068, allocations: 11.94 kB / 0.5656 GB, free: 300 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.772e-06/0.3068, allocations: 8 kB / 0.5656 GB, free: 292 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.448e-05/0.3069, allocations: 125.7 kB / 0.5657 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.831e-05/0.3069, allocations: 4 kB / 0.5658 GB, free: 152 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.629e-05/0.3069, allocations: 3.625 kB / 0.5658 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.3069, allocations: 3.984 kB / 0.5658 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.3069, allocations: 0 / 0.5658 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-06/0.3069, allocations: 0 / 0.5658 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001808/0.3071, allocations: 140.8 kB / 0.5659 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.3071, allocations: 0 / 0.5659 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.997e-05/0.3072, allocations: 8 kB / 0.5659 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.3072, allocations: 0 / 0.5659 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.203e-06/0.3072, allocations: 0 / 0.5659 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.3072, allocations: 384 / 0.5659 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.3072, allocations: 0 / 0.5659 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001779/0.3073, allocations: 155.4 kB / 0.5661 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.628e-06/0.3073, allocations: 4 kB / 0.5661 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.728e-05/0.3074, allocations: 3.969 kB / 0.5661 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.745e-05/0.3075, allocations: 19.92 kB / 0.5661 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.088e-05/0.3075, allocations: 3.984 kB / 0.5661 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.507e-06/0.3075, allocations: 0 / 0.5661 GB, free: 15.75 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.389e-05/0.3076, allocations: 91.27 kB / 0.5662 GB, free: 15.66 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3076, allocations: 0 / 0.5662 GB, free: 15.66 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002152/0.3078, allocations: 8 kB / 0.5662 GB, free: 15.65 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 8.491e-05/0.3079, allocations: 91.25 kB / 0.5663 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001478/0.308, allocations: 31.98 kB / 0.5663 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.308, allocations: 0 / 0.5663 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.774e-05/0.308, allocations: 15.92 kB / 0.5663 GB, free: 15.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002088/0.3083, allocations: 7.938 kB / 0.5663 GB, free: 15.5 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003101/0.3086, allocations: 152.6 kB / 0.5665 GB, free: 15.32 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003007/0.3089, allocations: 0.6768 MB / 0.5671 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.281e-05/0.3089, allocations: 15.44 kB / 0.5671 GB, free: 14.6 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3089, allocations: 0 / 0.5671 GB, free: 14.6 MB / 414.1 MB Notification: Performance of Templates: time 0.002091/0.311, allocations: 0.673 MB / 0.5678 GB, free: 13.93 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/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: 6.892600701190531]