Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json 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/IDEAS 3.0.0-master/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.009236/0.009236, allocations: 170.6 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7788/0.7788, allocations: 135.2 MB / 151 MB, free: 13.84 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.638/1.638, allocations: 223.2 MB / 406.9 MB, free: 3.219 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 97.28 kB / 489.9 MB, free: 10.93 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005127/0.0005127, allocations: 16 kB / 0.5692 GB, free: 14.07 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4778/0.4784, allocations: 82.3 MB / 0.6495 GB, free: 36.15 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6745/1.153, allocations: 362.9 MB / 1.004 GB, free: 10.61 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002786/1.153, allocations: 103.1 kB / 1.004 GB, free: 10.55 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.9007/2.054, allocations: 308.2 MB / 1.305 GB, free: 17.25 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.854e-06/2.054, allocations: 0 / 1.305 GB, free: 17.25 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.106e-05/2.054, allocations: 28.2 kB / 1.305 GB, free: 17.22 MB / 0.6823 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.002273/2.056, allocations: 1.414 MB / 1.306 GB, free: 15.75 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/2.056, allocations: 8.031 kB / 1.306 GB, free: 15.74 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.995e-05/2.057, allocations: 106.5 kB / 1.307 GB, free: 15.62 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001514/2.057, allocations: 122.5 kB / 1.307 GB, free: 15.5 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001132/2.058, allocations: 0.6795 MB / 1.307 GB, free: 14.79 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.419e-05/2.058, allocations: 49.31 kB / 1.307 GB, free: 14.73 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.636e-05/2.058, allocations: 64 kB / 1.307 GB, free: 14.67 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009181/2.059, allocations: 0.6936 MB / 1.308 GB, free: 13.94 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/2.059, allocations: 0 / 1.308 GB, free: 13.94 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.25e-05/2.059, allocations: 24 kB / 1.308 GB, free: 13.91 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/2.059, allocations: 15.95 kB / 1.308 GB, free: 13.9 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006977/2.06, allocations: 472.9 kB / 1.309 GB, free: 13.44 MB / 0.6823 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.002941/2.063, allocations: 2.612 MB / 1.311 GB, free: 10.7 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006884/2.063, allocations: 403.2 kB / 1.312 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002189/2.064, allocations: 344.4 kB / 1.312 GB, free: 9.879 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004637/2.064, allocations: 361.4 kB / 1.312 GB, free: 9.492 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=37): time 1.934e-06/2.064, allocations: 0 / 1.312 GB, free: 9.492 MB / 0.6823 GB Notification: Performance of matching and sorting (n=37): time 0.001375/2.065, allocations: 0.8785 MB / 1.313 GB, free: 8.582 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/2.066, allocations: 243.5 kB / 1.313 GB, free: 8.289 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006752/2.066, allocations: 0.734 MB / 1.314 GB, free: 7.535 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.978e-05/2.066, allocations: 41.7 kB / 1.314 GB, free: 7.488 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002532/2.067, allocations: 440.9 kB / 1.315 GB, free: 7.051 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 9.163e-05/2.067, allocations: 122.3 kB / 1.315 GB, free: 6.93 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.3e-05/2.067, allocations: 8 kB / 1.315 GB, free: 6.922 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 9.871e-05/2.067, allocations: 337.8 kB / 1.315 GB, free: 6.586 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004029/2.067, allocations: 229.1 kB / 1.315 GB, free: 6.363 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004685/2.068, allocations: 436 kB / 1.316 GB, free: 5.859 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004124/2.068, allocations: 286 kB / 1.316 GB, free: 5.57 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/2.068, allocations: 0 / 1.316 GB, free: 5.57 MB / 0.6823 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00115/2.069, allocations: 0.8034 MB / 1.317 GB, free: 4.758 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001703/2.069, allocations: 1.082 MB / 1.318 GB, free: 3.586 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/2.069, allocations: 4 kB / 1.318 GB, free: 3.582 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/2.069, allocations: 4 kB / 1.318 GB, free: 3.578 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008795/2.07, allocations: 163.8 kB / 1.318 GB, free: 3.418 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000627/2.071, allocations: 1.782 MB / 1.32 GB, free: 1.566 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007709/2.072, allocations: 127.3 kB / 1.32 GB, free: 1.441 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.894e-05/2.072, allocations: 35.98 kB / 1.32 GB, free: 1.406 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 8.466e-06/2.072, allocations: 5.094 kB / 1.32 GB, free: 1.402 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001045/2.073, allocations: 0.7049 MB / 1.32 GB, free: 0.6914 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/2.073, allocations: 8.328 kB / 1.32 GB, free: 0.6836 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.881e-06/2.073, allocations: 12 kB / 1.32 GB, free: 0.6719 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005104/2.073, allocations: 131.8 kB / 1.321 GB, free: 0.543 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/2.073, allocations: 4 kB / 1.321 GB, free: 0.5391 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006605/2.074, allocations: 115.5 kB / 1.321 GB, free: 436 kB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.826e-05/2.074, allocations: 31.98 kB / 1.321 GB, free: 404 kB / 0.6823 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.0003363/2.075, allocations: 353 kB / 1.321 GB, free: 36 kB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2998/2.374, allocations: 92.25 kB / 1.321 GB, free: 165.7 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002102/2.376, allocations: 0.7505 MB / 1.322 GB, free: 165.6 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.677e-05/2.376, allocations: 9 kB / 1.322 GB, free: 165.6 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/2.376, allocations: 1.25 kB / 1.322 GB, free: 165.6 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.868e-06/2.376, allocations: 3.062 kB / 1.322 GB, free: 165.6 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002775/2.379, allocations: 1.624 MB / 1.324 GB, free: 165.1 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/2.379, allocations: 4.281 kB / 1.324 GB, free: 165.1 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004717/2.38, allocations: 98.38 kB / 1.324 GB, free: 165.1 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.085e-06/2.38, allocations: 5.562 kB / 1.324 GB, free: 165.1 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.577e-05/2.38, allocations: 14.77 kB / 1.324 GB, free: 165.1 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005292/2.38, allocations: 1.767 MB / 1.325 GB, free: 163.4 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/2.38, allocations: 1.594 kB / 1.325 GB, free: 163.4 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001891/2.382, allocations: 1.283 MB / 1.327 GB, free: 162.9 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000397/2.383, allocations: 238.3 kB / 1.327 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/2.383, allocations: 13.95 kB / 1.327 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006314/2.383, allocations: 78.25 kB / 1.327 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/2.384, allocations: 51.84 kB / 1.327 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.375e-05/2.384, allocations: 22.67 kB / 1.327 GB, free: 162.8 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.000806/2.384, allocations: 0.5654 MB / 1.328 GB, free: 162.7 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.6e-07/2.384, allocations: 0 / 1.328 GB, free: 162.7 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001627/2.386, allocations: 0.5043 MB / 1.328 GB, free: 162.7 MB / 0.6823 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.002561/2.389, allocations: 2.387 MB / 1.33 GB, free: 161.4 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002116/2.391, allocations: 1.018 MB / 1.331 GB, free: 161.3 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/2.391, allocations: 0 / 1.331 GB, free: 161.3 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0006164/2.391, allocations: 366.4 kB / 1.332 GB, free: 161.3 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002002/2.393, allocations: 358.8 kB / 1.332 GB, free: 161.2 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003998/2.397, allocations: 3.906 MB / 1.336 GB, free: 158.5 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003666/2.398, allocations: 1.025 MB / 1.337 GB, free: 157.8 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0006158/2.398, allocations: 152.1 kB / 1.337 GB, free: 157.8 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000338/2.399, allocations: 335.9 kB / 1.337 GB, free: 157.8 MB / 0.6823 GB Notification: Performance of SimCode: time 7.52e-07/2.399, allocations: 0 / 1.337 GB, free: 157.8 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04398/2.443, allocations: 25.29 MB / 1.362 GB, free: 157.4 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001751/2.443, allocations: 245 kB / 1.362 GB, free: 157.1 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.062/5.505, allocations: 0 / 1.362 GB, free: 157.1 MB / 0.6823 GB (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.fmu > IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1)