Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.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.0009249/0.0009249, allocations: 88.73 kB / 21.5 MB, free: 2.984 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.0009675/0.0009675, allocations: 165.5 kB / 24.91 MB, free: 8.77 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.9853/0.9853, allocations: 177 MB / 205.2 MB, free: 5.066 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.2701/0.2701, allocations: 34.85 MB / 296.6 MB, free: 396 kB / 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.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 325.9 MB, free: 7.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.725e-05/2.927e-05, allocations: 5.406 kB / 325.9 MB, free: 7.156 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003037/0.003066, allocations: 1.494 MB / 327.4 MB, free: 5.648 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001094/0.00416, allocations: 478.6 kB / 327.9 MB, free: 5.176 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.752e-05/0.004217, allocations: 4 kB / 327.9 MB, free: 5.172 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.091e-05/0.004248, allocations: 3.984 kB / 327.9 MB, free: 5.168 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.848e-05/0.004307, allocations: 3.938 kB / 327.9 MB, free: 5.164 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002599/0.004567, allocations: 31.84 kB / 327.9 MB, free: 5.133 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001187/0.004685, allocations: 39.86 kB / 327.9 MB, free: 5.094 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.404e-05/0.004769, allocations: 3.984 kB / 327.9 MB, free: 5.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001652/0.004934, allocations: 31.91 kB / 328 MB, free: 5.059 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.426e-05/0.004999, allocations: 11.98 kB / 328 MB, free: 5.047 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.691e-05/0.005016, allocations: 0 / 328 MB, free: 5.047 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.877e-05/0.005064, allocations: 16 kB / 328 MB, free: 5.031 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.802e-05/0.005082, allocations: 7.922 kB / 328 MB, free: 5.023 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.247e-05/0.005105, allocations: 11.98 kB / 328 MB, free: 5.012 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001119/0.005217, allocations: 31.84 kB / 328.1 MB, free: 4.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.00522, allocations: 0 / 328.1 MB, free: 4.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.00522, allocations: 0 / 328.1 MB, free: 4.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.346e-06/0.005224, allocations: 3.938 kB / 328.1 MB, free: 4.977 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003793/0.005603, allocations: 254.9 kB / 328.3 MB, free: 4.707 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.005643, allocations: 8.031 kB / 328.3 MB, free: 4.699 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001448/0.005788, allocations: 12.92 kB / 328.3 MB, free: 4.688 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000144/0.005932, allocations: 120.3 kB / 328.4 MB, free: 4.547 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.879e-06/0.005942, allocations: 384 / 328.4 MB, free: 4.547 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.732e-05/0.005959, allocations: 4.375 kB / 328.5 MB, free: 4.543 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001438/0.006103, allocations: 94.34 kB / 328.5 MB, free: 4.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.006111, allocations: 192 / 328.5 MB, free: 4.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.986e-06/0.00612, allocations: 384 / 328.5 MB, free: 4.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.006128, allocations: 11.92 kB / 328.6 MB, free: 4.418 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.017e-05/0.006159, allocations: 3.938 kB / 328.6 MB, free: 4.414 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002481/0.006407, allocations: 156.3 kB / 328.7 MB, free: 4.246 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.258e-05/0.006469, allocations: 26.58 kB / 328.7 MB, free: 4.211 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.677e-05/0.006486, allocations: 4.859 kB / 328.7 MB, free: 4.203 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.158e-05/0.006497, allocations: 0 / 328.7 MB, free: 4.203 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.749e-05/0.006525, allocations: 38.62 kB / 328.8 MB, free: 4.156 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.006526, allocations: 0 / 328.8 MB, free: 4.156 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001279/0.006654, allocations: 45.56 kB / 328.8 MB, free: 4.105 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.584e-05/0.0067, allocations: 77.11 kB / 328.9 MB, free: 4.012 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.844e-05/0.006778, allocations: 118.7 kB / 329 MB, free: 3.883 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.136e-05/0.0068, allocations: 25.7 kB / 329 MB, free: 3.852 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.116e-05/0.006841, allocations: 88.12 kB / 329.1 MB, free: 3.762 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.141e-05/0.006862, allocations: 12.06 kB / 329.1 MB, free: 3.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.661e-05/0.006899, allocations: 13.72 kB / 329.2 MB, free: 3.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.904e-05/0.006998, allocations: 318.8 kB / 329.5 MB, free: 3.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.871e-05/0.007017, allocations: 4 kB / 329.5 MB, free: 3.406 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.571e-05/0.007052, allocations: 47.34 kB / 329.5 MB, free: 3.348 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.208e-05/0.007084, allocations: 12.8 kB / 329.5 MB, free: 3.332 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.007086, allocations: 0 / 329.5 MB, free: 3.332 MB / 298.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.015e-05/0.007156, allocations: 41.69 kB / 329.6 MB, free: 3.285 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.007169, allocations: 4 kB / 329.6 MB, free: 3.281 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.007174, allocations: 0 / 329.6 MB, free: 3.281 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.007191, allocations: 3.938 kB / 329.6 MB, free: 3.277 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.013e-05/0.007261, allocations: 12.02 kB / 329.6 MB, free: 3.266 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.276e-06/0.007264, allocations: 0 / 329.6 MB, free: 3.266 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.957e-05/0.007304, allocations: 4 kB / 329.6 MB, free: 3.262 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.007309, allocations: 0 / 329.6 MB, free: 3.262 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 7.164e-05/0.007381, allocations: 113.8 kB / 329.7 MB, free: 3.141 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.828e-05/0.007409, allocations: 7.984 kB / 329.7 MB, free: 3.133 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.758e-05/0.007437, allocations: 7.625 kB / 329.7 MB, free: 3.125 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.00744, allocations: 3.938 kB / 329.7 MB, free: 3.121 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.007442, allocations: 0 / 329.7 MB, free: 3.121 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.007444, allocations: 0 / 329.7 MB, free: 3.121 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001245/0.007569, allocations: 77.88 kB / 329.8 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.007571, allocations: 0 / 329.8 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.512e-05/0.007606, allocations: 0 / 329.8 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.007608, allocations: 4 kB / 329.8 MB, free: 3.023 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.31e-06/0.007613, allocations: 0 / 329.8 MB, free: 3.023 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.007615, allocations: 0 / 329.8 MB, free: 3.023 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.007616, allocations: 0 / 329.8 MB, free: 3.023 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001107/0.007727, allocations: 139.5 kB / 329.9 MB, free: 2.871 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.02e-05/0.007737, allocations: 4 kB / 329.9 MB, free: 2.867 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.959e-05/0.007756, allocations: 3.984 kB / 329.9 MB, free: 2.863 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.337e-05/0.00783, allocations: 11.97 kB / 330 MB, free: 2.852 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.6e-05/0.007876, allocations: 12.06 kB / 330 MB, free: 2.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.569e-06/0.00788, allocations: 0 / 330 MB, free: 2.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.255e-05/0.007903, allocations: 20.83 kB / 330 MB, free: 2.816 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.007903, allocations: 0 / 330 MB, free: 2.816 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002182/0.008121, allocations: 8 kB / 330 MB, free: 2.809 MB / 298.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: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 9.18e-05/0.008213, allocations: 76.41 kB / 330.1 MB, free: 2.727 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.127e-05/0.008294, allocations: 12.86 kB / 330.1 MB, free: 2.711 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.008298, allocations: 0.75 kB / 330.1 MB, free: 2.711 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.696e-05/0.008325, allocations: 20.78 kB / 330.1 MB, free: 2.688 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001607/0.008486, allocations: 7.938 kB / 330.1 MB, free: 2.68 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004633/0.008949, allocations: 137.3 kB / 330.2 MB, free: 2.52 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.145e-05/0.00899, allocations: 55.34 kB / 330.3 MB, free: 2.445 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.744e-05/0.009018, allocations: 4 kB / 330.3 MB, free: 2.441 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.334e-05/0.009081, allocations: 55.36 kB / 330.4 MB, free: 2.387 MB / 298.7 MB Notification: Performance of SimCode: time 5.91e-07/0.009082, allocations: 64 / 330.4 MB, free: 2.387 MB / 298.7 MB Notification: Performance of Templates: time 0.003007/0.01209, allocations: 0.6754 MB / 331 MB, free: 1.73 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.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: 2.8616447960957885]