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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.554/2.554, allocations: 387.1 MB / 399.7 MB, free: 9.461 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001183/0.001184, allocations: 176.9 kB / 492.3 MB, free: 0.6172 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.845/1.845, allocations: 221.3 MB / 0.7871 GB, free: 12.85 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 99.08 kB / 0.9267 GB, free: 13.93 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.913e-05/3.915e-05, allocations: 11.98 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3242, allocations: 142.3 MB / 1.212 GB, free: 38.38 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.312/1.636, allocations: 400.8 MB / 1.604 GB, free: 13.05 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002833/1.636, allocations: 93.81 kB / 1.604 GB, free: 13 MB / 1.026 GB Notification: Performance of FrontEnd - DAE generated: time 1.499/3.135, allocations: 307.4 MB / 1.904 GB, free: 302.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.285e-06/3.135, allocations: 0 / 1.904 GB, free: 302.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001477/3.136, allocations: 31.98 kB / 1.904 GB, free: 302.8 MB / 1.151 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.003201/3.139, allocations: 1.244 MB / 1.905 GB, free: 301.6 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.428e-05/3.139, allocations: 12.03 kB / 1.905 GB, free: 301.5 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000275/3.139, allocations: 98.47 kB / 1.906 GB, free: 301.4 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000445/3.14, allocations: 118.6 kB / 1.906 GB, free: 301.3 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001705/3.141, allocations: 0.6678 MB / 1.906 GB, free: 300.6 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.93e-05/3.141, allocations: 53.31 kB / 1.906 GB, free: 300.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001556/3.142, allocations: 68 kB / 1.906 GB, free: 300.5 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/3.143, allocations: 0.643 MB / 1.907 GB, free: 299.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.052e-05/3.143, allocations: 7.938 kB / 1.907 GB, free: 299.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.378e-05/3.143, allocations: 23.95 kB / 1.907 GB, free: 299.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/3.143, allocations: 16 kB / 1.907 GB, free: 299.8 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000745/3.144, allocations: 437 kB / 1.908 GB, free: 299.3 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.003888/3.147, allocations: 2.605 MB / 1.91 GB, free: 296.6 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005188/3.148, allocations: 337.5 kB / 1.91 GB, free: 296.2 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002634/3.148, allocations: 192.8 kB / 1.911 GB, free: 296.1 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002847/3.149, allocations: 340.4 kB / 1.911 GB, free: 295.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000415/3.149, allocations: 337.1 kB / 1.911 GB, free: 295.3 MB / 1.151 GB Notification: Performance of pre-optimization done (n=37): time 5.19e-06/3.149, allocations: 112 / 1.911 GB, free: 295.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=37): time 0.001102/3.15, allocations: 0.5706 MB / 1.912 GB, free: 294.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.786e-05/3.15, allocations: 239.6 kB / 1.912 GB, free: 294.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000938/3.151, allocations: 0.7306 MB / 1.913 GB, free: 293.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.429e-05/3.151, allocations: 41.7 kB / 1.913 GB, free: 293.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002874/3.152, allocations: 440.3 kB / 1.913 GB, free: 293.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 9.606e-05/3.152, allocations: 118.4 kB / 1.913 GB, free: 293.1 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.338e-05/3.152, allocations: 8 kB / 1.913 GB, free: 293.1 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.924e-05/3.152, allocations: 333.9 kB / 1.914 GB, free: 292.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000294/3.152, allocations: 197.3 kB / 1.914 GB, free: 292.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000394/3.152, allocations: 397.6 kB / 1.914 GB, free: 292.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003752/3.153, allocations: 258.5 kB / 1.914 GB, free: 291.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/3.153, allocations: 0 / 1.914 GB, free: 291.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001128/3.154, allocations: 0.7487 MB / 1.915 GB, free: 291 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002995/3.154, allocations: 1.078 MB / 1.916 GB, free: 289.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/3.154, allocations: 4 kB / 1.916 GB, free: 289.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.403e-05/3.154, allocations: 4 kB / 1.916 GB, free: 289.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009178/3.155, allocations: 171.7 kB / 1.916 GB, free: 289.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007806/3.156, allocations: 1.785 MB / 1.918 GB, free: 287.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009438/3.157, allocations: 123.4 kB / 1.918 GB, free: 287.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-05/3.157, allocations: 35.98 kB / 1.918 GB, free: 287.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/3.157, allocations: 5.094 kB / 1.918 GB, free: 287.7 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009799/3.158, allocations: 0.6543 MB / 1.919 GB, free: 287 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/3.158, allocations: 4 kB / 1.919 GB, free: 287 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.908e-06/3.158, allocations: 4 kB / 1.919 GB, free: 287 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004964/3.159, allocations: 135.8 kB / 1.919 GB, free: 286.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/3.159, allocations: 7.938 kB / 1.919 GB, free: 286.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008615/3.16, allocations: 119.7 kB / 1.919 GB, free: 286.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.865e-05/3.16, allocations: 31.98 kB / 1.919 GB, free: 286.7 MB / 1.151 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 () * 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.0002233/3.16, allocations: 179.9 kB / 1.919 GB, free: 286.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001666/3.16, allocations: 102.7 kB / 1.919 GB, free: 286.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001313/3.161, allocations: 0.6965 MB / 1.92 GB, free: 285.7 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.45e-05/3.161, allocations: 4 kB / 1.92 GB, free: 285.7 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/3.161, allocations: 4 kB / 1.92 GB, free: 285.7 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/3.161, allocations: 4 kB / 1.92 GB, free: 285.7 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002348/3.164, allocations: 1.564 MB / 1.922 GB, free: 284.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.747e-06/3.164, allocations: 4 kB / 1.922 GB, free: 284.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004339/3.164, allocations: 99.81 kB / 1.922 GB, free: 284 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.486e-06/3.164, allocations: 4.125 kB / 1.922 GB, free: 284 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.722e-05/3.164, allocations: 15.98 kB / 1.922 GB, free: 284 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006731/3.165, allocations: 1.766 MB / 1.924 GB, free: 282.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/3.165, allocations: 4.031 kB / 1.924 GB, free: 282.1 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/3.166, allocations: 1.2 MB / 1.925 GB, free: 280.9 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004754/3.167, allocations: 239.6 kB / 1.925 GB, free: 280.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001859/3.167, allocations: 16 kB / 1.925 GB, free: 280.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007105/3.168, allocations: 75.98 kB / 1.925 GB, free: 280.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/3.168, allocations: 51.92 kB / 1.925 GB, free: 280.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.691e-05/3.168, allocations: 20 kB / 1.925 GB, free: 280.4 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0007541/3.169, allocations: 0.5557 MB / 1.926 GB, free: 279.9 MB / 1.151 GB Notification: Performance of sort global known variables: time 6.81e-07/3.169, allocations: 0 / 1.926 GB, free: 279.9 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001953/3.171, allocations: 0.4992 MB / 1.926 GB, free: 279.4 MB / 1.151 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) * 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.002838/3.174, allocations: 2.3 MB / 1.928 GB, free: 277 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001908/3.176, allocations: 0.9846 MB / 1.929 GB, free: 276 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/3.176, allocations: 4 kB / 1.929 GB, free: 276 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0005044/3.176, allocations: 324.5 kB / 1.93 GB, free: 275.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001989/3.178, allocations: 365.8 kB / 1.93 GB, free: 275.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003012/3.181, allocations: 1.317 MB / 1.931 GB, free: 274 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000444/3.182, allocations: 1.018 MB / 1.932 GB, free: 272.9 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.000928/3.183, allocations: 217 kB / 1.932 GB, free: 272.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000359/3.183, allocations: 327.3 kB / 1.933 GB, free: 272.4 MB / 1.151 GB Notification: Performance of SimCode: time 8.32e-07/3.183, allocations: 0 / 1.933 GB, free: 272.4 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05167/3.235, allocations: 27.32 MB / 1.959 GB, free: 245.4 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001908/3.235, allocations: 224.7 kB / 1.96 GB, free: 245.2 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.297/6.532, allocations: 3.938 kB / 1.96 GB, free: 245.2 MB / 1.151 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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_res.mat does not exist to compare? outputFormat=mat