Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.006361/0.006361, allocations: 103 kB / 21.97 MB, free: 5.211 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.001459/0.001459, allocations: 220.3 kB / 25.29 MB, free: 3.215 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.423/1.423, allocations: 230.5 MB / 258.9 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2246/0.2246, allocations: 46.91 MB / 362.3 MB, free: 4.223 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002285/0.002285, allocations: 87.83 kB / 0.4982 GB, free: 7.273 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3376/0.3398, allocations: 66.07 MB / 0.5627 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003082/0.3429, allocations: 1.731 MB / 0.5644 GB, free: 2.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004352/0.3434, allocations: 163.5 kB / 0.5646 GB, free: 2.359 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.962e-05/0.3434, allocations: 3.938 kB / 0.5646 GB, free: 2.355 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.616e-05/0.3435, allocations: 11.86 kB / 0.5646 GB, free: 2.344 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.701e-05/0.3435, allocations: 15.88 kB / 0.5646 GB, free: 2.328 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003476/0.3439, allocations: 99.31 kB / 0.5647 GB, free: 2.234 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001859/0.3441, allocations: 107.7 kB / 0.5648 GB, free: 2.129 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.3442, allocations: 25.58 kB / 0.5648 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.864e-05/0.3443, allocations: 39.86 kB / 0.5649 GB, free: 2.059 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.968e-05/0.3444, allocations: 47.78 kB / 0.5649 GB, free: 2.012 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.662e-05/0.3444, allocations: 11.98 kB / 0.5649 GB, free: 2 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.963e-05/0.3444, allocations: 8 kB / 0.5649 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.735e-05/0.3444, allocations: 19.92 kB / 0.5649 GB, free: 1.973 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.758e-05/0.3445, allocations: 39.8 kB / 0.565 GB, free: 1.934 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001506/0.3446, allocations: 101.9 kB / 0.5651 GB, free: 1.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3446, allocations: 0 / 0.5651 GB, free: 1.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3446, allocations: 0 / 0.5651 GB, free: 1.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.694e-06/0.3446, allocations: 0 / 0.5651 GB, free: 1.84 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.0007261/0.3454, allocations: 373.8 kB / 0.5654 GB, free: 1.441 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.3454, allocations: 8.031 kB / 0.5654 GB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.866e-05/0.3455, allocations: 16.84 kB / 0.5655 GB, free: 1.418 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002744/0.3457, allocations: 146.3 kB / 0.5656 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.414e-05/0.3457, allocations: 4.375 kB / 0.5656 GB, free: 1.246 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.079e-05/0.3458, allocations: 12.38 kB / 0.5656 GB, free: 1.234 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003611/0.3461, allocations: 146.5 kB / 0.5658 GB, free: 1.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.3461, allocations: 4.188 kB / 0.5658 GB, free: 1.066 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.897e-05/0.3462, allocations: 7.938 kB / 0.5658 GB, free: 1.059 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.3462, allocations: 3.938 kB / 0.5658 GB, free: 1.055 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003537/0.3465, allocations: 110.7 kB / 0.5659 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007194/0.3472, allocations: 0.5077 MB / 0.5664 GB, free: 400 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003939/0.3476, allocations: 142.5 kB / 0.5665 GB, free: 248 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/0.3478, allocations: 56.81 kB / 0.5666 GB, free: 188 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.3478, allocations: 3.938 kB / 0.5666 GB, free: 184 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.3479, allocations: 34.56 kB / 0.5666 GB, free: 140 kB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.082e-06/0.3479, allocations: 0 / 0.5666 GB, free: 140 kB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006307/0.3485, allocations: 185.5 kB / 0.5668 GB, free: 15.95 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.385e-05/0.3486, allocations: 110.8 kB / 0.5669 GB, free: 15.82 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001298/0.3487, allocations: 132.6 kB / 0.567 GB, free: 15.68 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.3487, allocations: 29.7 kB / 0.567 GB, free: 15.64 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.534e-05/0.3488, allocations: 108 kB / 0.5671 GB, free: 15.53 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.28e-05/0.3488, allocations: 24 kB / 0.5672 GB, free: 15.51 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.377e-05/0.3489, allocations: 25.72 kB / 0.5672 GB, free: 15.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.349, allocations: 330.7 kB / 0.5675 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001736/0.3492, allocations: 55.89 kB / 0.5676 GB, free: 15.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/0.3494, allocations: 96.16 kB / 0.5676 GB, free: 14.98 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003137/0.3497, allocations: 110.5 kB / 0.5677 GB, free: 14.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3497, allocations: 4 kB / 0.5678 GB, free: 14.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003815/0.3501, allocations: 153.5 kB / 0.5679 GB, free: 14.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.3501, allocations: 8 kB / 0.5679 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.3501, allocations: 0 / 0.5679 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.3501, allocations: 0 / 0.5679 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/0.3503, allocations: 31.97 kB / 0.5679 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.3503, allocations: 0 / 0.5679 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001355/0.3504, allocations: 35.8 kB / 0.568 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.949e-06/0.3504, allocations: 8.062 kB / 0.568 GB, free: 14.62 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.0001072/0.3506, allocations: 117.8 kB / 0.5681 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.314e-05/0.3506, allocations: 7.953 kB / 0.5681 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.479e-05/0.3506, allocations: 16.7 kB / 0.5681 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.3506, allocations: 3.938 kB / 0.5681 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.3506, allocations: 0 / 0.5681 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.3506, allocations: 3.938 kB / 0.5681 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002339/0.3509, allocations: 180.7 kB / 0.5683 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.3509, allocations: 0 / 0.5683 GB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001227/0.351, allocations: 27.97 kB / 0.5683 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.351, allocations: 0 / 0.5683 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.477e-06/0.351, allocations: 0 / 0.5683 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.031e-06/0.351, allocations: 0 / 0.5683 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.351, allocations: 0 / 0.5683 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004267/0.3514, allocations: 243.3 kB / 0.5686 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.833e-05/0.3515, allocations: 11.95 kB / 0.5686 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.933e-05/0.3515, allocations: 0 / 0.5686 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.3516, allocations: 23.97 kB / 0.5686 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.466e-05/0.3517, allocations: 11.92 kB / 0.5686 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.287e-06/0.3517, allocations: 7.938 kB / 0.5686 GB, free: 13.91 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.217e-05/0.3518, allocations: 107.2 kB / 0.5687 GB, free: 13.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3518, allocations: 4 kB / 0.5687 GB, free: 13.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002378/0.352, allocations: 15.94 kB / 0.5687 GB, free: 13.78 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.0001087/0.3521, allocations: 99.19 kB / 0.5688 GB, free: 13.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004117/0.3525, allocations: 120.1 kB / 0.5689 GB, free: 13.56 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.3525, allocations: 0 / 0.5689 GB, free: 13.56 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001812/0.3527, allocations: 63.88 kB / 0.569 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002876/0.353, allocations: 18.95 kB / 0.569 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005757/0.3536, allocations: 247.7 kB / 0.5693 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/0.3539, allocations: 0.704 MB / 0.5699 GB, free: 12.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.19e-05/0.3539, allocations: 11.44 kB / 0.5699 GB, free: 12.47 MB / 414.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3539, allocations: 0 / 0.5699 GB, free: 12.47 MB / 414.1 MB Notification: Performance of Templates: time 0.003414/0.3574, allocations: 1.427 MB / 0.5713 GB, free: 11.05 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_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_4.1.0-beta.om_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.3558645830489695]