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.001537/0.001537, allocations: 107.1 kB / 20.44 MB, free: 1.195 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.001946/0.001946, allocations: 212.9 kB / 23.73 MB, free: 4.406 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.415/1.415, allocations: 230.5 MB / 257.4 MB, free: 7.773 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.2209/0.2209, allocations: 46.95 MB / 360.8 MB, free: 3.949 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.002364/0.002364, allocations: 79.88 kB / 0.4961 GB, free: 7.578 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3218/0.3242, allocations: 66.09 MB / 0.5607 GB, free: 4.043 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003038/0.3272, allocations: 1.688 MB / 0.5623 GB, free: 2.348 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004098/0.3276, allocations: 155.6 kB / 0.5625 GB, free: 2.195 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.351e-05/0.3277, allocations: 7.875 kB / 0.5625 GB, free: 2.188 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.749e-05/0.3277, allocations: 11.86 kB / 0.5625 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.865e-05/0.3278, allocations: 15.86 kB / 0.5625 GB, free: 2.16 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003462/0.3282, allocations: 95.81 kB / 0.5626 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001703/0.3283, allocations: 107.8 kB / 0.5627 GB, free: 1.961 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001276/0.3285, allocations: 31.39 kB / 0.5627 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.623e-05/0.3285, allocations: 39.86 kB / 0.5628 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.545e-05/0.3286, allocations: 35.84 kB / 0.5628 GB, free: 1.852 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.126e-05/0.3286, allocations: 8 kB / 0.5628 GB, free: 1.844 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.056e-05/0.3286, allocations: 12 kB / 0.5628 GB, free: 1.832 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.888e-05/0.3287, allocations: 23.91 kB / 0.5629 GB, free: 1.809 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.97e-05/0.3287, allocations: 39.8 kB / 0.5629 GB, free: 1.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000154/0.3289, allocations: 91.56 kB / 0.563 GB, free: 1.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.3289, allocations: 0 / 0.563 GB, free: 1.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3289, allocations: 0 / 0.563 GB, free: 1.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.3289, allocations: 0 / 0.563 GB, free: 1.68 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.0007326/0.3296, allocations: 381.7 kB / 0.5633 GB, free: 1.273 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.3297, allocations: 8.031 kB / 0.5634 GB, free: 1.266 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.699e-05/0.3297, allocations: 38.75 kB / 0.5634 GB, free: 1.219 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.867e-05/0.3298, allocations: 12.84 kB / 0.5634 GB, free: 1.207 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002918/0.33, allocations: 138.4 kB / 0.5635 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/0.3301, allocations: 8.375 kB / 0.5635 GB, free: 1.039 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.925e-05/0.3301, allocations: 4.375 kB / 0.5635 GB, free: 1.035 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004228/0.3305, allocations: 213.8 kB / 0.5637 GB, free: 0.793 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.3305, allocations: 7.938 kB / 0.5638 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.3305, allocations: 0 / 0.5638 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.435e-06/0.3305, allocations: 0 / 0.5638 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003854/0.3309, allocations: 122.2 kB / 0.5639 GB, free: 0.668 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007331/0.3317, allocations: 500 kB / 0.5643 GB, free: 132 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004506/0.3321, allocations: 130.5 kB / 0.5645 GB, free: 15.99 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001865/0.3323, allocations: 60.83 kB / 0.5645 GB, free: 15.93 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.342e-05/0.3323, allocations: 0 / 0.5645 GB, free: 15.93 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/0.3324, allocations: 38.64 kB / 0.5646 GB, free: 15.88 MB / 414.1 MB Notification: Performance of pre-optimization done (n=8): time 9.32e-07/0.3324, allocations: 0 / 0.5646 GB, free: 15.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006712/0.333, allocations: 189.7 kB / 0.5648 GB, free: 15.69 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.003e-05/0.3331, allocations: 106.8 kB / 0.5649 GB, free: 15.56 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001433/0.3332, allocations: 148.8 kB / 0.565 GB, free: 15.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.263e-05/0.3333, allocations: 29.64 kB / 0.565 GB, free: 15.37 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.235e-05/0.3334, allocations: 108.1 kB / 0.5651 GB, free: 15.26 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.351e-05/0.3334, allocations: 19.86 kB / 0.5651 GB, free: 15.24 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.783e-05/0.3334, allocations: 33.7 kB / 0.5652 GB, free: 15.2 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.3336, allocations: 318.8 kB / 0.5655 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001834/0.3338, allocations: 51.95 kB / 0.5655 GB, free: 14.83 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002423/0.334, allocations: 135.6 kB / 0.5657 GB, free: 14.67 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003438/0.3344, allocations: 110.5 kB / 0.5658 GB, free: 14.55 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.3344, allocations: 4 kB / 0.5658 GB, free: 14.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004121/0.3348, allocations: 153.4 kB / 0.5659 GB, free: 14.39 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.3348, allocations: 8 kB / 0.5659 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.3348, allocations: 64 / 0.5659 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.3348, allocations: 4 kB / 0.5659 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001576/0.335, allocations: 31.91 kB / 0.566 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.335, allocations: 0 / 0.566 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001458/0.3351, allocations: 39.8 kB / 0.566 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.253e-05/0.3351, allocations: 4 kB / 0.566 GB, free: 14.31 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.0001138/0.3352, allocations: 117.8 kB / 0.5661 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.402e-05/0.3353, allocations: 7.953 kB / 0.5661 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.113e-05/0.3353, allocations: 20.72 kB / 0.5661 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.3353, allocations: 0 / 0.5661 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.3353, allocations: 4 kB / 0.5661 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3353, allocations: 3.938 kB / 0.5661 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002218/0.3356, allocations: 164.7 kB / 0.5663 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.3356, allocations: 0 / 0.5663 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/0.3357, allocations: 23.97 kB / 0.5663 GB, free: 13.92 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.3357, allocations: 3.938 kB / 0.5663 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.3357, allocations: 0 / 0.5663 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.3357, allocations: 4 kB / 0.5663 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.3357, allocations: 0 / 0.5663 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004711/0.3362, allocations: 247.3 kB / 0.5666 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.01e-05/0.3362, allocations: 11.89 kB / 0.5666 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.115e-05/0.3362, allocations: 0 / 0.5666 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001606/0.3364, allocations: 27.97 kB / 0.5666 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.554e-05/0.3364, allocations: 15.92 kB / 0.5666 GB, free: 13.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.661e-06/0.3364, allocations: 192 / 0.5666 GB, free: 13.6 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.046e-05/0.3365, allocations: 109.5 kB / 0.5667 GB, free: 13.49 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3365, allocations: 3.938 kB / 0.5667 GB, free: 13.49 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000255/0.3368, allocations: 16 kB / 0.5667 GB, free: 13.47 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.0008023/0.3376, allocations: 0.767 MB / 0.5675 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004261/0.338, allocations: 111.8 kB / 0.5676 GB, free: 12.57 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.338, allocations: 4 kB / 0.5676 GB, free: 12.57 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001894/0.3382, allocations: 56.08 kB / 0.5677 GB, free: 12.51 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003121/0.3385, allocations: 26.36 kB / 0.5677 GB, free: 12.49 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002417/0.3409, allocations: 1.669 MB / 0.5693 GB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.959e-05/0.341, allocations: 85.31 kB / 0.5694 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.105e-05/0.3411, allocations: 16.66 kB / 0.5694 GB, free: 10.61 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.5e-05/0.3411, allocations: 31.36 kB / 0.5694 GB, free: 10.58 MB / 414.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3411, allocations: 0 / 0.5694 GB, free: 10.58 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03144/0.3726, allocations: 3.401 MB / 0.5728 GB, free: 7.281 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/11.04, allocations: 4.062 kB / 0.5728 GB, free: 7.277 MB / 414.1 MB " [Timeout remaining time 649] (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: 13.832126419991255]