Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001142/0.001142, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.362/2.362, allocations: 390.3 MB / 0.6653 GB, free: 3.031 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003529/0.000353, allocations: 8 kB / 0.8146 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8576/0.858, allocations: 142.3 MB / 0.9536 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.01968/0.8777, allocations: 19.58 MB / 0.9727 GB, free: 8.703 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.009808/0.8876, allocations: 5.641 MB / 0.9782 GB, free: 4.184 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001493/0.8891, allocations: 23.34 kB / 0.9782 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001302/0.8904, allocations: 360.6 kB / 0.9786 GB, free: 3.883 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.004095/0.8945, allocations: 1.133 MB / 0.9797 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.003656/0.8982, allocations: 1.082 MB / 0.9808 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002991/0.9012, allocations: 1.221 MB / 0.9819 GB, free: 1.449 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001062/0.9023, allocations: 0.5825 MB / 0.9825 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001936/0.9042, allocations: 0.6607 MB / 0.9832 GB, free: 0.6875 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009919/0.9052, allocations: 0.5092 MB / 0.9837 GB, free: 400 kB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 9.521e-05/0.9053, allocations: 31.72 kB / 0.9837 GB, free: 400 kB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002192/0.9075, allocations: 0.8988 MB / 0.9846 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002163/0.9078, allocations: 166.2 kB / 0.9847 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0003127/0.9081, allocations: 197.7 kB / 0.9849 GB, free: 15.69 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001507/0.9096, allocations: 1.038 MB / 0.9859 GB, free: 15 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.9096, allocations: 4 kB / 0.9859 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.353e-06/0.9096, allocations: 4 kB / 0.9859 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.384e-05/0.9097, allocations: 0 / 0.9859 GB, free: 14.99 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002226/0.9119, allocations: 1.237 MB / 0.9871 GB, free: 13.7 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.912, allocations: 16.03 kB / 0.9872 GB, free: 13.68 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000108/0.9121, allocations: 90.52 kB / 0.9872 GB, free: 13.58 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001672/0.9122, allocations: 122.5 kB / 0.9874 GB, free: 13.46 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001078/0.9133, allocations: 0.6407 MB / 0.988 GB, free: 12.78 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.894e-05/0.9134, allocations: 49.31 kB / 0.988 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.228e-05/0.9135, allocations: 60 kB / 0.9881 GB, free: 12.67 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.9145, allocations: 0.6624 MB / 0.9887 GB, free: 11.97 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.9145, allocations: 3.984 kB / 0.9887 GB, free: 11.96 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.435e-05/0.9146, allocations: 27.94 kB / 0.9888 GB, free: 11.94 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.474e-05/0.9146, allocations: 12 kB / 0.9888 GB, free: 11.93 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007722/0.9154, allocations: 452.9 kB / 0.9892 GB, free: 11.48 MB / 0.7481 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003464/0.9189, allocations: 2.546 MB / 0.9917 GB, free: 8.801 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000715/0.9196, allocations: 373.7 kB / 0.9921 GB, free: 8.43 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003058/0.9199, allocations: 340.4 kB / 0.9924 GB, free: 8.023 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005269/0.9205, allocations: 333.6 kB / 0.9927 GB, free: 7.664 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=37): time 2.224e-06/0.9205, allocations: 0 / 0.9927 GB, free: 7.664 MB / 0.7481 GB Notification: Performance of matching and sorting (n=37): time 0.001352/0.9218, allocations: 0.7721 MB / 0.9934 GB, free: 6.863 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001228/0.922, allocations: 247.2 kB / 0.9937 GB, free: 6.566 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009594/0.9229, allocations: 0.8367 MB / 0.9945 GB, free: 5.707 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 5.331e-05/0.923, allocations: 37.95 kB / 0.9945 GB, free: 5.664 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003345/0.9233, allocations: 444.3 kB / 0.995 GB, free: 5.223 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.9235, allocations: 122.3 kB / 0.9951 GB, free: 5.102 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.922e-05/0.9235, allocations: 8 kB / 0.9951 GB, free: 5.094 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001268/0.9236, allocations: 329.9 kB / 0.9954 GB, free: 4.766 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003609/0.924, allocations: 201.1 kB / 0.9956 GB, free: 4.57 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004827/0.9245, allocations: 359.7 kB / 0.9959 GB, free: 4.16 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004257/0.9249, allocations: 259.6 kB / 0.9962 GB, free: 3.898 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.9249, allocations: 0 / 0.9962 GB, free: 3.898 MB / 0.7481 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001151/0.9261, allocations: 0.729 MB / 0.9969 GB, free: 3.156 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.000444/0.9265, allocations: 1.082 MB / 0.998 GB, free: 1.984 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.9266, allocations: 4 kB / 0.998 GB, free: 1.98 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.9266, allocations: 4.547 kB / 0.998 GB, free: 1.977 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.9276, allocations: 183.8 kB / 0.9981 GB, free: 1.797 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001035/0.9287, allocations: 1.777 MB / 0.9999 GB, free: 15.95 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007836/0.9295, allocations: 111.5 kB / 1 GB, free: 15.84 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.765e-05/0.9296, allocations: 31.92 kB / 1 GB, free: 15.81 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.9296, allocations: 8 kB / 1 GB, free: 15.8 MB / 0.7637 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001118/0.9307, allocations: 0.6428 MB / 1.001 GB, free: 15.15 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.9307, allocations: 7.984 kB / 1.001 GB, free: 15.14 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.895e-06/0.9308, allocations: 4 kB / 1.001 GB, free: 15.14 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005002/0.9313, allocations: 131.8 kB / 1.001 GB, free: 15.01 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.9313, allocations: 4 kB / 1.001 GB, free: 15.01 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006061/0.9319, allocations: 107.3 kB / 1.001 GB, free: 14.9 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.554e-05/0.9319, allocations: 24 kB / 1.001 GB, free: 14.88 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 12 ($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,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 63 * 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.0005208/0.9325, allocations: 358.6 kB / 1.001 GB, free: 14.51 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.9326, allocations: 94.86 kB / 1.001 GB, free: 14.42 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001194/0.9338, allocations: 0.675 MB / 1.002 GB, free: 13.73 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/0.9338, allocations: 4 kB / 1.002 GB, free: 13.72 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.9338, allocations: 0 / 1.002 GB, free: 13.72 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.9338, allocations: 0 / 1.002 GB, free: 13.72 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002098/0.9359, allocations: 1.531 MB / 1.003 GB, free: 12.12 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.936, allocations: 4.125 kB / 1.004 GB, free: 12.12 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004237/0.9364, allocations: 91.88 kB / 1.004 GB, free: 12.03 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.043e-06/0.9364, allocations: 96 / 1.004 GB, free: 12.03 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.425e-05/0.9364, allocations: 12 kB / 1.004 GB, free: 12.02 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000823/0.9373, allocations: 1.774 MB / 1.005 GB, free: 10.17 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.9373, allocations: 3.984 kB / 1.005 GB, free: 10.17 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001477/0.9388, allocations: 1.17 MB / 1.006 GB, free: 8.945 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003638/0.9391, allocations: 231.7 kB / 1.007 GB, free: 8.699 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/0.9393, allocations: 12 kB / 1.007 GB, free: 8.688 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005405/0.9398, allocations: 63.84 kB / 1.007 GB, free: 8.625 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/0.9399, allocations: 39.94 kB / 1.007 GB, free: 8.586 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.986e-05/0.94, allocations: 19.98 kB / 1.007 GB, free: 8.566 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0007399/0.9407, allocations: 0.567 MB / 1.007 GB, free: 7.988 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9407, allocations: 4 kB / 1.007 GB, free: 7.984 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001414/0.9422, allocations: 459.1 kB / 1.008 GB, free: 7.535 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * 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.002835/0.945, allocations: 2.22 MB / 1.01 GB, free: 5.266 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002263/0.9473, allocations: 1.028 MB / 1.011 GB, free: 4.219 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.9473, allocations: 0 / 1.011 GB, free: 4.219 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.000644/0.948, allocations: 351.1 kB / 1.011 GB, free: 3.863 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002045/0.95, allocations: 378.8 kB / 1.012 GB, free: 3.5 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004394/0.9544, allocations: 3.927 MB / 1.016 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005679/0.955, allocations: 1.017 MB / 1.017 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0006984/0.9557, allocations: 150 kB / 1.017 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004108/0.9561, allocations: 339.3 kB / 1.017 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of SimCode: time 1.292e-06/0.9562, allocations: 0 / 1.017 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04416/1, allocations: 23.17 MB / 1.04 GB, free: 7.156 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002308/1.001, allocations: 270.4 kB / 1.04 GB, free: 6.797 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.458/3.458, allocations: 4 kB / 1.04 GB, free: 6.793 MB / 0.795 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)