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.002085/0.002085, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.002389/0.002389, allocations: 203.7 kB / 23.72 MB, free: 4.391 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.506/1.506, allocations: 230.5 MB / 257.4 MB, free: 7.762 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.2749/0.2749, allocations: 46.93 MB / 360.8 MB, free: 3.91 MB / 286.1 MB " [Timeout remaining time 179] 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: 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_trunk_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_trunk_ModelicaTest.Blocks.ZeroThresholds") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002657/0.002657, allocations: 75.88 kB / 0.4966 GB, free: 7.027 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3847/0.3873, allocations: 66.09 MB / 0.5612 GB, free: 3.934 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003004/0.3903, allocations: 1.684 MB / 0.5628 GB, free: 2.242 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004312/0.3908, allocations: 155.6 kB / 0.563 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.046e-05/0.3908, allocations: 0 / 0.563 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.529e-05/0.3909, allocations: 11.86 kB / 0.563 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.23e-05/0.3909, allocations: 23.73 kB / 0.563 GB, free: 2.055 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003646/0.3913, allocations: 95.25 kB / 0.5631 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001865/0.3915, allocations: 115.8 kB / 0.5632 GB, free: 1.852 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/0.3916, allocations: 25.56 kB / 0.5632 GB, free: 1.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.459e-05/0.3917, allocations: 35.92 kB / 0.5633 GB, free: 1.785 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.835e-05/0.3918, allocations: 35.78 kB / 0.5633 GB, free: 1.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.748e-05/0.3918, allocations: 8 kB / 0.5633 GB, free: 1.742 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.029e-05/0.3918, allocations: 12 kB / 0.5633 GB, free: 1.73 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.091e-05/0.3919, allocations: 23.84 kB / 0.5633 GB, free: 1.707 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.445e-05/0.3919, allocations: 39.8 kB / 0.5634 GB, free: 1.668 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001435/0.392, allocations: 93.95 kB / 0.5635 GB, free: 1.582 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3921, allocations: 0 / 0.5635 GB, free: 1.582 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3921, allocations: 0 / 0.5635 GB, free: 1.582 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.288e-06/0.3921, allocations: 4 kB / 0.5635 GB, free: 1.578 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.0007536/0.3928, allocations: 373.8 kB / 0.5638 GB, free: 1.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.3929, allocations: 8.031 kB / 0.5638 GB, free: 1.172 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.41e-05/0.3929, allocations: 12.84 kB / 0.5638 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003/0.3932, allocations: 148.4 kB / 0.564 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.3932, allocations: 12.36 kB / 0.564 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.335e-05/0.3932, allocations: 12.38 kB / 0.564 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000413/0.3936, allocations: 201.8 kB / 0.5642 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.3937, allocations: 192 / 0.5642 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.933e-05/0.3937, allocations: 7.938 kB / 0.5642 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.3937, allocations: 4 kB / 0.5642 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003509/0.394, allocations: 111.8 kB / 0.5643 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006688/0.3947, allocations: 476.5 kB / 0.5648 GB, free: 116 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004362/0.3951, allocations: 138.4 kB / 0.5649 GB, free: 15.97 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001711/0.3953, allocations: 52.84 kB / 0.565 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.544e-05/0.3953, allocations: 4.078 kB / 0.565 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.139e-05/0.3954, allocations: 42.55 kB / 0.565 GB, free: 15.86 MB / 414.1 MB Notification: Performance of pre-optimization done (n=8): time 1.102e-06/0.3954, allocations: 0 / 0.565 GB, free: 15.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006119/0.396, allocations: 181.5 kB / 0.5652 GB, free: 15.68 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.848e-05/0.3961, allocations: 110.8 kB / 0.5653 GB, free: 15.54 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001258/0.3962, allocations: 136.8 kB / 0.5654 GB, free: 15.4 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.158e-05/0.3962, allocations: 33.7 kB / 0.5654 GB, free: 15.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.525e-05/0.3963, allocations: 108.1 kB / 0.5655 GB, free: 15.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.164e-05/0.3963, allocations: 19.86 kB / 0.5656 GB, free: 15.23 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.957e-05/0.3963, allocations: 25.7 kB / 0.5656 GB, free: 15.2 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.3965, allocations: 330.8 kB / 0.5659 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000172/0.3967, allocations: 47.95 kB / 0.5659 GB, free: 14.82 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002264/0.3969, allocations: 135.6 kB / 0.5661 GB, free: 14.66 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003344/0.3972, allocations: 114.5 kB / 0.5662 GB, free: 14.54 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3972, allocations: 0 / 0.5662 GB, free: 14.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004039/0.3976, allocations: 157.5 kB / 0.5663 GB, free: 14.38 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.3976, allocations: 4 kB / 0.5663 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.3976, allocations: 4 kB / 0.5663 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.3977, allocations: 3.938 kB / 0.5664 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001482/0.3978, allocations: 23.97 kB / 0.5664 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.3978, allocations: 4 kB / 0.5664 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001391/0.398, allocations: 35.86 kB / 0.5664 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.398, allocations: 3.984 kB / 0.5664 GB, free: 14.3 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.00011/0.3981, allocations: 129.8 kB / 0.5665 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.183e-05/0.3981, allocations: 7.953 kB / 0.5665 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.508e-05/0.3981, allocations: 16.72 kB / 0.5666 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.3981, allocations: 0 / 0.5666 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3982, allocations: 0 / 0.5666 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.3982, allocations: 0 / 0.5666 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001824/0.3983, allocations: 141.2 kB / 0.5667 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3983, allocations: 0 / 0.5667 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001091/0.3984, allocations: 20.17 kB / 0.5667 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.3985, allocations: 7.984 kB / 0.5667 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.296e-06/0.3985, allocations: 3.938 kB / 0.5667 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3985, allocations: 0 / 0.5667 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.3985, allocations: 0 / 0.5667 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004431/0.3989, allocations: 251.6 kB / 0.567 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.583e-05/0.3989, allocations: 7.953 kB / 0.567 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.953e-05/0.3989, allocations: 0 / 0.567 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001554/0.3991, allocations: 27.97 kB / 0.567 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.857e-05/0.3991, allocations: 11.98 kB / 0.567 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.27e-06/0.3992, allocations: 0 / 0.567 GB, free: 13.63 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.116e-05/0.3992, allocations: 107.2 kB / 0.5671 GB, free: 13.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3992, allocations: 0 / 0.5671 GB, free: 13.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002345/0.3995, allocations: 23.94 kB / 0.5671 GB, free: 13.5 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.000103/0.3996, allocations: 91.23 kB / 0.5672 GB, free: 13.4 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004282/0.4, allocations: 123.8 kB / 0.5673 GB, free: 13.28 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.4, allocations: 0 / 0.5673 GB, free: 13.28 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001809/0.4002, allocations: 59.94 kB / 0.5674 GB, free: 13.22 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002916/0.4005, allocations: 26.45 kB / 0.5674 GB, free: 13.2 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005979/0.4011, allocations: 214.1 kB / 0.5676 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.677e-05/0.4012, allocations: 81.33 kB / 0.5677 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.419e-05/0.4012, allocations: 16.59 kB / 0.5677 GB, free: 12.85 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.814e-05/0.4013, allocations: 19.44 kB / 0.5677 GB, free: 12.83 MB / 414.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4013, allocations: 0 / 0.5677 GB, free: 12.83 MB / 414.1 MB Notification: Performance of Templates: time 0.004677/0.406, allocations: 1.593 MB / 0.5693 GB, free: 11.25 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.makefile [Timeout 660] (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 & ./ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_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,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.415448764339089]