Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.313/2.313, allocations: 390.5 MB / 398 MB, free: 10.96 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.001126/0.001125, allocations: 187.8 kB / 491.2 MB, free: 1.551 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.602/1.602, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.0009214/0.0009214, allocations: 95.53 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.158e-05/2.159e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3161/0.3161, allocations: 143 MB / 1.212 GB, free: 39.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.17/1.486, allocations: 400.9 MB / 1.604 GB, free: 13.12 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002309/1.486, allocations: 98.11 kB / 1.604 GB, free: 13.07 MB / 1.026 GB Notification: Performance of FrontEnd - DAE generated: time 1.363/2.85, allocations: 305.1 MB / 1.902 GB, free: 305.2 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.663e-06/2.85, allocations: 0 / 1.902 GB, free: 305.2 MB / 1.151 GB Notification: Performance of Transformations before backend: time 7.062e-05/2.85, allocations: 28 kB / 1.902 GB, free: 305.2 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.002126/2.852, allocations: 1.251 MB / 1.903 GB, free: 303.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/2.852, allocations: 8.031 kB / 1.903 GB, free: 303.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002084/2.852, allocations: 118.6 kB / 1.903 GB, free: 303.7 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/2.853, allocations: 0.6652 MB / 1.904 GB, free: 303.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.334e-05/2.853, allocations: 20 kB / 1.904 GB, free: 303 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.056e-05/2.854, allocations: 43.98 kB / 1.904 GB, free: 303 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005907/2.854, allocations: 394.5 kB / 1.904 GB, free: 302.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007444/2.855, allocations: 0.5857 MB / 1.905 GB, free: 302 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/2.855, allocations: 3.938 kB / 1.905 GB, free: 302 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.688e-05/2.855, allocations: 0 / 1.905 GB, free: 302 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.507e-05/2.855, allocations: 16 kB / 1.905 GB, free: 302 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.003274/2.858, allocations: 2.468 MB / 1.907 GB, free: 299.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004538/2.859, allocations: 343.2 kB / 1.908 GB, free: 299 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002191/2.859, allocations: 180.8 kB / 1.908 GB, free: 298.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002695/2.859, allocations: 344.1 kB / 1.908 GB, free: 298.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003777/2.86, allocations: 321.1 kB / 1.909 GB, free: 298.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=37): time 3.056e-06/2.86, allocations: 0 / 1.909 GB, free: 298.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=37): time 0.001489/2.861, allocations: 0.6119 MB / 1.909 GB, free: 297.5 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.293e-05/2.861, allocations: 239.6 kB / 1.909 GB, free: 297.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005939/2.862, allocations: 0.5985 MB / 1.91 GB, free: 296.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 5.784e-05/2.862, allocations: 29.7 kB / 1.91 GB, free: 296.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002381/2.862, allocations: 439.9 kB / 1.91 GB, free: 296.1 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 7.582e-05/2.862, allocations: 114.3 kB / 1.911 GB, free: 296 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.086e-05/2.862, allocations: 0 / 1.911 GB, free: 296 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.535e-05/2.862, allocations: 338 kB / 1.911 GB, free: 295.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002438/2.863, allocations: 193 kB / 1.911 GB, free: 295.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003189/2.863, allocations: 379.2 kB / 1.911 GB, free: 295 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007999/2.864, allocations: 305.7 kB / 1.912 GB, free: 294.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/2.864, allocations: 4 kB / 1.912 GB, free: 294.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001455/2.865, allocations: 0.7587 MB / 1.912 GB, free: 294 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002328/2.865, allocations: 1.078 MB / 1.913 GB, free: 292.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/2.865, allocations: 4 kB / 1.913 GB, free: 292.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/2.866, allocations: 8.547 kB / 1.913 GB, free: 292.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009578/2.866, allocations: 161.4 kB / 1.914 GB, free: 292.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007406/2.867, allocations: 1.797 MB / 1.915 GB, free: 290.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009132/2.868, allocations: 107.5 kB / 1.915 GB, free: 290.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.058e-05/2.868, allocations: 35.92 kB / 1.916 GB, free: 290.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/2.868, allocations: 4 kB / 1.916 GB, free: 290.6 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001282/2.87, allocations: 0.6447 MB / 1.916 GB, free: 290 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/2.87, allocations: 0 / 1.916 GB, free: 290 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.997e-06/2.87, allocations: 8 kB / 1.916 GB, free: 290 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000489/2.87, allocations: 136.1 kB / 1.916 GB, free: 289.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/2.87, allocations: 4 kB / 1.916 GB, free: 289.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006896/2.871, allocations: 91.61 kB / 1.916 GB, free: 289.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.253e-05/2.871, allocations: 35.98 kB / 1.916 GB, free: 289.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 (65): * Single equations (assignments): 61 * 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.0001992/2.871, allocations: 156.3 kB / 1.917 GB, free: 289.6 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001191/2.872, allocations: 0.625 MB / 1.917 GB, free: 288.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.038e-05/2.872, allocations: 82.97 kB / 1.917 GB, free: 288.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001522/2.874, allocations: 0.7138 MB / 1.918 GB, free: 288.1 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/2.874, allocations: 4 kB / 1.918 GB, free: 288.1 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/2.874, allocations: 0 / 1.918 GB, free: 288.1 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-06/2.874, allocations: 7.984 kB / 1.918 GB, free: 288.1 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002173/2.876, allocations: 1.52 MB / 1.919 GB, free: 286.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/2.876, allocations: 0 / 1.919 GB, free: 286.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004401/2.877, allocations: 104 kB / 1.92 GB, free: 286.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.155e-06/2.877, allocations: 4 kB / 1.92 GB, free: 286.4 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.045e-05/2.877, allocations: 11.98 kB / 1.92 GB, free: 286.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005884/2.877, allocations: 1.766 MB / 1.921 GB, free: 284.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/2.877, allocations: 4.031 kB / 1.921 GB, free: 284.6 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001551/2.879, allocations: 1.225 MB / 1.922 GB, free: 283.3 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003005/2.879, allocations: 231.9 kB / 1.923 GB, free: 283.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/2.879, allocations: 7.938 kB / 1.923 GB, free: 283.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005735/2.88, allocations: 67.84 kB / 1.923 GB, free: 283 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/2.88, allocations: 47.92 kB / 1.923 GB, free: 282.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.144e-05/2.88, allocations: 23.98 kB / 1.923 GB, free: 282.9 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0004692/2.88, allocations: 459.1 kB / 1.923 GB, free: 282.5 MB / 1.151 GB Notification: Performance of sort global known variables: time 4.41e-07/2.88, allocations: 0 / 1.923 GB, free: 282.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001498/2.882, allocations: 498.8 kB / 1.924 GB, free: 282 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.002401/2.884, allocations: 2.318 MB / 1.926 GB, free: 279.7 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001597/2.886, allocations: 0.9172 MB / 1.927 GB, free: 278.7 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/2.886, allocations: 384 / 1.927 GB, free: 278.7 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004004/2.886, allocations: 327.7 kB / 1.927 GB, free: 278.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001642/2.888, allocations: 302.7 kB / 1.928 GB, free: 278.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002329/2.89, allocations: 1.259 MB / 1.929 GB, free: 276.8 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003417/2.891, allocations: 1.018 MB / 1.93 GB, free: 275.7 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0007219/2.891, allocations: 187.9 kB / 1.93 GB, free: 275.5 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000304/2.892, allocations: 319.3 kB / 1.93 GB, free: 275.2 MB / 1.151 GB Notification: Performance of SimCode: time 3.91e-07/2.892, allocations: 0 / 1.93 GB, free: 275.2 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04737/2.939, allocations: 22.7 MB / 1.952 GB, free: 252.7 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001769/2.939, allocations: 193.9 kB / 1.953 GB, free: 252.5 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.94/5.88, allocations: 0 / 1.953 GB, free: 252.5 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_res.mat does not exist to compare? outputFormat=mat