Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo) Running command: translateModel(Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.2815/0.2815, allocations: 54.4 MB / 61.68 MB, free: 11.17 MB / 58.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001258/0.001258, allocations: 182.5 kB / 75.37 MB, free: 1.539 MB / 58.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.404/1.404, allocations: 194.2 MB / 283.2 MB, free: 3.48 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001708/0.001708, allocations: 112.3 kB / 341.3 MB, free: 9.367 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.162e-06/6.182e-06, allocations: 0 / 404.9 MB, free: 27.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1232, allocations: 57.66 MB / 462.6 MB, free: 1.961 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8246/0.9479, allocations: 340.4 MB / 0.7842 GB, free: 48.75 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002975/0.9483, allocations: 91.64 kB / 0.7843 GB, free: 48.7 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.092/2.04, allocations: 280.1 MB / 1.058 GB, free: 103.1 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000111/2.04, allocations: 30.58 kB / 1.058 GB, free: 103.1 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.002913/2.043, allocations: 1.187 MB / 1.059 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/2.043, allocations: 10.97 kB / 1.059 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001275/2.045, allocations: 217.2 kB / 1.059 GB, free: 102.5 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001886/2.047, allocations: 0.6575 MB / 1.06 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.418e-05/2.047, allocations: 17.94 kB / 1.06 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001715/2.047, allocations: 40.98 kB / 1.06 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009083/2.048, allocations: 412.9 kB / 1.06 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001052/2.049, allocations: 0.6216 MB / 1.061 GB, free: 102 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.152e-05/2.049, allocations: 5.531 kB / 1.061 GB, free: 102 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.791e-05/2.049, allocations: 8.812 kB / 1.061 GB, free: 102 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.356e-05/2.049, allocations: 17.28 kB / 1.061 GB, free: 102 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003794/2.053, allocations: 2.799 MB / 1.064 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005695/2.053, allocations: 337.5 kB / 1.064 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002394/2.054, allocations: 164.5 kB / 1.064 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002903/2.054, allocations: 116.5 kB / 1.064 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003509/2.054, allocations: 301.9 kB / 1.065 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=30): time 2.224e-06/2.054, allocations: 2.344 kB / 1.065 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=30): time 0.003665/2.058, allocations: 0.8729 MB / 1.065 GB, free: 100.1 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.864e-05/2.058, allocations: 290.6 kB / 1.066 GB, free: 99.75 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008665/2.059, allocations: 0.5688 MB / 1.066 GB, free: 99.61 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001208/2.059, allocations: 37.27 kB / 1.066 GB, free: 99.58 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002586/2.059, allocations: 332.4 kB / 1.067 GB, free: 99.43 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/2.06, allocations: 93.41 kB / 1.067 GB, free: 99.38 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.696e-05/2.06, allocations: 7.672 kB / 1.067 GB, free: 99.38 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 7.778e-05/2.06, allocations: 324 kB / 1.067 GB, free: 99.07 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003746/2.06, allocations: 226.9 kB / 1.067 GB, free: 99.07 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004986/2.061, allocations: 432.5 kB / 1.068 GB, free: 98.84 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004781/2.061, allocations: 256.2 kB / 1.068 GB, free: 98.83 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/2.061, allocations: 0 / 1.068 GB, free: 98.83 MB / 0.4948 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001208/2.062, allocations: 0.6596 MB / 1.069 GB, free: 98.76 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002819/2.063, allocations: 1.223 MB / 1.07 GB, free: 97.49 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/2.063, allocations: 3.719 kB / 1.07 GB, free: 97.49 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.44e-05/2.063, allocations: 7.531 kB / 1.07 GB, free: 97.49 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005411/2.068, allocations: 0.9468 MB / 1.071 GB, free: 97.49 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002486/2.071, allocations: 2.108 MB / 1.073 GB, free: 95.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002035/2.073, allocations: 226.3 kB / 1.073 GB, free: 95.71 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002246/2.073, allocations: 32.16 kB / 1.073 GB, free: 95.71 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/2.073, allocations: 3.812 kB / 1.073 GB, free: 95.71 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001016/2.074, allocations: 427.3 kB / 1.073 GB, free: 95.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/2.074, allocations: 3.719 kB / 1.073 GB, free: 95.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/2.074, allocations: 7.562 kB / 1.073 GB, free: 95.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005354/2.074, allocations: 132.6 kB / 1.074 GB, free: 95.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/2.075, allocations: 3.906 kB / 1.074 GB, free: 95.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/2.076, allocations: 106.2 kB / 1.074 GB, free: 95.68 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.739e-05/2.076, allocations: 26.16 kB / 1.074 GB, free: 95.68 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003322/2.076, allocations: 161.3 kB / 1.074 GB, free: 95.54 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003212/2.076, allocations: 84.69 kB / 1.074 GB, free: 95.5 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001427/2.078, allocations: 490.9 kB / 1.074 GB, free: 95.45 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.929e-06/2.078, allocations: 3.031 kB / 1.074 GB, free: 95.45 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.284e-05/2.078, allocations: 3.969 kB / 1.074 GB, free: 95.45 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/2.078, allocations: 0 / 1.074 GB, free: 95.45 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001381/2.079, allocations: 0.8293 MB / 1.075 GB, free: 95.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/2.079, allocations: 3.844 kB / 1.075 GB, free: 95.08 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004684/2.084, allocations: 0.8504 MB / 1.076 GB, free: 95.08 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.832e-05/2.084, allocations: 3.906 kB / 1.076 GB, free: 95.08 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001205/2.084, allocations: 10.33 kB / 1.076 GB, free: 95.08 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0055/2.09, allocations: 4.316 MB / 1.08 GB, free: 91.32 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/2.09, allocations: 0 / 1.08 GB, free: 91.32 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001929/2.092, allocations: 0.7974 MB / 1.081 GB, free: 91.16 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004759/2.092, allocations: 148.9 kB / 1.081 GB, free: 91.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004077/2.092, allocations: 9.844 kB / 1.081 GB, free: 91.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001479/2.094, allocations: 202.4 kB / 1.081 GB, free: 91.01 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/2.094, allocations: 37.23 kB / 1.081 GB, free: 91.01 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.583e-05/2.094, allocations: 22.41 kB / 1.081 GB, free: 91.01 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0007404/2.095, allocations: 437.7 kB / 1.082 GB, free: 90.92 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002273/2.097, allocations: 451.6 kB / 1.082 GB, free: 90.85 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * Number of discrete states: 8 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009767/2.098, allocations: 389.5 kB / 1.083 GB, free: 90.73 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008606/2.107, allocations: 1.946 MB / 1.085 GB, free: 90.66 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.494e-06/2.107, allocations: 0 / 1.085 GB, free: 90.66 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009965/2.117, allocations: 1.834 MB / 1.086 GB, free: 90.62 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001985/2.119, allocations: 295.2 kB / 1.087 GB, free: 90.62 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004487/2.123, allocations: 1.418 MB / 1.088 GB, free: 90.31 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008988/2.124, allocations: 1.079 MB / 1.089 GB, free: 89.6 MB / 0.4948 GB Notification: Performance of SimCode: time 1.332e-06/2.124, allocations: 3.969 kB / 1.089 GB, free: 89.6 MB / 0.4948 GB Notification: Performance of Templates: time 0.03117/2.155, allocations: 17.77 MB / 1.106 GB, free: 89.12 MB / 0.4948 GB make -j1 -f Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)