Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001689/0.001689, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001765/0.001765, allocations: 213.2 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 230.3 MB / 258 MB, free: 8.223 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2411/0.2411, allocations: 46.94 MB / 361.4 MB, free: 4.398 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-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.ZeroThresholds,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|ramp.y|greaterThreshold.y|greaterEqualThreshold.y|lessThreshold.y|lessEqualThreshold.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds") translateModel(ModelicaTest.Blocks.ZeroThresholds,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|ramp.y|greaterThreshold.y|greaterEqualThreshold.y|lessThreshold.y|lessEqualThreshold.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002373/0.002373, allocations: 75.88 kB / 0.4971 GB, free: 7.535 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3667/0.3691, allocations: 66.04 MB / 0.5616 GB, free: 4.547 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003541/0.3727, allocations: 1.735 MB / 0.5633 GB, free: 2.805 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004531/0.3731, allocations: 159.6 kB / 0.5635 GB, free: 2.648 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.773e-05/0.3732, allocations: 7.875 kB / 0.5635 GB, free: 2.641 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.67e-05/0.3732, allocations: 7.875 kB / 0.5635 GB, free: 2.633 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001445/0.3734, allocations: 11.88 kB / 0.5635 GB, free: 2.621 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003769/0.3738, allocations: 111.1 kB / 0.5636 GB, free: 2.516 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002033/0.374, allocations: 99.77 kB / 0.5637 GB, free: 2.418 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001551/0.3741, allocations: 29.56 kB / 0.5637 GB, free: 2.383 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.739e-05/0.3742, allocations: 47.84 kB / 0.5638 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.026e-05/0.3743, allocations: 47.78 kB / 0.5638 GB, free: 2.289 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.66e-05/0.3743, allocations: 8 kB / 0.5638 GB, free: 2.281 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.709e-05/0.3743, allocations: 8 kB / 0.5639 GB, free: 2.273 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.211e-05/0.3744, allocations: 19.92 kB / 0.5639 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.277e-05/0.3744, allocations: 43.78 kB / 0.5639 GB, free: 2.211 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001666/0.3746, allocations: 90.11 kB / 0.564 GB, free: 2.129 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.3746, allocations: 0 / 0.564 GB, free: 2.129 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.3746, allocations: 0 / 0.564 GB, free: 2.129 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.3746, allocations: 0 / 0.564 GB, free: 2.129 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007449/0.3753, allocations: 381.7 kB / 0.5644 GB, free: 1.723 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.3754, allocations: 8.031 kB / 0.5644 GB, free: 1.715 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.814e-05/0.3754, allocations: 12.84 kB / 0.5644 GB, free: 1.703 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002615/0.3757, allocations: 138.4 kB / 0.5645 GB, free: 1.543 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.3757, allocations: 4.375 kB / 0.5645 GB, free: 1.539 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.683e-05/0.3757, allocations: 20.36 kB / 0.5645 GB, free: 1.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003693/0.3761, allocations: 152.7 kB / 0.5647 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/0.3761, allocations: 4.188 kB / 0.5647 GB, free: 1.348 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.825e-05/0.3761, allocations: 7.938 kB / 0.5647 GB, free: 1.34 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.3761, allocations: 4 kB / 0.5647 GB, free: 1.336 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003621/0.3765, allocations: 111.8 kB / 0.5648 GB, free: 1.227 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007759/0.3773, allocations: 0.5155 MB / 0.5653 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004083/0.3777, allocations: 126.5 kB / 0.5654 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001832/0.3779, allocations: 60.8 kB / 0.5655 GB, free: 476 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.866e-05/0.3779, allocations: 0 / 0.5655 GB, free: 476 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.638e-05/0.3779, allocations: 30.56 kB / 0.5655 GB, free: 436 kB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 7.82e-07/0.3779, allocations: 0 / 0.5655 GB, free: 436 kB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006951/0.3786, allocations: 193.5 kB / 0.5657 GB, free: 236 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.918e-05/0.3787, allocations: 110.8 kB / 0.5658 GB, free: 100 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000228/0.379, allocations: 130.2 kB / 0.5659 GB, free: 15.96 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.736e-05/0.379, allocations: 29.7 kB / 0.566 GB, free: 15.92 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001346/0.3791, allocations: 108 kB / 0.5661 GB, free: 15.81 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.267e-05/0.3791, allocations: 23.94 kB / 0.5661 GB, free: 15.79 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.902e-05/0.3792, allocations: 29.7 kB / 0.5661 GB, free: 15.75 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001814/0.3794, allocations: 326.8 kB / 0.5664 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001821/0.3796, allocations: 47.95 kB / 0.5665 GB, free: 15.38 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002083/0.3798, allocations: 92.17 kB / 0.5666 GB, free: 15.27 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003403/0.3801, allocations: 114.4 kB / 0.5667 GB, free: 15.15 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3801, allocations: 0 / 0.5667 GB, free: 15.15 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004514/0.3806, allocations: 153.8 kB / 0.5668 GB, free: 15 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.3806, allocations: 8 kB / 0.5668 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.3806, allocations: 0 / 0.5668 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.3806, allocations: 64 / 0.5668 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001721/0.3808, allocations: 39.91 kB / 0.5669 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.3808, allocations: 0 / 0.5669 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001628/0.3809, allocations: 35.8 kB / 0.5669 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.372e-05/0.381, allocations: 7.984 kB / 0.5669 GB, free: 14.91 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (lessEqualThreshold.y,lessThreshold.y,greaterEqualThreshold.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 0.0001211/0.3811, allocations: 117.8 kB / 0.567 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.488e-05/0.3811, allocations: 7.953 kB / 0.567 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.927e-05/0.3812, allocations: 16.72 kB / 0.567 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.3812, allocations: 0 / 0.567 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.3812, allocations: 0 / 0.567 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.3812, allocations: 7.938 kB / 0.567 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002423/0.3814, allocations: 176.7 kB / 0.5672 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3814, allocations: 0 / 0.5672 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/0.3815, allocations: 23.97 kB / 0.5672 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.3815, allocations: 0 / 0.5672 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.3816, allocations: 3.938 kB / 0.5672 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3816, allocations: 4 kB / 0.5672 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3816, allocations: 0 / 0.5672 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004581/0.382, allocations: 247.3 kB / 0.5675 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.564e-05/0.382, allocations: 7.953 kB / 0.5675 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.189e-05/0.382, allocations: 4 kB / 0.5675 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/0.3822, allocations: 27.95 kB / 0.5675 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.8e-05/0.3823, allocations: 7.984 kB / 0.5675 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.568e-06/0.3823, allocations: 7.938 kB / 0.5675 GB, free: 14.19 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.705e-05/0.3824, allocations: 105.7 kB / 0.5676 GB, free: 14.09 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3824, allocations: 0 / 0.5676 GB, free: 14.09 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002403/0.3826, allocations: 15.94 kB / 0.5677 GB, free: 14.07 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: 4 (greaterThreshold.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0001292/0.3827, allocations: 103.2 kB / 0.5677 GB, free: 13.96 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004194/0.3831, allocations: 112.1 kB / 0.5679 GB, free: 13.85 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.3831, allocations: 0 / 0.5679 GB, free: 13.85 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001837/0.3833, allocations: 67.95 kB / 0.5679 GB, free: 13.79 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003126/0.3836, allocations: 27.42 kB / 0.5679 GB, free: 13.76 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006373/0.3843, allocations: 214 kB / 0.5682 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004048/0.3847, allocations: 0.6968 MB / 0.5688 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.445e-05/0.3848, allocations: 16.66 kB / 0.5688 GB, free: 12.79 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.489e-05/0.3848, allocations: 15.44 kB / 0.5689 GB, free: 12.77 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.3848, allocations: 0 / 0.5689 GB, free: 12.77 MB / 414.1 MB Notification: Performance of Templates: time 0.004809/0.3896, allocations: 1.493 MB / 0.5703 GB, free: 11.29 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ZeroThresholds/ZeroThresholds.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,ramp.y,greaterThreshold.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y Variables in the result:gain.k,greaterEqualThreshold.threshold,greaterEqualThreshold.y,greaterThreshold.threshold,greaterThreshold.y,lessEqualThreshold.threshold,lessEqualThreshold.y,lessThreshold.threshold,lessThreshold.y,limiterMaxZero.homotopyType,limiterMaxZero.strict,limiterMaxZero.uMax,limiterMaxZero.uMin,limiterMinZero.homotopyType,limiterMinZero.strict,limiterMinZero.uMax,limiterMinZero.uMin,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,time [Calling sys.exit(0), Time elapsed: 5.234939185902476]