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/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/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/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(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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009585/0.0009582, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005827/0.005827, allocations: 171.7 kB / 16.27 MB, free: 6.652 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.608/1.608, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.3951/0.3951, allocations: 55.02 MB / 325.8 MB, free: 0.5859 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: Annex60 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.0005749/0.0005749, allocations: 16 kB / 397.3 MB, free: 11.35 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4043/0.4049, allocations: 60.73 MB / 458 MB, free: 38.14 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.01753/0.4224, allocations: 22.42 MB / 480.4 MB, free: 25.53 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01146/0.434, allocations: 9.057 MB / 489.5 MB, free: 19.58 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001087/0.4351, allocations: 27.28 kB / 489.5 MB, free: 19.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009519/0.4361, allocations: 361.6 kB / 489.8 MB, free: 19.39 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002191/0.4383, allocations: 0.9176 MB / 490.8 MB, free: 18.89 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002088/0.4404, allocations: 0.8643 MB / 491.6 MB, free: 18.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002505/0.4429, allocations: 2.536 MB / 494.2 MB, free: 17.49 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000777/0.4437, allocations: 0.6064 MB / 494.8 MB, free: 17.27 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001331/0.445, allocations: 0.7502 MB / 495.5 MB, free: 16.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001052/0.4461, allocations: 0.684 MB / 496.2 MB, free: 16.69 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001097/0.4462, allocations: 32.81 kB / 496.2 MB, free: 16.69 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001614/0.4478, allocations: 0.7676 MB / 497 MB, free: 16.49 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002251/0.448, allocations: 175 kB / 497.2 MB, free: 16.4 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000519/0.4486, allocations: 480.8 kB / 497.6 MB, free: 16.11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001478/0.4501, allocations: 1.322 MB / 499 MB, free: 15.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.4501, allocations: 0 / 499 MB, free: 15.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4501, allocations: 0 / 499 MB, free: 15.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.267e-05/0.4501, allocations: 0 / 499 MB, free: 15.68 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.002183/0.4523, allocations: 1.179 MB / 0.4884 GB, free: 14.83 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.332e-05/0.4524, allocations: 8.969 kB / 0.4884 GB, free: 14.83 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001199/0.4536, allocations: 236.3 kB / 0.4887 GB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001201/0.4548, allocations: 0.6597 MB / 0.4893 GB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.062e-05/0.4549, allocations: 48.62 kB / 0.4893 GB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001483/0.455, allocations: 67.34 kB / 0.4894 GB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004539/0.4596, allocations: 1.314 MB / 0.4907 GB, free: 13.85 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.189e-05/0.4596, allocations: 1.312 kB / 0.4907 GB, free: 13.85 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.334e-05/0.4597, allocations: 28.45 kB / 0.4907 GB, free: 13.83 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.969e-05/0.4597, allocations: 23.92 kB / 0.4907 GB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004162/0.4639, allocations: 1.078 MB / 0.4918 GB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004704/0.4686, allocations: 3.108 MB / 0.4948 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003994/0.4726, allocations: 0.9488 MB / 0.4958 GB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004627/0.4731, allocations: 202.3 kB / 0.496 GB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002996/0.4734, allocations: 121.8 kB / 0.4961 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003916/0.4774, allocations: 0.8742 MB / 0.4969 GB, free: 10.71 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 4.248e-06/0.4774, allocations: 3.938 kB / 0.4969 GB, free: 10.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=30): time 0.007606/0.485, allocations: 1.785 MB / 0.4987 GB, free: 10.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.201e-05/0.4851, allocations: 290.4 kB / 0.4989 GB, free: 10.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001205/0.4863, allocations: 0.8636 MB / 0.4998 GB, free: 9.668 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001081/0.4865, allocations: 39.55 kB / 0.4998 GB, free: 9.629 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003524/0.4868, allocations: 455.9 kB / 0.5003 GB, free: 9.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.4869, allocations: 101.9 kB / 0.5004 GB, free: 9.191 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001015/0.487, allocations: 63.53 kB / 0.5004 GB, free: 9.152 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.979e-05/0.4871, allocations: 326.3 kB / 0.5007 GB, free: 8.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001308/0.4884, allocations: 437.9 kB / 0.5012 GB, free: 8.742 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00137/0.4898, allocations: 0.6149 MB / 0.5018 GB, free: 8.418 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002435/0.4923, allocations: 0.9552 MB / 0.5027 GB, free: 8.016 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.4923, allocations: 5.312 kB / 0.5027 GB, free: 8.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00302/0.4953, allocations: 1.177 MB / 0.5038 GB, free: 7.648 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001348/0.4955, allocations: 234.7 kB / 0.5041 GB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.4955, allocations: 3.656 kB / 0.5041 GB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.865e-05/0.4955, allocations: 11.48 kB / 0.5041 GB, free: 7.375 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004766/0.5003, allocations: 0.859 MB / 0.5049 GB, free: 7.324 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006351/0.5066, allocations: 4.865 MB / 0.5097 GB, free: 3.133 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001741/0.5084, allocations: 217.6 kB / 0.5099 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.373e-05/0.5085, allocations: 27.8 kB / 0.5099 GB, free: 3.066 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.326e-06/0.5085, allocations: 2.688 kB / 0.5099 GB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00116/0.5097, allocations: 0.6202 MB / 0.5105 GB, free: 2.848 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.5097, allocations: 3.781 kB / 0.5105 GB, free: 2.848 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.027e-06/0.5097, allocations: 10.72 kB / 0.5105 GB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004987/0.5102, allocations: 128.7 kB / 0.5106 GB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.5102, allocations: 9.297 kB / 0.5107 GB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007663/0.511, allocations: 107.1 kB / 0.5108 GB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.496e-05/0.5111, allocations: 23.31 kB / 0.5108 GB, free: 2.785 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 12 (mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,$whenCondition1,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005334/0.5116, allocations: 360.5 kB / 0.5111 GB, free: 2.492 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001341/0.5117, allocations: 95.12 kB / 0.5112 GB, free: 2.441 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002726/0.5145, allocations: 0.9557 MB / 0.5121 GB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.5145, allocations: 2.75 kB / 0.5122 GB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.5145, allocations: 1.469 kB / 0.5122 GB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.5145, allocations: 6.906 kB / 0.5122 GB, free: 2.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.5157, allocations: 0.8993 MB / 0.513 GB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.5157, allocations: 0 / 0.513 GB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003949/0.5197, allocations: 0.7569 MB / 0.5138 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.456e-06/0.5197, allocations: 1.375 kB / 0.5138 GB, free: 1.324 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.983e-05/0.5197, allocations: 13.48 kB / 0.5138 GB, free: 1.316 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006234/0.526, allocations: 4.758 MB / 0.5184 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.526, allocations: 2.516 kB / 0.5184 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00395/0.53, allocations: 1.416 MB / 0.5198 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003546/0.5303, allocations: 167.9 kB / 0.52 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001351/0.5305, allocations: 15.98 kB / 0.52 GB, free: 11.24 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/0.5315, allocations: 155.8 kB / 0.5201 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00015/0.5317, allocations: 39.88 kB / 0.5202 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.253e-05/0.5317, allocations: 19.98 kB / 0.5202 GB, free: 11.03 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007889/0.5325, allocations: 0.5745 MB / 0.5208 GB, free: 10.45 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5325, allocations: 0 / 0.5208 GB, free: 10.45 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001471/0.534, allocations: 435.3 kB / 0.5212 GB, free: 10.02 MB / 398.1 MB 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000651/0.5347, allocations: 233.3 kB / 0.5214 GB, free: 9.797 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007697/0.5424, allocations: 2.043 MB / 0.5234 GB, free: 7.727 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.019e-05/0.5424, allocations: 192 / 0.5234 GB, free: 7.727 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00792/0.5504, allocations: 1.611 MB / 0.525 GB, free: 6.102 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002622/0.553, allocations: 394.5 kB / 0.5253 GB, free: 5.719 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005189/0.5582, allocations: 2.337 MB / 0.5276 GB, free: 3.348 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005348/0.5588, allocations: 0.9805 MB / 0.5286 GB, free: 2.34 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008146/0.5596, allocations: 155.2 kB / 0.5287 GB, free: 2.191 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000253/0.5599, allocations: 71.39 kB / 0.5288 GB, free: 2.121 MB / 398.1 MB Notification: Performance of SimCode: time 1.142e-06/0.5599, allocations: 0 / 0.5288 GB, free: 2.121 MB / 398.1 MB Notification: Performance of Templates: time 0.02914/0.589, allocations: 17.37 MB / 0.5458 GB, free: 0.9023 MB / 414.1 MB make -j1 -f Annex60_1.0.0_Annex60.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: