Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.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.TwoWayValves,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValves",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.005942/0.005942, allocations: 96.22 kB / 15.73 MB, free: 6.055 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.001417/0.001417, allocations: 192.1 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7904/0.7904, allocations: 132.2 MB / 422.7 MB, free: 1.703 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001825/0.001825, allocations: 69.11 kB / 0.5809 GB, free: 1.121 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.159/0.1608, allocations: 80.2 MB / 0.6592 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03088/0.1917, allocations: 29.82 MB / 0.6883 GB, free: 76 kB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01216/0.2039, allocations: 8.148 MB / 0.6963 GB, free: 7.902 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001261/0.2052, allocations: 27.81 kB / 0.6963 GB, free: 7.875 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001154/0.2064, allocations: 432.9 kB / 0.6967 GB, free: 7.449 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.003608/0.21, allocations: 1.379 MB / 0.6981 GB, free: 6.066 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.002716/0.2128, allocations: 1.14 MB / 0.6992 GB, free: 4.941 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.004341/0.2171, allocations: 3.54 MB / 0.7026 GB, free: 1.387 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001731/0.2189, allocations: 1.329 MB / 0.7039 GB, free: 40 kB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002733/0.2216, allocations: 1.687 MB / 0.7056 GB, free: 14.35 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002749/0.2244, allocations: 1.616 MB / 0.7072 GB, free: 12.73 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0003861/0.2248, allocations: 124 kB / 0.7073 GB, free: 12.61 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002103/0.2269, allocations: 1.03 MB / 0.7083 GB, free: 11.57 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0004958/0.2274, allocations: 402.7 kB / 0.7087 GB, free: 11.18 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0009679/0.2284, allocations: 0.7467 MB / 0.7094 GB, free: 10.43 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002824/0.2312, allocations: 2.215 MB / 0.7116 GB, free: 8.207 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2312, allocations: 0 / 0.7116 GB, free: 8.207 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.713e-06/0.2312, allocations: 0 / 0.7116 GB, free: 8.207 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.437e-05/0.2312, allocations: 0 / 0.7116 GB, free: 8.207 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002788/0.234, allocations: 1.716 MB / 0.7132 GB, free: 6.438 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/0.2341, allocations: 16.03 kB / 0.7133 GB, free: 6.422 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00011/0.2342, allocations: 94.7 kB / 0.7133 GB, free: 6.32 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003418/0.2346, allocations: 159.1 kB / 0.7135 GB, free: 6.164 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001682/0.2362, allocations: 0.9346 MB / 0.7144 GB, free: 5.172 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.241e-05/0.2363, allocations: 85.25 kB / 0.7145 GB, free: 5.09 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000186/0.2365, allocations: 116 kB / 0.7146 GB, free: 4.977 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.2376, allocations: 0.6318 MB / 0.7152 GB, free: 4.316 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/0.2376, allocations: 7.938 kB / 0.7152 GB, free: 4.309 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.185e-05/0.2377, allocations: 27.94 kB / 0.7153 GB, free: 4.281 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.423e-05/0.2377, allocations: 12 kB / 0.7153 GB, free: 4.27 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008821/0.2386, allocations: 460.9 kB / 0.7157 GB, free: 3.82 MB / 0.545 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.004266/0.2428, allocations: 2.872 MB / 0.7185 GB, free: 0.7969 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005998/0.2435, allocations: 307.2 kB / 0.7188 GB, free: 500 kB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000297/0.2438, allocations: 153.3 kB / 0.719 GB, free: 344 kB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003481/0.2441, allocations: 348.7 kB / 0.7193 GB, free: 15.92 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.983e-05/0.2442, allocations: 30.84 kB / 0.7193 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=33): time 3.717e-06/0.2442, allocations: 0 / 0.7193 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of matching and sorting (n=33): time 0.001269/0.2454, allocations: 0.5416 MB / 0.7198 GB, free: 15.34 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.052e-05/0.2455, allocations: 55.41 kB / 0.7199 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001037/0.2465, allocations: 0.9077 MB / 0.7208 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001079/0.2467, allocations: 57.7 kB / 0.7208 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004446/0.2471, allocations: 487.3 kB / 0.7213 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.798e-05/0.2472, allocations: 115 kB / 0.7214 GB, free: 13.69 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004107/0.2476, allocations: 295 kB / 0.7217 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001359/0.2478, allocations: 329.9 kB / 0.722 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004113/0.2482, allocations: 197.4 kB / 0.7222 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001407/0.2496, allocations: 1.147 MB / 0.7233 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008276/0.2504, allocations: 463.4 kB / 0.7238 GB, free: 10.89 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.2505, allocations: 0 / 0.7238 GB, free: 10.89 MB / 0.5606 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001295/0.2518, allocations: 0.6545 MB / 0.7244 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.2518, allocations: 4 kB / 0.7244 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.2518, allocations: 4.188 kB / 0.7244 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.2518, allocations: 8 kB / 0.7244 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001333/0.2532, allocations: 231.7 kB / 0.7246 GB, free: 9.984 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001762/0.2549, allocations: 2.961 MB / 0.7275 GB, free: 6.906 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003076/0.258, allocations: 0.695 MB / 0.7282 GB, free: 6.211 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.936e-05/0.2581, allocations: 27.98 kB / 0.7282 GB, free: 6.184 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007201/0.2588, allocations: 374.1 kB / 0.7286 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001487/0.2603, allocations: 1.162 MB / 0.7297 GB, free: 4.277 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007904/0.2611, allocations: 452.8 kB / 0.7302 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.957e-06/0.2612, allocations: 3.938 kB / 0.7302 GB, free: 3.785 MB / 0.5606 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001409/0.2626, allocations: 0.6671 MB / 0.7308 GB, free: 3.109 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.1e-05/0.2626, allocations: 4 kB / 0.7308 GB, free: 3.105 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.2626, allocations: 4 kB / 0.7308 GB, free: 3.102 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/0.2626, allocations: 8 kB / 0.7308 GB, free: 3.094 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006456/0.2633, allocations: 160.1 kB / 0.731 GB, free: 2.938 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.2633, allocations: 12 kB / 0.731 GB, free: 2.926 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004229/0.2675, allocations: 0.9653 MB / 0.7319 GB, free: 1.961 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.706e-05/0.2676, allocations: 27.92 kB / 0.732 GB, free: 1.934 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000292/0.2679, allocations: 241 kB / 0.7322 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.2681, allocations: 99.34 kB / 0.7323 GB, free: 1.594 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001148/0.2692, allocations: 0.5202 MB / 0.7328 GB, free: 1.059 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.26e-05/0.2692, allocations: 4 kB / 0.7328 GB, free: 1.055 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.2692, allocations: 0 / 0.7328 GB, free: 1.055 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.2693, allocations: 3.984 kB / 0.7328 GB, free: 1.051 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001965/0.2712, allocations: 1.249 MB / 0.734 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-06/0.2712, allocations: 0 / 0.734 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004975/0.2717, allocations: 111.9 kB / 0.7341 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.897e-06/0.2718, allocations: 7.938 kB / 0.7341 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.164e-05/0.2718, allocations: 20.11 kB / 0.7342 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00166/0.2735, allocations: 2.946 MB / 0.737 GB, free: 12.53 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.2735, allocations: 0 / 0.737 GB, free: 12.53 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008967/0.2744, allocations: 0.5688 MB / 0.7376 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002743/0.2747, allocations: 212.3 kB / 0.7378 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.2748, allocations: 15.92 kB / 0.7378 GB, free: 11.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004235/0.2752, allocations: 31.97 kB / 0.7378 GB, free: 11.66 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.663e-05/0.2753, allocations: 27.91 kB / 0.7379 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.078e-05/0.2753, allocations: 15.98 kB / 0.7379 GB, free: 11.62 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0007863/0.2761, allocations: 0.6123 MB / 0.7385 GB, free: 11 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/0.2761, allocations: 0 / 0.7385 GB, free: 11 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001361/0.2775, allocations: 0.5419 MB / 0.739 GB, free: 10.46 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001851/0.2794, allocations: 1.345 MB / 0.7403 GB, free: 9.094 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002451/0.2818, allocations: 0.8461 MB / 0.7411 GB, free: 8.254 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2818, allocations: 0 / 0.7411 GB, free: 8.254 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0005555/0.2824, allocations: 228.4 kB / 0.7414 GB, free: 8.031 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001721/0.2841, allocations: 419.6 kB / 0.7418 GB, free: 7.637 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009444/0.2936, allocations: 6.557 MB / 0.7482 GB, free: 0.8789 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006363/0.2943, allocations: 1.021 MB / 0.7492 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0008486/0.2951, allocations: 218.8 kB / 0.7494 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004586/0.2956, allocations: 367.2 kB / 0.7497 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of SimCode: time 5.61e-07/0.2956, allocations: 0 / 0.7497 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0682/0.3638, allocations: 33.5 MB / 0.7824 GB, free: 14.31 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.26/13.63, allocations: 6.812 kB / 0.7824 GB, free: 14.31 MB / 0.6231 GB (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)