Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001605/0.001605, allocations: 110 kB / 20.43 MB, free: 1.453 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.00161/0.00161, allocations: 213.4 kB / 23.74 MB, free: 4.66 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.462/1.462, allocations: 230.5 MB / 257.4 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2365/0.2365, allocations: 46.93 MB / 360.8 MB, free: 4.145 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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: "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002578/0.002578, allocations: 83.88 kB / 0.4962 GB, free: 7.738 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3899/0.3925, allocations: 66.09 MB / 0.5607 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003395/0.3959, allocations: 1.735 MB / 0.5624 GB, free: 2.512 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004313/0.3963, allocations: 163.5 kB / 0.5626 GB, free: 2.352 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.254e-05/0.3964, allocations: 0 / 0.5626 GB, free: 2.352 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.342e-05/0.3964, allocations: 11.86 kB / 0.5626 GB, free: 2.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.626e-05/0.3965, allocations: 11.88 kB / 0.5626 GB, free: 2.328 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003507/0.3968, allocations: 99.19 kB / 0.5627 GB, free: 2.234 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000199/0.397, allocations: 111.7 kB / 0.5628 GB, free: 2.125 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.3972, allocations: 27.41 kB / 0.5628 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.731e-05/0.3973, allocations: 43.86 kB / 0.5629 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.983e-05/0.3973, allocations: 47.77 kB / 0.5629 GB, free: 2.004 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.705e-05/0.3974, allocations: 8 kB / 0.5629 GB, free: 1.996 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.798e-05/0.3974, allocations: 8 kB / 0.5629 GB, free: 1.988 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.194e-05/0.3974, allocations: 23.92 kB / 0.563 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.446e-05/0.3975, allocations: 39.8 kB / 0.563 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001583/0.3976, allocations: 95.5 kB / 0.5631 GB, free: 1.832 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3976, allocations: 0 / 0.5631 GB, free: 1.832 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3976, allocations: 0 / 0.5631 GB, free: 1.832 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.3976, allocations: 0 / 0.5631 GB, free: 1.832 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.000711/0.3983, allocations: 377.8 kB / 0.5634 GB, free: 1.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.3984, allocations: 8.031 kB / 0.5634 GB, free: 1.422 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.015e-05/0.3984, allocations: 38.75 kB / 0.5635 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.83e-05/0.3985, allocations: 12.84 kB / 0.5635 GB, free: 1.363 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002439/0.3987, allocations: 142.3 kB / 0.5636 GB, free: 1.199 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.3987, allocations: 8.375 kB / 0.5636 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.489e-05/0.3987, allocations: 8.375 kB / 0.5636 GB, free: 1.184 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003686/0.3991, allocations: 154.5 kB / 0.5638 GB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.3991, allocations: 7.875 kB / 0.5638 GB, free: 1.004 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.3991, allocations: 4 kB / 0.5638 GB, free: 1 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.431e-06/0.3992, allocations: 4 kB / 0.5638 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003654/0.3995, allocations: 103.9 kB / 0.5639 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007352/0.4003, allocations: 0.5155 MB / 0.5644 GB, free: 336 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004035/0.4007, allocations: 126.5 kB / 0.5645 GB, free: 200 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001809/0.4008, allocations: 64.77 kB / 0.5646 GB, free: 132 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.874e-05/0.4009, allocations: 8 kB / 0.5646 GB, free: 124 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.4009, allocations: 30.56 kB / 0.5646 GB, free: 84 kB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 4.749e-06/0.4009, allocations: 3.984 kB / 0.5646 GB, free: 80 kB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006535/0.4016, allocations: 181.7 kB / 0.5648 GB, free: 15.89 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.595e-05/0.4016, allocations: 102.8 kB / 0.5649 GB, free: 15.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.4018, allocations: 148.8 kB / 0.5651 GB, free: 15.61 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.319e-05/0.4018, allocations: 25.7 kB / 0.5651 GB, free: 15.58 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.139e-05/0.4019, allocations: 112.1 kB / 0.5652 GB, free: 15.46 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.133e-05/0.4019, allocations: 27.7 kB / 0.5652 GB, free: 15.44 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.651e-05/0.402, allocations: 33.7 kB / 0.5652 GB, free: 15.4 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.4021, allocations: 322.8 kB / 0.5655 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001762/0.4023, allocations: 51.89 kB / 0.5656 GB, free: 15.03 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002065/0.4025, allocations: 88.23 kB / 0.5657 GB, free: 14.93 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003312/0.4028, allocations: 110.5 kB / 0.5658 GB, free: 14.81 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.4028, allocations: 0 / 0.5658 GB, free: 14.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004017/0.4032, allocations: 149.5 kB / 0.5659 GB, free: 14.66 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.4033, allocations: 8 kB / 0.5659 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.4033, allocations: 0 / 0.5659 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.4033, allocations: 64 / 0.5659 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001599/0.4034, allocations: 27.97 kB / 0.566 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.4034, allocations: 4 kB / 0.566 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001498/0.4036, allocations: 43.8 kB / 0.566 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.345e-06/0.4036, allocations: 0 / 0.566 GB, free: 14.57 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.0001114/0.4037, allocations: 127.1 kB / 0.5661 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.454e-05/0.4037, allocations: 7.953 kB / 0.5661 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.675e-05/0.4038, allocations: 20.72 kB / 0.5662 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.4038, allocations: 0 / 0.5662 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.4038, allocations: 0 / 0.5662 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.674e-05/0.4038, allocations: 3.938 kB / 0.5662 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000232/0.404, allocations: 176.7 kB / 0.5663 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.404, allocations: 0 / 0.5663 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001259/0.4042, allocations: 27.97 kB / 0.5664 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.4042, allocations: 0 / 0.5664 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.4042, allocations: 0 / 0.5664 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.4042, allocations: 0 / 0.5664 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4042, allocations: 4 kB / 0.5664 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000453/0.4046, allocations: 239.7 kB / 0.5666 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.487e-05/0.4047, allocations: 7.891 kB / 0.5666 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.383e-05/0.4047, allocations: 12 kB / 0.5666 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.4048, allocations: 23.95 kB / 0.5666 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.253e-05/0.4049, allocations: 15.92 kB / 0.5666 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.815e-06/0.4049, allocations: 4 kB / 0.5667 GB, free: 13.85 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.581e-05/0.405, allocations: 101.8 kB / 0.5667 GB, free: 13.75 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.405, allocations: 0 / 0.5667 GB, free: 13.75 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002449/0.4053, allocations: 23.88 kB / 0.5668 GB, free: 13.73 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.000827/0.4061, allocations: 0.7711 MB / 0.5675 GB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004145/0.4065, allocations: 115.8 kB / 0.5676 GB, free: 12.82 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.4065, allocations: 4 kB / 0.5676 GB, free: 12.81 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001825/0.4067, allocations: 55.89 kB / 0.5677 GB, free: 12.76 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003365/0.407, allocations: 26.27 kB / 0.5677 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002452/0.4095, allocations: 1.661 MB / 0.5693 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003747/0.4099, allocations: 0.6924 MB / 0.57 GB, free: 10.26 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.759e-05/0.4099, allocations: 16.66 kB / 0.57 GB, free: 10.25 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.89e-05/0.41, allocations: 27.44 kB / 0.5701 GB, free: 10.22 MB / 414.1 MB Notification: Performance of SimCode: time 4.4e-07/0.41, allocations: 0 / 0.5701 GB, free: 10.22 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03118/0.4412, allocations: 2.913 MB / 0.5729 GB, free: 7.398 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.76, allocations: 10.55 kB / 0.5729 GB, free: 7.391 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds_fmu --startTime=0 --stopTime=1 --stepSize=0.00019988 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ZeroThresholds/ZeroThresholds.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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,gain.u,gain.y,greaterEqualThreshold.threshold,greaterEqualThreshold.u,greaterEqualThreshold.y,greaterThreshold.threshold,greaterThreshold.u,greaterThreshold.y,lessEqualThreshold.threshold,lessEqualThreshold.u,lessEqualThreshold.y,lessThreshold.threshold,lessThreshold.u,lessThreshold.y,limiterMaxZero.homotopyType,limiterMaxZero.strict,limiterMaxZero.u,limiterMaxZero.uMax,limiterMaxZero.uMin,limiterMaxZero.y,limiterMinZero.homotopyType,limiterMinZero.strict,limiterMinZero.u,limiterMinZero.uMax,limiterMinZero.uMin,limiterMinZero.y,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,time [Calling sys.exit(0), Time elapsed: 14.781346802134067]