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.0008713/0.0008713, allocations: 76.36 kB / 20.67 MB, free: 3.883 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.001038/0.001038, allocations: 164.9 kB / 23.95 MB, free: 0.5977 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.9462/0.9462, allocations: 177 MB / 204.1 MB, free: 5.734 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.2639/0.2639, allocations: 34.25 MB / 294.8 MB, free: 0.6992 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: "" <> 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 1.273e-06/1.273e-06, allocations: 0 / 442.1 MB, free: 1.586 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.074e-05/1.201e-05, allocations: 9.031 kB / 442.1 MB, free: 1.578 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.1993/0.1993, allocations: 1.694 MB / 443.8 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004301/0.1997, allocations: 155.6 kB / 444 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.705e-05/0.1998, allocations: 3.875 kB / 444 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 3.266e-05/0.1998, allocations: 10.64 kB / 444 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 5.39e-05/0.1999, allocations: 13.53 kB / 444 MB, free: 43.23 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00036/0.2002, allocations: 106.9 kB / 444.1 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.000134/0.2004, allocations: 104.3 kB / 444.2 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.2005, allocations: 25.38 kB / 444.2 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.893e-05/0.2006, allocations: 60.19 kB / 444.3 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.073e-05/0.2006, allocations: 28.28 kB / 444.3 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.404e-05/0.2006, allocations: 8.75 kB / 444.3 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.116e-05/0.2006, allocations: 10.03 kB / 444.4 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 2.013e-05/0.2007, allocations: 22.91 kB / 444.4 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.393e-05/0.2007, allocations: 29.39 kB / 444.4 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001118/0.2008, allocations: 102.5 kB / 444.5 MB, free: 43.19 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.2008, allocations: 0.7188 kB / 444.5 MB, free: 43.19 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.2008, allocations: 0 / 444.5 MB, free: 43.19 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.2008, allocations: 0.5625 kB / 444.5 MB, free: 43.19 MB / 410.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.0004254/0.2012, allocations: 379.4 kB / 444.9 MB, free: 42.9 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.2013, allocations: 8.719 kB / 444.9 MB, free: 42.9 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.719e-05/0.2013, allocations: 40.08 kB / 444.9 MB, free: 42.86 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.839e-05/0.2013, allocations: 10.42 kB / 444.9 MB, free: 42.86 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001995/0.2015, allocations: 146.6 kB / 445.1 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.077e-06/0.2015, allocations: 7.062 kB / 445.1 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.127e-05/0.2016, allocations: 8.5 kB / 445.1 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002266/0.2018, allocations: 196.8 kB / 445.3 MB, free: 42.58 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.2018, allocations: 2.562 kB / 445.3 MB, free: 42.58 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.2018, allocations: 4.312 kB / 445.3 MB, free: 42.58 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.2018, allocations: 8.094 kB / 445.3 MB, free: 42.58 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001765/0.202, allocations: 111.1 kB / 445.4 MB, free: 42.57 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003739/0.2024, allocations: 0.4962 MB / 445.9 MB, free: 42.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000211/0.2026, allocations: 132.7 kB / 446 MB, free: 42.14 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.702e-05/0.2027, allocations: 55.86 kB / 446.1 MB, free: 42.13 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.224e-05/0.2027, allocations: 3.125 kB / 446.1 MB, free: 42.13 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.814e-05/0.2027, allocations: 34.5 kB / 446.1 MB, free: 42.09 MB / 410.7 MB Notification: Performance of pre-optimization done (n=8): time 1.533e-06/0.2027, allocations: 3.938 kB / 446.1 MB, free: 42.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003408/0.203, allocations: 186.4 kB / 446.3 MB, free: 42.05 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.954e-05/0.2031, allocations: 105.6 kB / 446.4 MB, free: 41.93 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.718e-05/0.2031, allocations: 138.2 kB / 446.5 MB, free: 41.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.045e-06/0.2032, allocations: 25.7 kB / 446.6 MB, free: 41.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.11e-05/0.2032, allocations: 112.3 kB / 446.7 MB, free: 41.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.418e-06/0.2032, allocations: 16.55 kB / 446.7 MB, free: 41.69 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.365e-05/0.2032, allocations: 31.69 kB / 446.7 MB, free: 41.67 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.41e-05/0.2033, allocations: 325.6 kB / 447 MB, free: 41.35 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.436e-05/0.2034, allocations: 51.06 kB / 447.1 MB, free: 41.35 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001053/0.2035, allocations: 144 kB / 447.2 MB, free: 41.25 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001615/0.2036, allocations: 116 kB / 447.4 MB, free: 41.22 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2036, allocations: 0 / 447.4 MB, free: 41.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002022/0.2038, allocations: 149 kB / 447.5 MB, free: 41.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.2038, allocations: 9.406 kB / 447.5 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.2038, allocations: 2.688 kB / 447.5 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.2039, allocations: 2.812 kB / 447.5 MB, free: 41.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.279e-05/0.204, allocations: 29.69 kB / 447.5 MB, free: 41.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.204, allocations: 2.656 kB / 447.5 MB, free: 41.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.652e-05/0.204, allocations: 32.52 kB / 447.6 MB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.334e-06/0.204, allocations: 6.172 kB / 447.6 MB, free: 41.16 MB / 410.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 5.116e-05/0.2041, allocations: 125 kB / 447.7 MB, free: 41.04 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.613e-05/0.2041, allocations: 13.64 kB / 447.7 MB, free: 41.03 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.71e-05/0.2041, allocations: 16.34 kB / 447.7 MB, free: 41.03 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.2041, allocations: 0 / 447.7 MB, free: 41.03 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.2041, allocations: 2.906 kB / 447.7 MB, free: 41.03 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.2041, allocations: 0 / 447.7 MB, free: 41.03 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001054/0.2042, allocations: 170.4 kB / 447.9 MB, free: 40.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-07/0.2042, allocations: 0 / 447.9 MB, free: 40.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.432e-05/0.2043, allocations: 24.2 kB / 447.9 MB, free: 40.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.2043, allocations: 8.734 kB / 447.9 MB, free: 40.86 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.2043, allocations: 0 / 447.9 MB, free: 40.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.2043, allocations: 0 / 447.9 MB, free: 40.86 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2043, allocations: 0 / 447.9 MB, free: 40.86 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001883/0.2045, allocations: 234 kB / 448.2 MB, free: 40.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.096e-06/0.2045, allocations: 13.92 kB / 448.2 MB, free: 40.72 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.729e-05/0.2045, allocations: 2.719 kB / 448.2 MB, free: 40.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.021e-05/0.2046, allocations: 29.64 kB / 448.2 MB, free: 40.71 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.725e-05/0.2046, allocations: 12.47 kB / 448.2 MB, free: 40.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-06/0.2046, allocations: 2.719 kB / 448.2 MB, free: 40.71 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.844e-05/0.2047, allocations: 108.8 kB / 448.3 MB, free: 40.64 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.2047, allocations: 0 / 448.3 MB, free: 40.64 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001556/0.2048, allocations: 24.94 kB / 448.4 MB, free: 40.63 MB / 410.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 0.0002921/0.2051, allocations: 0.762 MB / 449.1 MB, free: 39.97 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002109/0.2053, allocations: 118 kB / 449.2 MB, free: 39.95 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2053, allocations: 0 / 449.2 MB, free: 39.95 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 8.314e-05/0.2054, allocations: 61.95 kB / 449.3 MB, free: 39.93 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002103/0.2056, allocations: 19.61 kB / 449.3 MB, free: 39.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001071/0.2067, allocations: 1.664 MB / 451 MB, free: 38.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.265e-05/0.2067, allocations: 89.66 kB / 451.1 MB, free: 38.53 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.807e-05/0.2068, allocations: 8.984 kB / 451.1 MB, free: 38.53 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.465e-05/0.2068, allocations: 28.75 kB / 451.1 MB, free: 38.51 MB / 410.7 MB Notification: Performance of SimCode: time 5.21e-07/0.2068, allocations: 3.938 kB / 451.1 MB, free: 38.51 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01499/0.2218, allocations: 3.548 MB / 454.7 MB, free: 37.47 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.607/6.829, allocations: 9.609 kB / 454.7 MB, free: 37.47 MB / 410.7 MB " [Timeout remaining time 653] (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/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] Reference file matches [Calling sys.exit(0), Time elapsed: 8.890666768886149]