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.001405/0.001405, allocations: 84.34 kB / 22.21 MB, free: 2.285 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.001516/0.001516, allocations: 166.8 kB / 25.61 MB, free: 8.582 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 1.065/1.065, allocations: 177 MB / 205.9 MB, free: 4.465 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.1626/0.1626, allocations: 34.88 MB / 297.4 MB, free: 13.34 MB / 282.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 1.583e-06/1.583e-06, allocations: 0 / 380 MB, free: 22.77 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.217e-05/2.375e-05, allocations: 6.672 kB / 380 MB, free: 22.77 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001871/0.001895, allocations: 1.5 MB / 381.5 MB, free: 21.26 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006429/0.002538, allocations: 478.6 kB / 382 MB, free: 20.79 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.595e-05/0.002594, allocations: 0 / 382 MB, free: 20.79 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 2.714e-05/0.002621, allocations: 3.938 kB / 382 MB, free: 20.79 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 4.923e-05/0.00267, allocations: 7.875 kB / 382 MB, free: 20.78 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002213/0.002891, allocations: 27.95 kB / 382 MB, free: 20.75 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 9.656e-05/0.002988, allocations: 35.86 kB / 382 MB, free: 20.71 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.75e-05/0.003065, allocations: 4 kB / 382 MB, free: 20.71 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.003184, allocations: 35.8 kB / 382.1 MB, free: 20.68 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.008e-05/0.003234, allocations: 15.97 kB / 382.1 MB, free: 20.66 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.469e-05/0.003248, allocations: 8 kB / 382.1 MB, free: 20.65 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.781e-05/0.003286, allocations: 4 kB / 382.1 MB, free: 20.65 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.302e-05/0.003299, allocations: 11.98 kB / 382.1 MB, free: 20.64 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.533e-05/0.003315, allocations: 3.938 kB / 382.1 MB, free: 20.63 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 9.319e-05/0.003408, allocations: 31.95 kB / 382.1 MB, free: 20.6 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.003412, allocations: 4 kB / 382.1 MB, free: 20.6 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.003412, allocations: 0 / 382.1 MB, free: 20.6 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.003417, allocations: 0 / 382.1 MB, free: 20.6 MB / 314.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.0002959/0.003713, allocations: 372.5 kB / 382.5 MB, free: 20.2 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.003748, allocations: 12.03 kB / 382.5 MB, free: 20.19 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001209/0.003869, allocations: 16.89 kB / 382.5 MB, free: 20.17 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001166/0.003986, allocations: 124.5 kB / 382.7 MB, free: 20.02 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.378e-06/0.003995, allocations: 384 / 382.7 MB, free: 20.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.085e-06/0.004003, allocations: 4.375 kB / 382.7 MB, free: 20.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001029/0.004106, allocations: 100 kB / 382.8 MB, free: 19.9 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.004114, allocations: 192 / 382.8 MB, free: 19.9 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.203e-06/0.004121, allocations: 4.312 kB / 382.8 MB, free: 19.89 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.004127, allocations: 3.938 kB / 382.8 MB, free: 19.89 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.271e-05/0.00415, allocations: 7.984 kB / 382.8 MB, free: 19.88 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000196/0.004346, allocations: 244.4 kB / 383 MB, free: 19.62 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.617e-05/0.004392, allocations: 31.09 kB / 383 MB, free: 19.57 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.423e-05/0.004406, allocations: 11.75 kB / 383.1 MB, free: 19.56 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.366e-05/0.00442, allocations: 0 / 383.1 MB, free: 19.56 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.015e-05/0.00444, allocations: 37.39 kB / 383.1 MB, free: 19.51 MB / 314.7 MB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.004441, allocations: 0 / 383.1 MB, free: 19.51 MB / 314.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001296/0.00457, allocations: 53.52 kB / 383.1 MB, free: 19.45 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.365e-05/0.004594, allocations: 77.11 kB / 383.2 MB, free: 19.36 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.908e-05/0.004653, allocations: 165.9 kB / 383.4 MB, free: 19.18 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.102e-05/0.004664, allocations: 33.83 kB / 383.4 MB, free: 19.14 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.743e-05/0.004691, allocations: 134.9 kB / 383.5 MB, free: 19 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.575e-05/0.004707, allocations: 7.922 kB / 383.6 MB, free: 19 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.838e-05/0.004736, allocations: 23.38 kB / 383.6 MB, free: 18.96 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.44e-05/0.00478, allocations: 0.4884 MB / 384.1 MB, free: 18.46 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.097e-05/0.004791, allocations: 3.984 kB / 384.1 MB, free: 18.46 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.118e-05/0.004812, allocations: 45.08 kB / 384.1 MB, free: 18.4 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.713e-05/0.004839, allocations: 15.69 kB / 384.1 MB, free: 18.38 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.004841, allocations: 0 / 384.1 MB, free: 18.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 5.083e-05/0.004892, allocations: 49.58 kB / 384.2 MB, free: 18.33 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/0.004904, allocations: 8 kB / 384.2 MB, free: 18.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.004909, allocations: 7.969 kB / 384.2 MB, free: 18.31 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.707e-06/0.004918, allocations: 0 / 384.2 MB, free: 18.31 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.365e-05/0.004971, allocations: 4 kB / 384.2 MB, free: 18.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.236e-06/0.004975, allocations: 7.969 kB / 384.2 MB, free: 18.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.534e-05/0.005, allocations: 4 kB / 384.2 MB, free: 18.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.589e-06/0.005004, allocations: 0 / 384.2 MB, free: 18.3 MB / 314.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 4.358e-05/0.005048, allocations: 156.6 kB / 384.4 MB, free: 18.13 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.741e-05/0.005065, allocations: 4.094 kB / 384.4 MB, free: 18.13 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.035e-05/0.005086, allocations: 19.55 kB / 384.4 MB, free: 18.11 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-06/0.005088, allocations: 3.984 kB / 384.4 MB, free: 18.11 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-06/0.005089, allocations: 4 kB / 384.4 MB, free: 18.1 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.005092, allocations: 0 / 384.4 MB, free: 18.1 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.479e-05/0.005167, allocations: 97.25 kB / 384.5 MB, free: 17.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.005168, allocations: 3.938 kB / 384.5 MB, free: 17.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.559e-05/0.005183, allocations: 11.92 kB / 384.5 MB, free: 17.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.005184, allocations: 0 / 384.5 MB, free: 17.96 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.298e-06/0.005189, allocations: 0 / 384.5 MB, free: 17.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.11e-07/0.005189, allocations: 0 / 384.5 MB, free: 17.96 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.005191, allocations: 3.938 kB / 384.5 MB, free: 17.96 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.266e-05/0.005264, allocations: 187.9 kB / 384.7 MB, free: 17.76 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.993e-06/0.005271, allocations: 11.98 kB / 384.7 MB, free: 17.75 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.285e-05/0.005284, allocations: 0 / 384.7 MB, free: 17.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.57e-05/0.005319, allocations: 11.98 kB / 384.7 MB, free: 17.73 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.213e-05/0.005351, allocations: 11.92 kB / 384.7 MB, free: 17.72 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-06/0.005354, allocations: 0 / 384.7 MB, free: 17.72 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.943e-05/0.005373, allocations: 127.2 kB / 384.8 MB, free: 17.6 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005373, allocations: 0 / 384.8 MB, free: 17.6 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001397/0.005513, allocations: 8 kB / 384.9 MB, free: 17.59 MB / 314.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 7.206e-05/0.005585, allocations: 95.17 kB / 385 MB, free: 17.49 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 7.63e-05/0.005661, allocations: 23.69 kB / 385 MB, free: 17.46 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.005663, allocations: 0 / 385 MB, free: 17.46 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.129e-05/0.005684, allocations: 11.69 kB / 385 MB, free: 17.45 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001529/0.005837, allocations: 7.984 kB / 385 MB, free: 17.44 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003394/0.006176, allocations: 140 kB / 385.1 MB, free: 17.27 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.287e-05/0.006199, allocations: 63.2 kB / 385.2 MB, free: 17.19 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.177e-05/0.006221, allocations: 0 / 385.2 MB, free: 17.19 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.454e-05/0.006265, allocations: 78.27 kB / 385.3 MB, free: 17.11 MB / 314.7 MB Notification: Performance of SimCode: time 6.81e-07/0.006266, allocations: 0 / 385.3 MB, free: 17.11 MB / 314.7 MB Notification: Performance of Templates: time 0.002221/0.008487, allocations: 0.7082 MB / 386 MB, free: 16.42 MB / 314.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: 3.2460314612835646]