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.001388/0.001388, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001702/0.001702, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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.011/1.011, allocations: 177 MB / 204.8 MB, free: 5.574 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.2878/0.2878, allocations: 34.85 MB / 296.3 MB, free: 476 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 1.753e-06/1.753e-06, allocations: 0 / 378.7 MB, free: 2.078 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.646e-05/2.821e-05, allocations: 2.875 kB / 378.8 MB, free: 2.074 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003025/0.003053, allocations: 1.502 MB / 380.3 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001087/0.00414, allocations: 474.7 kB / 380.7 MB, free: 92 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.461e-05/0.004225, allocations: 4 kB / 380.7 MB, free: 88 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 4.568e-05/0.00427, allocations: 7.875 kB / 380.7 MB, free: 80 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 8.225e-05/0.004352, allocations: 3.938 kB / 380.7 MB, free: 76 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003804/0.004733, allocations: 31.89 kB / 380.8 MB, free: 44 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001699/0.004903, allocations: 39.8 kB / 380.8 MB, free: 4 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001288/0.005032, allocations: 4 kB / 380.8 MB, free: 0 / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002499/0.005282, allocations: 31.91 kB / 380.8 MB, free: 15.97 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.692e-05/0.005368, allocations: 11.98 kB / 380.8 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.893e-05/0.005397, allocations: 8 kB / 380.9 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.343e-05/0.005461, allocations: 7.984 kB / 380.9 MB, free: 15.94 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.975e-05/0.005481, allocations: 7.938 kB / 380.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 3.443e-05/0.005515, allocations: 8 kB / 380.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001717/0.005687, allocations: 35.83 kB / 380.9 MB, free: 15.89 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.005689, allocations: 4 kB / 380.9 MB, free: 15.89 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.00569, allocations: 0 / 380.9 MB, free: 15.89 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.005696, allocations: 0 / 380.9 MB, free: 15.89 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.0004668/0.006163, allocations: 372.5 kB / 381.3 MB, free: 15.49 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/0.006215, allocations: 8.031 kB / 381.3 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001533/0.006368, allocations: 16.92 kB / 381.3 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001744/0.006542, allocations: 128.5 kB / 381.4 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.05e-05/0.006553, allocations: 4.359 kB / 381.4 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.543e-05/0.006568, allocations: 384 / 381.4 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001597/0.006728, allocations: 96.03 kB / 381.5 MB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.006738, allocations: 8.172 kB / 381.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-06/0.006747, allocations: 384 / 381.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.006756, allocations: 3.938 kB / 381.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.616e-05/0.006792, allocations: 7.984 kB / 381.6 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003088/0.007101, allocations: 255.8 kB / 381.8 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.46e-05/0.007165, allocations: 35.06 kB / 381.8 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.007e-05/0.007185, allocations: 11.75 kB / 381.8 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.367e-05/0.007199, allocations: 0 / 381.8 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.007227, allocations: 45.31 kB / 381.9 MB, free: 14.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.007228, allocations: 0 / 381.9 MB, free: 14.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001454/0.007374, allocations: 45.59 kB / 381.9 MB, free: 14.72 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.1e-05/0.007415, allocations: 81.11 kB / 382 MB, free: 14.62 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.728e-05/0.007492, allocations: 173.8 kB / 382.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.482e-05/0.007507, allocations: 25.7 kB / 382.2 MB, free: 14.4 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.014e-05/0.007557, allocations: 139 kB / 382.3 MB, free: 14.26 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.992e-05/0.007577, allocations: 7.938 kB / 382.4 MB, free: 14.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.012e-05/0.007607, allocations: 23.38 kB / 382.4 MB, free: 14.22 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.007734, allocations: 496.1 kB / 382.9 MB, free: 13.73 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.488e-05/0.007748, allocations: 4 kB / 382.9 MB, free: 13.72 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.467e-05/0.007783, allocations: 49.08 kB / 382.9 MB, free: 13.66 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.347e-05/0.007817, allocations: 23.61 kB / 382.9 MB, free: 13.63 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.007818, allocations: 0 / 382.9 MB, free: 13.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.033e-05/0.007879, allocations: 45.7 kB / 383 MB, free: 13.58 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.007893, allocations: 15.86 kB / 383 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.007898, allocations: 0 / 383 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.007911, allocations: 4.031 kB / 383 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.14e-05/0.007972, allocations: 4 kB / 383 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.007977, allocations: 0 / 383 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.256e-05/0.008, allocations: 4 kB / 383 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.008008, allocations: 3.984 kB / 383 MB, free: 13.55 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 7.502e-05/0.008083, allocations: 160.6 kB / 383.2 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.743e-05/0.0081, allocations: 11.89 kB / 383.2 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.135e-05/0.008121, allocations: 3.625 kB / 383.2 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.008123, allocations: 0 / 383.2 MB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.008127, allocations: 7.938 kB / 383.2 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.00813, allocations: 0 / 383.2 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.763e-05/0.008228, allocations: 120.6 kB / 383.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-07/0.008228, allocations: 0 / 383.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.188e-05/0.00824, allocations: 0 / 383.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.658e-06/0.008245, allocations: 7.984 kB / 383.3 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.246e-06/0.008253, allocations: 3.938 kB / 383.3 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.42e-07/0.008254, allocations: 0 / 383.3 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.008255, allocations: 0 / 383.3 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.298e-05/0.008348, allocations: 187.9 kB / 383.5 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.362e-06/0.008354, allocations: 3.953 kB / 383.5 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.02e-05/0.008374, allocations: 12.11 kB / 383.5 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.26e-05/0.008407, allocations: 4 kB / 383.5 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.894e-05/0.008456, allocations: 11.97 kB / 383.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.00846, allocations: 3.984 kB / 383.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.284e-05/0.008502, allocations: 131.1 kB / 383.7 MB, free: 12.83 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008502, allocations: 0 / 383.7 MB, free: 12.83 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001326/0.008635, allocations: 8 kB / 383.7 MB, free: 12.82 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.575e-05/0.008701, allocations: 91.25 kB / 383.8 MB, free: 12.72 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.596e-05/0.008787, allocations: 23.67 kB / 383.8 MB, free: 12.7 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.008788, allocations: 0 / 383.8 MB, free: 12.7 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.005e-05/0.008808, allocations: 15.69 kB / 383.8 MB, free: 12.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001436/0.008952, allocations: 6.672 kB / 383.8 MB, free: 12.67 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004565/0.009408, allocations: 146 kB / 384 MB, free: 12.5 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.751e-05/0.009446, allocations: 59.3 kB / 384 MB, free: 12.42 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.112e-05/0.009467, allocations: 3.984 kB / 384 MB, free: 12.42 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.056e-05/0.009497, allocations: 16.56 kB / 384 MB, free: 12.4 MB / 362.7 MB Notification: Performance of SimCode: time 5.81e-07/0.009498, allocations: 0 / 384 MB, free: 12.4 MB / 362.7 MB Notification: Performance of Templates: time 0.002334/0.01183, allocations: 0.6668 MB / 384.7 MB, free: 11.74 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: 3.0866372804157436]