Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001465/0.001465, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001035/0.001035, allocations: 97.88 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2273/0.2273, allocations: 45.15 MB / 383.8 MB, free: 304 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.943e-05/1.946e-05, allocations: 0 / 453.3 MB, free: 75.76 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1463/0.1463, allocations: 63.25 MB / 0.5045 GB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.067/8.214, allocations: 2.76 GB / 3.264 GB, free: 148 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002636/8.214, allocations: 82.78 kB / 3.264 GB, free: 147.9 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.8901/9.104, allocations: 216.2 MB / 3.476 GB, free: 93 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.194e-06/9.104, allocations: 0 / 3.476 GB, free: 93 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.88e-05/9.104, allocations: 7.625 kB / 3.476 GB, free: 93 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.006024/9.11, allocations: 1.171 MB / 3.477 GB, free: 92.35 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.01e-05/9.11, allocations: 7.625 kB / 3.477 GB, free: 92.35 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001994/9.112, allocations: 227.9 kB / 3.477 GB, free: 92.31 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007988/9.113, allocations: 366.5 kB / 3.477 GB, free: 92.04 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.518e-05/9.113, allocations: 15.88 kB / 3.477 GB, free: 92.03 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.812e-05/9.113, allocations: 15.81 kB / 3.477 GB, free: 92.03 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005897/9.114, allocations: 296.9 kB / 3.478 GB, free: 91.93 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006006/9.115, allocations: 383.7 kB / 3.478 GB, free: 91.7 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/9.115, allocations: 7.438 kB / 3.478 GB, free: 91.7 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.194e-05/9.115, allocations: 0 / 3.478 GB, free: 91.7 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/9.115, allocations: 11.45 kB / 3.478 GB, free: 91.7 MB / 0.5261 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.0197/9.134, allocations: 10.84 MB / 3.489 GB, free: 84.19 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004855/9.135, allocations: 236.5 kB / 3.489 GB, free: 84.09 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001912/9.135, allocations: 125.5 kB / 3.489 GB, free: 84.04 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04594/9.181, allocations: 26.73 MB / 3.515 GB, free: 66.21 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.929e-05/9.181, allocations: 38.5 kB / 3.515 GB, free: 66.17 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=24): time 3.176e-06/9.181, allocations: 0 / 3.515 GB, free: 66.17 MB / 0.5261 GB Notification: Performance of matching and sorting (n=24): time 0.001925/9.183, allocations: 0.5009 MB / 3.516 GB, free: 66.02 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/9.183, allocations: 110.8 kB / 3.516 GB, free: 65.89 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00033/9.184, allocations: 226.3 kB / 3.516 GB, free: 65.75 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.619e-05/9.184, allocations: 25.7 kB / 3.516 GB, free: 65.71 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/9.184, allocations: 213.7 kB / 3.516 GB, free: 65.54 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 8.058e-05/9.184, allocations: 88.95 kB / 3.516 GB, free: 65.47 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.708e-05/9.184, allocations: 0 / 3.516 GB, free: 65.47 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.703e-05/9.184, allocations: 342 kB / 3.516 GB, free: 65.14 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001367/9.184, allocations: 82.92 kB / 3.517 GB, free: 65.11 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/9.184, allocations: 176.7 kB / 3.517 GB, free: 64.96 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006199/9.185, allocations: 160.1 kB / 3.517 GB, free: 64.91 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/9.185, allocations: 3.688 kB / 3.517 GB, free: 64.91 MB / 0.5261 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008935/9.186, allocations: 364.3 kB / 3.517 GB, free: 64.77 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/9.186, allocations: 3.594 kB / 3.517 GB, free: 64.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.439e-05/9.186, allocations: 7.922 kB / 3.517 GB, free: 64.76 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.58e-05/9.186, allocations: 3.969 kB / 3.517 GB, free: 64.76 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003397/9.186, allocations: 89.94 kB / 3.517 GB, free: 64.75 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/9.186, allocations: 3.969 kB / 3.517 GB, free: 64.75 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003884/9.187, allocations: 55.09 kB / 3.517 GB, free: 64.73 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.003e-05/9.187, allocations: 15.53 kB / 3.517 GB, free: 64.73 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001098/9.187, allocations: 119.3 kB / 3.518 GB, free: 64.62 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007683/9.188, allocations: 292.8 kB / 3.518 GB, free: 64.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.414e-05/9.188, allocations: 35.45 kB / 3.518 GB, free: 64.48 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001757/9.19, allocations: 1.634 MB / 3.519 GB, free: 63.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.622e-05/9.19, allocations: 22.31 kB / 3.519 GB, free: 63.69 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/9.19, allocations: 3.469 kB / 3.519 GB, free: 63.69 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/9.19, allocations: 0 / 3.519 GB, free: 63.69 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008734/9.19, allocations: 0.837 MB / 3.52 GB, free: 63.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/9.19, allocations: 0 / 3.52 GB, free: 63.21 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003011/9.191, allocations: 82.89 kB / 3.52 GB, free: 63.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.264e-06/9.191, allocations: 0 / 3.52 GB, free: 63.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.318e-05/9.191, allocations: 11.8 kB / 3.52 GB, free: 63.19 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/9.191, allocations: 0 / 3.52 GB, free: 63.19 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/9.191, allocations: 7.312 kB / 3.52 GB, free: 63.19 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/9.192, allocations: 0.9182 MB / 3.521 GB, free: 62.71 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002283/9.192, allocations: 211.8 kB / 3.521 GB, free: 62.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.512e-05/9.192, allocations: 0 / 3.521 GB, free: 62.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003253/9.193, allocations: 36.53 kB / 3.522 GB, free: 62.53 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.887e-05/9.193, allocations: 40.11 kB / 3.522 GB, free: 62.52 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.466e-05/9.193, allocations: 13.19 kB / 3.522 GB, free: 62.52 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002938/9.193, allocations: 285.3 kB / 3.522 GB, free: 62.36 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.11e-07/9.193, allocations: 0 / 3.522 GB, free: 62.36 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005126/9.198, allocations: 1.013 MB / 3.523 GB, free: 62.15 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009676/9.208, allocations: 2.787 MB / 3.526 GB, free: 60.88 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0008069/9.209, allocations: 461.7 kB / 3.526 GB, free: 60.69 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/9.209, allocations: 0.625 kB / 3.526 GB, free: 60.69 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0004164/9.209, allocations: 426.9 kB / 3.526 GB, free: 60.48 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/9.21, allocations: 160.2 kB / 3.527 GB, free: 60.45 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00506/9.215, allocations: 1.47 MB / 3.528 GB, free: 59.76 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004533/9.216, allocations: 0.9674 MB / 3.529 GB, free: 59.05 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0005179/9.216, allocations: 266.2 kB / 3.529 GB, free: 59.02 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002538/9.217, allocations: 233 kB / 3.529 GB, free: 58.84 MB / 0.5261 GB Notification: Performance of SimCode: time 1.352e-06/9.217, allocations: 0 / 3.529 GB, free: 58.84 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08294/9.3, allocations: 34.97 MB / 3.564 GB, free: 49.62 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002614/9.3, allocations: 183.1 kB / 3.564 GB, free: 49.43 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.183/12.48, allocations: 3.938 kB / 3.564 GB, free: 49.43 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat does not exist to compare? outputFormat=mat