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/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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001195/0.001196, allocations: 100.2 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.001461/0.001461, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.147/2.147, allocations: 223.2 MB / 239.9 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.168/1.168, allocations: 132.2 MB / 423.2 MB, free: 2.156 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006064/0.0006065, allocations: 17.08 kB / 0.5033 GB, free: 4.164 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9756/0.9763, allocations: 81.57 MB / 0.583 GB, free: 4.012 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor): time 0.0302/1.007, allocations: 19.6 MB / 0.6021 GB, free: 6.285 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01537/1.022, allocations: 5.644 MB / 0.6076 GB, free: 1.949 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00275/1.025, allocations: 22.41 kB / 0.6076 GB, free: 1.938 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002476/1.027, allocations: 358 kB / 0.608 GB, free: 1.656 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007325/1.035, allocations: 1.134 MB / 0.6091 GB, free: 0.7422 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004891/1.04, allocations: 1.079 MB / 0.6101 GB, free: 16 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004795/1.044, allocations: 1.214 MB / 0.6113 GB, free: 15.23 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002337/1.047, allocations: 0.587 MB / 0.6119 GB, free: 14.87 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003146/1.05, allocations: 0.6558 MB / 0.6125 GB, free: 14.47 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001994/1.052, allocations: 0.5106 MB / 0.613 GB, free: 14.18 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004487/1.052, allocations: 39.14 kB / 0.6131 GB, free: 14.17 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003876/1.056, allocations: 0.8944 MB / 0.6139 GB, free: 13.71 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006967/1.057, allocations: 166.5 kB / 0.6141 GB, free: 13.59 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009232/1.058, allocations: 198.3 kB / 0.6143 GB, free: 13.47 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003383/1.061, allocations: 1.025 MB / 0.6153 GB, free: 12.81 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/1.061, allocations: 1.5 kB / 0.6153 GB, free: 12.81 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.447e-06/1.061, allocations: 0 / 0.6153 GB, free: 12.81 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.866e-05/1.062, allocations: 0 / 0.6153 GB, free: 12.81 MB / 462.1 MB 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.005376/1.067, allocations: 1.261 MB / 0.6165 GB, free: 11.8 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001199/1.067, allocations: 10.28 kB / 0.6165 GB, free: 11.8 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005058/1.068, allocations: 100.7 kB / 0.6166 GB, free: 11.71 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006674/1.068, allocations: 113.2 kB / 0.6167 GB, free: 11.65 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003307/1.072, allocations: 0.6367 MB / 0.6174 GB, free: 11.15 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001586/1.072, allocations: 51.62 kB / 0.6174 GB, free: 11.12 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003437/1.072, allocations: 66.38 kB / 0.6175 GB, free: 11.1 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002436/1.075, allocations: 0.6589 MB / 0.6181 GB, free: 10.67 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.822e-05/1.075, allocations: 5.469 kB / 0.6181 GB, free: 10.66 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.815e-05/1.075, allocations: 25.98 kB / 0.6182 GB, free: 10.64 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.659e-05/1.075, allocations: 13.34 kB / 0.6182 GB, free: 10.64 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001538/1.076, allocations: 459.7 kB / 0.6186 GB, free: 10.43 MB / 462.1 MB 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.008994/1.085, allocations: 2.539 MB / 0.6211 GB, free: 8.281 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001857/1.087, allocations: 377.2 kB / 0.6214 GB, free: 8.102 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007007/1.088, allocations: 333.3 kB / 0.6218 GB, free: 7.719 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001314/1.089, allocations: 332.6 kB / 0.6221 GB, free: 7.477 MB / 462.1 MB Notification: Performance of pre-optimization done (n=37): time 1.018e-05/1.09, allocations: 0 / 0.6221 GB, free: 7.477 MB / 462.1 MB Notification: Performance of matching and sorting (n=37): time 0.003357/1.093, allocations: 0.7791 MB / 0.6228 GB, free: 7.051 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002467/1.093, allocations: 241.9 kB / 0.6231 GB, free: 6.766 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003301/1.096, allocations: 0.851 MB / 0.6239 GB, free: 6.109 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003103/1.097, allocations: 37.7 kB / 0.6239 GB, free: 6.066 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000893/1.098, allocations: 424.5 kB / 0.6243 GB, free: 5.645 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003652/1.098, allocations: 122.3 kB / 0.6245 GB, free: 5.523 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/1.098, allocations: 12 kB / 0.6245 GB, free: 5.512 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002739/1.099, allocations: 326 kB / 0.6248 GB, free: 5.188 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00084/1.1, allocations: 201.1 kB / 0.625 GB, free: 4.992 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001067/1.101, allocations: 367.6 kB / 0.6253 GB, free: 4.578 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009549/1.102, allocations: 259.6 kB / 0.6256 GB, free: 4.32 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.128e-05/1.102, allocations: 0 / 0.6256 GB, free: 4.32 MB / 462.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002751/1.104, allocations: 0.7252 MB / 0.6263 GB, free: 3.586 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009801/1.105, allocations: 1.09 MB / 0.6273 GB, free: 2.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.04e-05/1.105, allocations: 4 kB / 0.6273 GB, free: 2.406 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.486e-05/1.105, allocations: 4.094 kB / 0.6273 GB, free: 2.402 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001865/1.107, allocations: 183.7 kB / 0.6275 GB, free: 2.223 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001845/1.109, allocations: 1.777 MB / 0.6293 GB, free: 384 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001774/1.111, allocations: 111.5 kB / 0.6294 GB, free: 272 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002009/1.111, allocations: 35.92 kB / 0.6294 GB, free: 236 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.796e-05/1.111, allocations: 4 kB / 0.6294 GB, free: 232 kB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002348/1.114, allocations: 0.6393 MB / 0.63 GB, free: 15.58 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/1.114, allocations: 4 kB / 0.63 GB, free: 15.57 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/1.114, allocations: 4 kB / 0.63 GB, free: 15.57 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000974/1.115, allocations: 131.8 kB / 0.6302 GB, free: 15.44 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.55e-05/1.115, allocations: 4 kB / 0.6302 GB, free: 15.44 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001608/1.116, allocations: 111.4 kB / 0.6303 GB, free: 15.33 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001729/1.117, allocations: 27.98 kB / 0.6303 GB, free: 15.3 MB / 478.1 MB 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.0009879/1.118, allocations: 343.5 kB / 0.6306 GB, free: 14.95 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005444/1.118, allocations: 98.83 kB / 0.6307 GB, free: 14.85 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002824/1.121, allocations: 0.6709 MB / 0.6314 GB, free: 14.17 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.008e-05/1.121, allocations: 8 kB / 0.6314 GB, free: 14.16 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/1.121, allocations: 3.938 kB / 0.6314 GB, free: 14.16 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.622e-05/1.121, allocations: 7.984 kB / 0.6314 GB, free: 14.15 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004374/1.125, allocations: 1.523 MB / 0.6329 GB, free: 12.55 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.247e-05/1.126, allocations: 3.938 kB / 0.6329 GB, free: 12.55 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008658/1.126, allocations: 95.88 kB / 0.633 GB, free: 12.46 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.406e-05/1.126, allocations: 4 kB / 0.633 GB, free: 12.45 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.604e-05/1.127, allocations: 15.98 kB / 0.633 GB, free: 12.44 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001671/1.128, allocations: 1.766 MB / 0.6347 GB, free: 10.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/1.128, allocations: 0 / 0.6347 GB, free: 10.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003055/1.131, allocations: 1.167 MB / 0.6359 GB, free: 9.383 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008528/1.132, allocations: 231.7 kB / 0.6361 GB, free: 9.137 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002291/1.132, allocations: 15.94 kB / 0.6361 GB, free: 9.121 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008777/1.133, allocations: 56.02 kB / 0.6361 GB, free: 9.066 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001926/1.134, allocations: 43.92 kB / 0.6362 GB, free: 9.023 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.24e-05/1.134, allocations: 16 kB / 0.6362 GB, free: 9.008 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001328/1.135, allocations: 0.5709 MB / 0.6368 GB, free: 8.426 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.345e-06/1.135, allocations: 3.938 kB / 0.6368 GB, free: 8.422 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002225/1.137, allocations: 467.1 kB / 0.6372 GB, free: 7.965 MB / 478.1 MB 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.003195/1.14, allocations: 2.207 MB / 0.6394 GB, free: 5.715 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003852/1.144, allocations: 1.024 MB / 0.6404 GB, free: 4.668 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.518e-05/1.144, allocations: 0 / 0.6404 GB, free: 4.668 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001113/1.145, allocations: 351.9 kB / 0.6407 GB, free: 4.312 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003449/1.149, allocations: 371.2 kB / 0.6411 GB, free: 3.953 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007096/1.156, allocations: 3.937 MB / 0.6449 GB, free: 15.91 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008785/1.157, allocations: 1.017 MB / 0.6459 GB, free: 14.86 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000912/1.158, allocations: 150.1 kB / 0.646 GB, free: 14.71 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004593/1.158, allocations: 339.3 kB / 0.6464 GB, free: 14.38 MB / 494.1 MB Notification: Performance of SimCode: time 1.283e-06/1.158, allocations: 0 / 0.6464 GB, free: 14.38 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08475/1.243, allocations: 23.15 MB / 0.669 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004168/1.244, allocations: 248.3 kB / 0.6692 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.863/5.107, allocations: 0 / 0.6692 GB, free: 7.336 MB / 0.4981 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) Environment - environmentSimulation: