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.009701/0.009701, allocations: 100.3 kB / 15.73 MB, free: 6.449 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.001889/0.001889, allocations: 198.2 kB / 16.68 MB, free: 6.355 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.588/1.588, allocations: 205.1 MB / 222.5 MB, free: 4.543 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.3447/0.3447, allocations: 39.95 MB / 309.8 MB, free: 9.203 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.001632/0.001632, allocations: 72.5 kB / 435.8 MB, free: 2.477 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3344, allocations: 56.87 MB / 492.6 MB, free: 19.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002752/0.3372, allocations: 1.422 MB / 494.1 MB, free: 18.51 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007823/0.338, allocations: 466 kB / 494.5 MB, free: 18.19 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.1e-05/0.338, allocations: 1.219 kB / 494.5 MB, free: 18.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.953e-05/0.3381, allocations: 3.938 kB / 494.5 MB, free: 18.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.629e-05/0.3381, allocations: 9.516 kB / 494.5 MB, free: 18.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000183/0.3383, allocations: 19.27 kB / 494.6 MB, free: 18.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 8.031e-05/0.3384, allocations: 35.17 kB / 494.6 MB, free: 18.15 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.993e-05/0.3385, allocations: 12.45 kB / 494.6 MB, free: 18.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.771e-05/0.3386, allocations: 22.14 kB / 494.6 MB, free: 18.13 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.373e-05/0.3387, allocations: 17 kB / 494.6 MB, free: 18.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.691e-05/0.3387, allocations: 6.688 kB / 494.6 MB, free: 18.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.629e-06/0.3387, allocations: 2.844 kB / 494.6 MB, free: 18.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.83e-05/0.3387, allocations: 6.781 kB / 494.7 MB, free: 18.11 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.996e-05/0.3388, allocations: 13.28 kB / 494.7 MB, free: 18.11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000108/0.3389, allocations: 40.81 kB / 494.7 MB, free: 18.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3389, allocations: 1.219 kB / 494.7 MB, free: 18.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3389, allocations: 0 / 494.7 MB, free: 18.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.3389, allocations: 0 / 494.7 MB, free: 18.09 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.0004301/0.3394, allocations: 345.8 kB / 495 MB, free: 17.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.3394, allocations: 16.98 kB / 495.1 MB, free: 17.72 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.66e-05/0.3394, allocations: 3.125 kB / 495.1 MB, free: 17.72 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.381e-05/0.3395, allocations: 174.8 kB / 495.2 MB, free: 17.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.3396, allocations: 1.594 kB / 495.2 MB, free: 17.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.373e-05/0.3396, allocations: 5.469 kB / 495.2 MB, free: 17.51 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001462/0.3397, allocations: 56.59 kB / 495.3 MB, free: 17.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.3397, allocations: 0 / 495.3 MB, free: 17.46 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.3398, allocations: 1.781 kB / 495.3 MB, free: 17.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.3398, allocations: 4 kB / 495.3 MB, free: 17.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.558e-05/0.3399, allocations: 22.94 kB / 495.3 MB, free: 17.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003766/0.3403, allocations: 261.4 kB / 495.6 MB, free: 17.17 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.57e-05/0.3404, allocations: 32.08 kB / 495.6 MB, free: 17.14 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.771e-05/0.3404, allocations: 16.84 kB / 495.6 MB, free: 17.13 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.61e-05/0.3404, allocations: 4.703 kB / 495.6 MB, free: 17.13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.823e-05/0.3405, allocations: 35.62 kB / 495.7 MB, free: 17.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.3405, allocations: 3.938 kB / 495.7 MB, free: 17.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002372/0.3407, allocations: 58.11 kB / 495.7 MB, free: 17.05 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.736e-05/0.3407, allocations: 78.17 kB / 495.8 MB, free: 16.95 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.272e-05/0.3408, allocations: 115.4 kB / 495.9 MB, free: 16.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.326e-05/0.3408, allocations: 30.95 kB / 495.9 MB, free: 16.81 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.75e-05/0.3409, allocations: 87.56 kB / 496 MB, free: 16.72 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.861e-05/0.3409, allocations: 6.438 kB / 496 MB, free: 16.72 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-05/0.341, allocations: 17.52 kB / 496.1 MB, free: 16.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.427e-05/0.341, allocations: 321.8 kB / 496.4 MB, free: 16.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.641e-05/0.3411, allocations: 12.78 kB / 496.4 MB, free: 16.38 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.563e-05/0.3412, allocations: 26.45 kB / 496.4 MB, free: 16.36 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.649e-05/0.3412, allocations: 32 kB / 496.4 MB, free: 16.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3413, allocations: 0 / 496.4 MB, free: 16.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001327/0.3414, allocations: 63.09 kB / 496.5 MB, free: 16.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.3414, allocations: 5.438 kB / 496.5 MB, free: 16.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.3414, allocations: 0.6562 kB / 496.5 MB, free: 16.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.3415, allocations: 1.594 kB / 496.5 MB, free: 16.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.932e-05/0.3415, allocations: 3.609 kB / 496.5 MB, free: 16.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.3416, allocations: 1.656 kB / 496.5 MB, free: 16.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.845e-05/0.3416, allocations: 11.98 kB / 496.5 MB, free: 16.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.153e-06/0.3416, allocations: 0.7969 kB / 496.5 MB, free: 16.29 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 7.134e-05/0.3417, allocations: 117.3 kB / 496.6 MB, free: 16.17 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.473e-05/0.3418, allocations: 7.312 kB / 496.6 MB, free: 16.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.097e-05/0.3418, allocations: 8.891 kB / 496.7 MB, free: 16.15 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.3418, allocations: 5.422 kB / 496.7 MB, free: 16.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3418, allocations: 3.984 kB / 496.7 MB, free: 16.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.3418, allocations: 1.781 kB / 496.7 MB, free: 16.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001453/0.342, allocations: 163 kB / 496.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.342, allocations: 4 kB / 496.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.121e-05/0.342, allocations: 4.844 kB / 496.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.342, allocations: 0 / 496.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.736e-06/0.342, allocations: 2.094 kB / 496.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.566e-06/0.342, allocations: 4.547 kB / 496.8 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3421, allocations: 0 / 496.8 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000158/0.3422, allocations: 155.1 kB / 497 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.116e-05/0.3423, allocations: 86.67 kB / 497.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.117e-05/0.3423, allocations: 1.766 kB / 497.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.04e-05/0.3424, allocations: 8.219 kB / 497.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.34e-05/0.3425, allocations: 6.672 kB / 497.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.664e-06/0.3425, allocations: 1.844 kB / 497.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.662e-05/0.3425, allocations: 94.91 kB / 497.2 MB, free: 15.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3425, allocations: 0 / 497.2 MB, free: 15.61 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002238/0.3428, allocations: 9.875 kB / 497.2 MB, free: 15.61 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 0.0001214/0.3429, allocations: 104.5 kB / 497.3 MB, free: 15.51 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002137/0.3431, allocations: 25.94 kB / 497.3 MB, free: 15.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3431, allocations: 0 / 497.3 MB, free: 15.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.102e-05/0.3432, allocations: 15.05 kB / 497.3 MB, free: 15.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002356/0.3434, allocations: 1.375 kB / 497.3 MB, free: 15.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003259/0.3438, allocations: 133.7 kB / 497.5 MB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001719/0.344, allocations: 0.6835 MB / 498.2 MB, free: 14.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.156e-05/0.344, allocations: 2.266 kB / 498.2 MB, free: 14.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.339e-05/0.344, allocations: 13.41 kB / 498.2 MB, free: 14.66 MB / 382.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3441, allocations: 0 / 498.2 MB, free: 14.66 MB / 382.1 MB Notification: Performance of Templates: time 0.003319/0.3474, allocations: 0.5895 MB / 498.8 MB, free: 14.59 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)