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.001025/0.001025, allocations: 79.69 kB / 21.7 MB, free: 2.852 MB / 18.57 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.0009239/0.0009239, allocations: 161 kB / 24.99 MB, free: 8.801 MB / 18.57 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 0.9381/0.9381, allocations: 177 MB / 205.2 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 179] 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.2935/0.2935, allocations: 34.87 MB / 296.6 MB, free: 0.5742 MB / 266.7 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 1.373e-06/1.373e-06, allocations: 0 / 378.7 MB, free: 2.449 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.273e-05/2.411e-05, allocations: 6.312 kB / 378.7 MB, free: 2.441 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.002153/0.002177, allocations: 1.746 MB / 380.5 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003589/0.005766, allocations: 159.4 kB / 380.6 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.877e-05/0.005835, allocations: 4 kB / 380.6 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 3.371e-05/0.005869, allocations: 11.86 kB / 380.6 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.671e-05/0.005926, allocations: 11.81 kB / 380.7 MB, free: 0.5 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002933/0.006219, allocations: 95.86 kB / 380.8 MB, free: 416 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001615/0.00638, allocations: 115.7 kB / 380.9 MB, free: 300 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.006497, allocations: 21.58 kB / 380.9 MB, free: 276 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.395e-05/0.006591, allocations: 59.88 kB / 380.9 MB, free: 216 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.233e-05/0.006643, allocations: 27.91 kB / 381 MB, free: 188 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.667e-05/0.00667, allocations: 8 kB / 381 MB, free: 180 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.368e-05/0.006684, allocations: 8 kB / 381 MB, free: 172 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.478e-05/0.006708, allocations: 23.91 kB / 381 MB, free: 148 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.572e-05/0.006744, allocations: 27.92 kB / 381 MB, free: 120 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001202/0.006864, allocations: 75.66 kB / 381.1 MB, free: 44 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.006866, allocations: 0 / 381.1 MB, free: 44 kB / 346.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.006867, allocations: 4 kB / 381.1 MB, free: 40 kB / 346.7 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.006871, allocations: 4 kB / 381.1 MB, free: 36 kB / 346.7 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.0005036/0.007375, allocations: 452.1 kB / 381.6 MB, free: 15.55 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.007411, allocations: 12.03 kB / 381.6 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.093e-05/0.007461, allocations: 16.89 kB / 381.6 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001754/0.007637, allocations: 151 kB / 381.7 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.007648, allocations: 4.375 kB / 381.7 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.431e-05/0.007662, allocations: 12.31 kB / 381.8 MB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002506/0.007913, allocations: 204.7 kB / 382 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.007919, allocations: 192 / 382 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/0.007933, allocations: 4.375 kB / 382 MB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.007941, allocations: 4.375 kB / 382 MB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.913e-05/0.00802, allocations: 39.84 kB / 382 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003714/0.01173, allocations: 0.5872 MB / 382.6 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000149/0.01188, allocations: 78.97 kB / 382.7 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.784e-05/0.01193, allocations: 27.69 kB / 382.7 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.681e-05/0.01195, allocations: 4 kB / 382.7 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.18e-05/0.01197, allocations: 33.39 kB / 382.7 MB, free: 14.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 1.262e-06/0.01197, allocations: 0 / 382.7 MB, free: 14.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002197/0.01219, allocations: 89.59 kB / 382.8 MB, free: 14.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.989e-05/0.01224, allocations: 106.8 kB / 382.9 MB, free: 14.03 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/0.01236, allocations: 196.8 kB / 383.1 MB, free: 13.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.465e-05/0.01237, allocations: 25.7 kB / 383.1 MB, free: 13.79 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.627e-05/0.01245, allocations: 162.8 kB / 383.3 MB, free: 13.62 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.503e-05/0.01246, allocations: 19.8 kB / 383.3 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.031e-05/0.01252, allocations: 39.36 kB / 383.4 MB, free: 13.56 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.01264, allocations: 0.4884 MB / 383.8 MB, free: 13.06 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.395e-05/0.01267, allocations: 12 kB / 383.9 MB, free: 13.05 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.55e-05/0.01276, allocations: 117.8 kB / 384 MB, free: 12.9 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.353e-05/0.01283, allocations: 54.94 kB / 384 MB, free: 12.83 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.01284, allocations: 0 / 384 MB, free: 12.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001339/0.01297, allocations: 77.58 kB / 384.1 MB, free: 12.75 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.01299, allocations: 12.08 kB / 384.1 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.01299, allocations: 4 kB / 384.1 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.013, allocations: 0 / 384.1 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.597e-05/0.0131, allocations: 23.98 kB / 384.1 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.01311, allocations: 3.938 kB / 384.1 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.118e-05/0.01318, allocations: 19.94 kB / 384.2 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.766e-06/0.01319, allocations: 4 kB / 384.2 MB, free: 12.68 MB / 362.7 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 8.461e-05/0.01327, allocations: 164.5 kB / 384.3 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.345e-05/0.0133, allocations: 15.94 kB / 384.3 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.047e-05/0.01333, allocations: 16.78 kB / 384.4 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.01334, allocations: 0 / 384.4 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.01334, allocations: 7.938 kB / 384.4 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.01334, allocations: 0 / 384.4 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001463/0.01349, allocations: 152.5 kB / 384.5 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.01349, allocations: 0 / 384.5 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.935e-05/0.01354, allocations: 15.98 kB / 384.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.01354, allocations: 0 / 384.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.01355, allocations: 3.984 kB / 384.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.01355, allocations: 0 / 384.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.01355, allocations: 4 kB / 384.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001544/0.01371, allocations: 224.2 kB / 384.8 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.227e-05/0.01372, allocations: 11.91 kB / 384.8 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.836e-05/0.01374, allocations: 7.984 kB / 384.8 MB, free: 12.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.71e-05/0.01382, allocations: 15.98 kB / 384.8 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.558e-05/0.01387, allocations: 11.98 kB / 384.8 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-06/0.01387, allocations: 0 / 384.8 MB, free: 11.98 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.795e-05/0.01393, allocations: 143.2 kB / 384.9 MB, free: 11.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01393, allocations: 0 / 384.9 MB, free: 11.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002303/0.01416, allocations: 16 kB / 385 MB, free: 11.82 MB / 362.7 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 8.174e-05/0.01424, allocations: 99.23 kB / 385.1 MB, free: 11.72 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001411/0.01438, allocations: 55.66 kB / 385.1 MB, free: 11.66 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.01439, allocations: 0 / 385.1 MB, free: 11.66 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.763e-05/0.01443, allocations: 35.61 kB / 385.1 MB, free: 11.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002779/0.01471, allocations: 23.92 kB / 385.2 MB, free: 11.6 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003666/0.01508, allocations: 206.1 kB / 385.4 MB, free: 11.37 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01205/0.02713, allocations: 63.34 kB / 385.4 MB, free: 11.29 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.858e-05/0.02718, allocations: 12.86 kB / 385.4 MB, free: 11.27 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.715e-05/0.02721, allocations: 12.5 kB / 385.5 MB, free: 11.26 MB / 362.7 MB Notification: Performance of SimCode: time 7.92e-07/0.02721, allocations: 0 / 385.5 MB, free: 11.26 MB / 362.7 MB Notification: Performance of Templates: time 0.009286/0.0365, allocations: 1.557 MB / 387 MB, free: 9.734 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1075550138484687]