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.001335/0.001335, allocations: 109.1 kB / 21.18 MB, free: 0.7656 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.001464/0.001464, allocations: 213.1 kB / 24.5 MB, free: 4.148 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.445/1.445, allocations: 230.5 MB / 258.1 MB, free: 7.992 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.2396/0.2396, allocations: 46.93 MB / 361.5 MB, free: 4.164 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: 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.002552/0.002552, allocations: 79.88 kB / 0.4974 GB, free: 7.242 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4138/0.4163, allocations: 66.08 MB / 0.5619 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.004207/0.4205, allocations: 1.733 MB / 0.5636 GB, free: 2.465 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005052/0.421, allocations: 151.6 kB / 0.5638 GB, free: 2.316 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.4211, allocations: 7.938 kB / 0.5638 GB, free: 2.309 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.174e-05/0.4212, allocations: 11.88 kB / 0.5638 GB, free: 2.297 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.118e-05/0.4213, allocations: 7.875 kB / 0.5638 GB, free: 2.289 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000445/0.4217, allocations: 107 kB / 0.5639 GB, free: 2.188 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002188/0.4219, allocations: 103.8 kB / 0.564 GB, free: 2.086 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001792/0.4221, allocations: 33.56 kB / 0.564 GB, free: 2.047 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.675e-05/0.4222, allocations: 43.84 kB / 0.5641 GB, free: 2.004 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.889e-05/0.4223, allocations: 39.78 kB / 0.5641 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.035e-05/0.4223, allocations: 8 kB / 0.5641 GB, free: 1.957 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.02e-05/0.4223, allocations: 8 kB / 0.5641 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.344e-05/0.4224, allocations: 27.92 kB / 0.5642 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.539e-05/0.4224, allocations: 43.78 kB / 0.5642 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001942/0.4226, allocations: 89.97 kB / 0.5643 GB, free: 1.797 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.4226, allocations: 4 kB / 0.5643 GB, free: 1.793 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.4226, allocations: 3.938 kB / 0.5643 GB, free: 1.789 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.367e-06/0.4226, allocations: 3.984 kB / 0.5643 GB, free: 1.785 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.0008584/0.4235, allocations: 373.8 kB / 0.5647 GB, free: 1.387 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.4235, allocations: 8.031 kB / 0.5647 GB, free: 1.379 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.869e-05/0.4236, allocations: 16.84 kB / 0.5647 GB, free: 1.363 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003114/0.4239, allocations: 134.4 kB / 0.5648 GB, free: 1.207 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.051e-05/0.4239, allocations: 12.36 kB / 0.5648 GB, free: 1.195 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.548e-05/0.4239, allocations: 4.375 kB / 0.5648 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004179/0.4244, allocations: 164.4 kB / 0.565 GB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.4244, allocations: 192 / 0.565 GB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.838e-05/0.4244, allocations: 3.938 kB / 0.565 GB, free: 1.008 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.4244, allocations: 4 kB / 0.565 GB, free: 1.004 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003623/0.4248, allocations: 111.8 kB / 0.5651 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008233/0.4256, allocations: 0.5116 MB / 0.5656 GB, free: 340 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004036/0.426, allocations: 134.5 kB / 0.5657 GB, free: 196 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001821/0.4262, allocations: 52.84 kB / 0.5658 GB, free: 140 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.727e-05/0.4262, allocations: 4 kB / 0.5658 GB, free: 136 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.746e-05/0.4262, allocations: 38.56 kB / 0.5658 GB, free: 88 kB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.503e-06/0.4262, allocations: 0 / 0.5658 GB, free: 88 kB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.00068/0.4269, allocations: 189.6 kB / 0.566 GB, free: 15.89 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.577e-05/0.427, allocations: 106.8 kB / 0.5661 GB, free: 15.76 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001674/0.4272, allocations: 136.9 kB / 0.5662 GB, free: 15.62 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.493e-05/0.4272, allocations: 29.7 kB / 0.5663 GB, free: 15.58 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.4273, allocations: 104 kB / 0.5664 GB, free: 15.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.017e-05/0.4274, allocations: 23.94 kB / 0.5664 GB, free: 15.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.459e-05/0.4274, allocations: 33.7 kB / 0.5664 GB, free: 15.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.4276, allocations: 322.8 kB / 0.5667 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001738/0.4278, allocations: 55.89 kB / 0.5668 GB, free: 15.04 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002165/0.428, allocations: 84.23 kB / 0.5669 GB, free: 14.94 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003247/0.4283, allocations: 114.5 kB / 0.567 GB, free: 14.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.4283, allocations: 0 / 0.567 GB, free: 14.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004018/0.4287, allocations: 157.4 kB / 0.5671 GB, free: 14.66 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.4287, allocations: 4 kB / 0.5671 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.4287, allocations: 0 / 0.5671 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.4288, allocations: 4 kB / 0.5671 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001555/0.4289, allocations: 27.91 kB / 0.5671 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.4289, allocations: 192 / 0.5671 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001447/0.4291, allocations: 43.86 kB / 0.5672 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.376e-05/0.4291, allocations: 11.92 kB / 0.5672 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.00013/0.4292, allocations: 119.2 kB / 0.5673 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.226e-05/0.4292, allocations: 7.953 kB / 0.5673 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.57e-05/0.4293, allocations: 12.72 kB / 0.5673 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.4293, allocations: 4 kB / 0.5673 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.4293, allocations: 0 / 0.5673 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.4293, allocations: 3.938 kB / 0.5673 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002468/0.4296, allocations: 172.7 kB / 0.5675 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-06/0.4296, allocations: 4 kB / 0.5675 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001104/0.4297, allocations: 19.97 kB / 0.5675 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.4297, allocations: 0 / 0.5675 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.4297, allocations: 8 kB / 0.5675 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.4297, allocations: 3.938 kB / 0.5675 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-06/0.4297, allocations: 400 / 0.5675 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004506/0.4301, allocations: 247.3 kB / 0.5678 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.434e-05/0.4301, allocations: 7.953 kB / 0.5678 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.438e-05/0.4302, allocations: 7.984 kB / 0.5678 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001517/0.4303, allocations: 23.97 kB / 0.5678 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.19e-05/0.4304, allocations: 11.98 kB / 0.5678 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-06/0.4304, allocations: 7.938 kB / 0.5678 GB, free: 13.85 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.263e-05/0.4305, allocations: 99.27 kB / 0.5679 GB, free: 13.75 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4305, allocations: 0 / 0.5679 GB, free: 13.75 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002393/0.4307, allocations: 23.94 kB / 0.568 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.0001436/0.4309, allocations: 99.17 kB / 0.568 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004406/0.4313, allocations: 111.9 kB / 0.5682 GB, free: 13.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.4313, allocations: 3.938 kB / 0.5682 GB, free: 13.51 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001833/0.4315, allocations: 63.89 kB / 0.5682 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003285/0.4318, allocations: 19.36 kB / 0.5682 GB, free: 13.43 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006406/0.4325, allocations: 251.8 kB / 0.5685 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00043/0.4329, allocations: 0.6924 MB / 0.5692 GB, free: 12.44 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.431e-05/0.433, allocations: 15.44 kB / 0.5692 GB, free: 12.43 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.433, allocations: 0 / 0.5692 GB, free: 12.43 MB / 414.1 MB Notification: Performance of Templates: time 0.003665/0.4366, allocations: 1.424 MB / 0.5706 GB, free: 11.01 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/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] Reference file matches [Calling sys.exit(0), Time elapsed: 7.518532830988988]