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.001426/0.001426, allocations: 81.91 kB / 21.43 MB, free: 3.07 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.001119/0.001119, allocations: 160 kB / 24.82 MB, free: 9.258 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.9442/0.9442, allocations: 177 MB / 205.1 MB, free: 5.504 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.2719/0.2719, allocations: 34.87 MB / 296.6 MB, free: 0.5273 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.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.352e-06/1.352e-06, allocations: 0 / 379.2 MB, free: 1.883 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.521e-05/1.656e-05, allocations: 3.016 kB / 379.2 MB, free: 1.879 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001655/0.001672, allocations: 1.495 MB / 380.7 MB, free: 380 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005833/0.002255, allocations: 470.7 kB / 381.2 MB, free: 15.91 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.596e-05/0.002301, allocations: 0 / 381.2 MB, free: 15.91 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 2.273e-05/0.002324, allocations: 0 / 381.2 MB, free: 15.91 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 4.609e-05/0.00237, allocations: 15.88 kB / 381.2 MB, free: 15.89 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001788/0.002549, allocations: 27.89 kB / 381.2 MB, free: 15.86 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 8.268e-05/0.002631, allocations: 35.86 kB / 381.3 MB, free: 15.83 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.677e-05/0.002708, allocations: 7.938 kB / 381.3 MB, free: 15.82 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001097/0.002818, allocations: 31.89 kB / 381.3 MB, free: 15.79 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.379e-05/0.002862, allocations: 15.98 kB / 381.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.167e-05/0.002873, allocations: 0 / 381.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.443e-05/0.002908, allocations: 8 kB / 381.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.011e-05/0.002918, allocations: 4 kB / 381.3 MB, free: 15.76 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.606e-05/0.002934, allocations: 15.92 kB / 381.3 MB, free: 15.75 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 7.789e-05/0.003012, allocations: 31.91 kB / 381.4 MB, free: 15.71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.824e-06/0.003014, allocations: 0 / 381.4 MB, free: 15.71 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.11e-07/0.003014, allocations: 0 / 381.4 MB, free: 15.71 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.885e-06/0.003017, allocations: 3.938 kB / 381.4 MB, free: 15.71 MB / 362.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.000292/0.003309, allocations: 380.5 kB / 381.7 MB, free: 15.3 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.094e-05/0.00334, allocations: 8.031 kB / 381.7 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.702e-05/0.003427, allocations: 12.92 kB / 381.8 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.582e-05/0.003523, allocations: 120.5 kB / 381.9 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.246e-06/0.003531, allocations: 4.375 kB / 381.9 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.049e-05/0.003542, allocations: 8.359 kB / 381.9 MB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001325/0.003674, allocations: 96.03 kB / 382 MB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.67e-06/0.00368, allocations: 192 / 382 MB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.003e-06/0.003687, allocations: 4.375 kB / 382 MB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.984e-06/0.003694, allocations: 7.938 kB / 382 MB, free: 15 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.929e-05/0.003713, allocations: 7.922 kB / 382 MB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005182/0.004231, allocations: 244.4 kB / 382.2 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.795e-05/0.004279, allocations: 31.06 kB / 382.3 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.221e-05/0.004291, allocations: 7.688 kB / 382.3 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.347e-05/0.004305, allocations: 0 / 382.3 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.156e-05/0.004326, allocations: 41.45 kB / 382.3 MB, free: 14.62 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 6.91e-07/0.004327, allocations: 0 / 382.3 MB, free: 14.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001017/0.004429, allocations: 53.52 kB / 382.4 MB, free: 14.56 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.941e-05/0.004458, allocations: 81.11 kB / 382.5 MB, free: 14.46 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.271e-05/0.004521, allocations: 173.8 kB / 382.6 MB, free: 14.28 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.289e-05/0.004534, allocations: 25.7 kB / 382.6 MB, free: 14.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.565e-05/0.004579, allocations: 138.9 kB / 382.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.339e-05/0.004593, allocations: 3.953 kB / 382.8 MB, free: 14.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.399e-05/0.004617, allocations: 19.38 kB / 382.8 MB, free: 14.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.324e-05/0.00471, allocations: 0.4884 MB / 383.3 MB, free: 13.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.407e-06/0.004719, allocations: 8.125 kB / 383.3 MB, free: 13.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.559e-05/0.004745, allocations: 49.02 kB / 383.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.422e-05/0.004769, allocations: 15.69 kB / 383.4 MB, free: 13.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.00477, allocations: 0 / 383.4 MB, free: 13.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 4.554e-05/0.004816, allocations: 41.69 kB / 383.4 MB, free: 13.44 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.979e-06/0.004826, allocations: 4 kB / 383.4 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.00483, allocations: 3.938 kB / 383.4 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.737e-06/0.004838, allocations: 0 / 383.4 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.917e-05/0.004878, allocations: 7.984 kB / 383.4 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.124e-06/0.00488, allocations: 0 / 383.4 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.03e-05/0.0049, allocations: 8.031 kB / 383.4 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.258e-06/0.004904, allocations: 4 kB / 383.4 MB, free: 13.41 MB / 362.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 5.485e-05/0.004959, allocations: 160.5 kB / 383.6 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.472e-05/0.004974, allocations: 11.94 kB / 383.6 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.706e-05/0.004991, allocations: 11.5 kB / 383.6 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.61e-07/0.004992, allocations: 0 / 383.6 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-06/0.004993, allocations: 0 / 383.6 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.004996, allocations: 4 kB / 383.6 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.953e-05/0.005076, allocations: 105.4 kB / 383.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.52e-07/0.005076, allocations: 0 / 383.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.226e-05/0.005089, allocations: 8 kB / 383.7 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.005093, allocations: 3.984 kB / 383.7 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.389e-06/0.005097, allocations: 0 / 383.7 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.91e-07/0.005098, allocations: 0 / 383.7 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.0051, allocations: 3.938 kB / 383.7 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.314e-05/0.005183, allocations: 183.9 kB / 383.9 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.521e-06/0.005189, allocations: 3.953 kB / 383.9 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.346e-05/0.005202, allocations: 8 kB / 383.9 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.614e-05/0.005238, allocations: 15.92 kB / 383.9 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.717e-05/0.005265, allocations: 7.922 kB / 384 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.005268, allocations: 4.031 kB / 384 MB, free: 12.84 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.267e-05/0.005301, allocations: 135.2 kB / 384.1 MB, free: 12.7 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005301, allocations: 0 / 384.1 MB, free: 12.7 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001279/0.005429, allocations: 4 kB / 384.1 MB, free: 12.7 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: 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 6.238e-05/0.005491, allocations: 95.25 kB / 384.2 MB, free: 12.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 5.858e-05/0.00555, allocations: 15.69 kB / 384.2 MB, free: 12.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.233e-06/0.005551, allocations: 0 / 384.2 MB, free: 12.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.923e-05/0.00557, allocations: 19.61 kB / 384.2 MB, free: 12.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001335/0.005704, allocations: 4.062 kB / 384.2 MB, free: 12.55 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003029/0.006006, allocations: 138.1 kB / 384.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.016e-05/0.006037, allocations: 55.34 kB / 384.4 MB, free: 12.31 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.805e-05/0.006055, allocations: 4 kB / 384.4 MB, free: 12.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.666e-05/0.006101, allocations: 74.19 kB / 384.5 MB, free: 12.23 MB / 362.7 MB Notification: Performance of SimCode: time 4.51e-07/0.006102, allocations: 0 / 384.5 MB, free: 12.23 MB / 362.7 MB Notification: Performance of Templates: time 0.001946/0.008048, allocations: 0.6964 MB / 385.2 MB, free: 11.55 MB / 362.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.7868794868700206]