Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008713/0.008713, allocations: 102.7 kB / 15.73 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001654/0.001654, allocations: 190.1 kB / 16.67 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.631/1.631, allocations: 205.1 MB / 222.5 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3412/0.3412, allocations: 39.94 MB / 309.8 MB, free: 9.336 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001695/0.001695, allocations: 75.89 kB / 435.8 MB, free: 2.445 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3685/0.3702, allocations: 56.87 MB / 492.6 MB, free: 19.47 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002722/0.3729, allocations: 1.421 MB / 494.1 MB, free: 18.48 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006723/0.3736, allocations: 463.4 kB / 494.5 MB, free: 18.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.5e-05/0.3737, allocations: 0 / 494.5 MB, free: 18.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.851e-05/0.3737, allocations: 8.641 kB / 494.5 MB, free: 18.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.976e-05/0.3738, allocations: 5.906 kB / 494.5 MB, free: 18.15 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001782/0.374, allocations: 16.28 kB / 494.5 MB, free: 18.14 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.407e-05/0.3741, allocations: 37.62 kB / 494.6 MB, free: 18.12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.623e-05/0.3742, allocations: 9.719 kB / 494.6 MB, free: 18.12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.268e-05/0.3743, allocations: 20.86 kB / 494.6 MB, free: 18.11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.151e-05/0.3743, allocations: 14.38 kB / 494.6 MB, free: 18.11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.82e-05/0.3744, allocations: 2.312 kB / 494.6 MB, free: 18.11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.11e-05/0.3744, allocations: 11.22 kB / 494.6 MB, free: 18.1 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.706e-05/0.3744, allocations: 6.578 kB / 494.6 MB, free: 18.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.916e-05/0.3744, allocations: 12.91 kB / 494.7 MB, free: 18.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 9.29e-05/0.3745, allocations: 36.38 kB / 494.7 MB, free: 18.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.3745, allocations: 1.344 kB / 494.7 MB, free: 18.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3745, allocations: 0 / 494.7 MB, free: 18.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.3745, allocations: 0 / 494.7 MB, free: 18.07 MB / 382.1 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.0003926/0.3749, allocations: 345 kB / 495 MB, free: 17.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.375, allocations: 13.89 kB / 495 MB, free: 17.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.133e-05/0.375, allocations: 7.25 kB / 495 MB, free: 17.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.997e-05/0.3751, allocations: 182.9 kB / 495.2 MB, free: 17.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.344e-06/0.3751, allocations: 1.438 kB / 495.2 MB, free: 17.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.271e-05/0.3751, allocations: 5.469 kB / 495.2 MB, free: 17.49 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001478/0.3753, allocations: 56.22 kB / 495.3 MB, free: 17.44 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.3753, allocations: 0 / 495.3 MB, free: 17.44 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.3753, allocations: 1.875 kB / 495.3 MB, free: 17.44 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.3753, allocations: 0 / 495.3 MB, free: 17.44 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.857e-05/0.3754, allocations: 31.86 kB / 495.3 MB, free: 17.42 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003135/0.3757, allocations: 260.6 kB / 495.6 MB, free: 17.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.478e-05/0.3758, allocations: 30.64 kB / 495.6 MB, free: 17.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.724e-05/0.3759, allocations: 17.7 kB / 495.6 MB, free: 17.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.69e-05/0.3759, allocations: 0 / 495.6 MB, free: 17.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.549e-05/0.3759, allocations: 36.5 kB / 495.7 MB, free: 17.06 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.3759, allocations: 5.062 kB / 495.7 MB, free: 17.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002295/0.3762, allocations: 61.8 kB / 495.7 MB, free: 17.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.981e-05/0.3762, allocations: 78.27 kB / 495.8 MB, free: 16.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.327e-05/0.3763, allocations: 119.6 kB / 495.9 MB, free: 16.81 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.043e-05/0.3763, allocations: 26.22 kB / 495.9 MB, free: 16.78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.814e-05/0.3763, allocations: 92.03 kB / 496 MB, free: 16.69 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.62e-05/0.3764, allocations: 5.734 kB / 496 MB, free: 16.69 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.053e-05/0.3764, allocations: 13.88 kB / 496.1 MB, free: 16.67 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.276e-05/0.3764, allocations: 325.4 kB / 496.4 MB, free: 16.35 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.932e-05/0.3765, allocations: 13.45 kB / 496.4 MB, free: 16.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.653e-05/0.3766, allocations: 25.27 kB / 496.4 MB, free: 16.32 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.482e-05/0.3766, allocations: 32.69 kB / 496.4 MB, free: 16.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.3766, allocations: 0 / 496.4 MB, free: 16.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001148/0.3768, allocations: 59.42 kB / 496.5 MB, free: 16.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.3768, allocations: 4.5 kB / 496.5 MB, free: 16.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.3768, allocations: 1.469 kB / 496.5 MB, free: 16.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.3768, allocations: 0.6562 kB / 496.5 MB, free: 16.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.514e-05/0.3769, allocations: 4.125 kB / 496.5 MB, free: 16.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.3769, allocations: 5.406 kB / 496.5 MB, free: 16.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.714e-05/0.377, allocations: 8.578 kB / 496.5 MB, free: 16.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.377, allocations: 4.797 kB / 496.5 MB, free: 16.26 MB / 382.1 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.422e-05/0.377, allocations: 117.2 kB / 496.6 MB, free: 16.14 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.522e-05/0.3771, allocations: 7.047 kB / 496.6 MB, free: 16.13 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.398e-05/0.3771, allocations: 8.797 kB / 496.7 MB, free: 16.12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.3771, allocations: 1.281 kB / 496.7 MB, free: 16.12 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.3771, allocations: 0 / 496.7 MB, free: 16.12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.3771, allocations: 0.7969 kB / 496.7 MB, free: 16.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001218/0.3772, allocations: 167.7 kB / 496.8 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.3772, allocations: 0 / 496.8 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.731e-05/0.3773, allocations: 8.969 kB / 496.8 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.3773, allocations: 4.547 kB / 496.8 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.3773, allocations: 2.359 kB / 496.8 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.3773, allocations: 0 / 496.8 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.3773, allocations: 0 / 496.8 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001274/0.3774, allocations: 155.1 kB / 497 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.771e-05/0.3775, allocations: 79.23 kB / 497.1 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.613e-05/0.3775, allocations: 6.281 kB / 497.1 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.195e-05/0.3776, allocations: 7.984 kB / 497.1 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.518e-05/0.3776, allocations: 5.375 kB / 497.1 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-06/0.3776, allocations: 1.891 kB / 497.1 MB, free: 15.67 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.888e-05/0.3777, allocations: 91.42 kB / 497.2 MB, free: 15.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3777, allocations: 0 / 497.2 MB, free: 15.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002179/0.3779, allocations: 9.688 kB / 497.2 MB, free: 15.59 MB / 382.1 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.046e-05/0.378, allocations: 108.5 kB / 497.3 MB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000142/0.3781, allocations: 30.16 kB / 497.3 MB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.3781, allocations: 0 / 497.3 MB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.752e-05/0.3782, allocations: 14.56 kB / 497.3 MB, free: 15.47 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001966/0.3784, allocations: 7.203 kB / 497.3 MB, free: 15.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002429/0.3786, allocations: 133.4 kB / 497.5 MB, free: 15.35 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.638e-05/0.3787, allocations: 0.6819 MB / 498.2 MB, free: 14.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.862e-05/0.3788, allocations: 2.219 kB / 498.2 MB, free: 14.65 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.707e-05/0.3788, allocations: 15.02 kB / 498.2 MB, free: 14.64 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3788, allocations: 0 / 498.2 MB, free: 14.64 MB / 382.1 MB Notification: Performance of Templates: time 0.002822/0.3816, allocations: 0.6051 MB / 498.8 MB, free: 14.56 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.pipe 2>&1)