Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001416/0.001416, allocations: 100.6 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001629/0.001629, allocations: 199.9 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2131/0.2131, allocations: 45.91 MB / 344 MB, free: 12.07 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002943/0.0002944, allocations: 4 kB / 418 MB, free: 20.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1278, allocations: 63.48 MB / 481.5 MB, free: 5.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve): time 0.02644/0.1542, allocations: 24.21 MB / 0.4939 GB, free: 12.95 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2727/0.427, allocations: 14.76 MB / 0.5083 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007857/0.4278, allocations: 15.75 kB / 0.5083 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001137/0.429, allocations: 257.3 kB / 0.5086 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01263/0.4416, allocations: 3.548 MB / 0.512 GB, free: 11.1 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008517/0.4502, allocations: 2.492 MB / 0.5145 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001596/0.4518, allocations: 0.5852 MB / 0.515 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000503/0.4523, allocations: 231.7 kB / 0.5153 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001095/0.4534, allocations: 447.3 kB / 0.5157 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005781/0.4592, allocations: 2.95 MB / 0.5186 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001208/0.4593, allocations: 17.69 kB / 0.5186 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01772/0.4771, allocations: 7.289 MB / 0.5257 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002478/0.4774, allocations: 88.97 kB / 0.5258 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003237/0.4777, allocations: 116.2 kB / 0.5259 GB, free: 10.74 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00857/0.4863, allocations: 3.122 MB / 0.5289 GB, free: 9.398 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.4863, allocations: 0 / 0.5289 GB, free: 9.398 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.4863, allocations: 0 / 0.5289 GB, free: 9.398 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.4863, allocations: 3.844 kB / 0.5289 GB, free: 9.398 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.005675/0.492, allocations: 1.248 MB / 0.5302 GB, free: 8.559 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.4921, allocations: 9.125 kB / 0.5302 GB, free: 8.559 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001052/0.4922, allocations: 74.44 kB / 0.5302 GB, free: 8.512 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001957/0.4942, allocations: 250.9 kB / 0.5305 GB, free: 8.426 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005113/0.4947, allocations: 376.9 kB / 0.5308 GB, free: 8.148 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.123e-05/0.4947, allocations: 29.64 kB / 0.5309 GB, free: 8.145 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.89e-05/0.4948, allocations: 35.95 kB / 0.5309 GB, free: 8.145 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001462/0.4962, allocations: 0.6142 MB / 0.5315 GB, free: 7.898 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.4963, allocations: 2.719 kB / 0.5315 GB, free: 7.898 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.683e-05/0.4963, allocations: 15.17 kB / 0.5315 GB, free: 7.898 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.4963, allocations: 13.73 kB / 0.5315 GB, free: 7.895 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001593/0.4979, allocations: 0.6045 MB / 0.5321 GB, free: 7.75 MB / 382.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.003001/0.501, allocations: 2.651 MB / 0.5347 GB, free: 5.594 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001423/0.5024, allocations: 496.3 kB / 0.5352 GB, free: 5.457 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0505/0.5529, allocations: 26.99 MB / 0.5615 GB, free: 9.922 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.305e-05/0.553, allocations: 34.56 kB / 0.5616 GB, free: 9.879 MB / 414.1 MB Notification: Performance of pre-optimization done (n=25): time 2.484e-06/0.553, allocations: 2.625 kB / 0.5616 GB, free: 9.879 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.002939/0.5559, allocations: 0.8732 MB / 0.5624 GB, free: 9.164 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.328e-05/0.556, allocations: 106.8 kB / 0.5625 GB, free: 9.035 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005251/0.5566, allocations: 373 kB / 0.5629 GB, free: 8.742 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.103e-05/0.5566, allocations: 29.7 kB / 0.5629 GB, free: 8.711 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001954/0.5568, allocations: 221.3 kB / 0.5631 GB, free: 8.551 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.968e-05/0.5569, allocations: 90.58 kB / 0.5632 GB, free: 8.477 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.261e-05/0.557, allocations: 12.53 kB / 0.5632 GB, free: 8.473 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.5571, allocations: 345.3 kB / 0.5636 GB, free: 8.141 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004272/0.5575, allocations: 171.8 kB / 0.5637 GB, free: 8.016 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004837/0.558, allocations: 270 kB / 0.564 GB, free: 7.762 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004454/0.5585, allocations: 185 kB / 0.5642 GB, free: 7.641 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.5585, allocations: 7.953 kB / 0.5642 GB, free: 7.633 MB / 414.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001088/0.5596, allocations: 0.5013 MB / 0.5647 GB, free: 7.254 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004129/0.56, allocations: 1.052 MB / 0.5657 GB, free: 6.141 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.5601, allocations: 5.906 kB / 0.5657 GB, free: 6.137 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.5601, allocations: 4 kB / 0.5657 GB, free: 6.133 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004323/0.5605, allocations: 110.9 kB / 0.5658 GB, free: 6.035 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.5605, allocations: 8 kB / 0.5658 GB, free: 6.027 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004501/0.561, allocations: 77.64 kB / 0.5659 GB, free: 5.957 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.675e-05/0.561, allocations: 16.44 kB / 0.5659 GB, free: 5.945 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.215e-06/0.561, allocations: 4 kB / 0.5659 GB, free: 5.941 MB / 414.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000949/0.562, allocations: 440 kB / 0.5663 GB, free: 5.637 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.562, allocations: 5.062 kB / 0.5663 GB, free: 5.633 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.683e-06/0.562, allocations: 10.48 kB / 0.5663 GB, free: 5.625 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003947/0.5624, allocations: 107.5 kB / 0.5664 GB, free: 5.527 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.5625, allocations: 10.47 kB / 0.5664 GB, free: 5.523 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003547/0.5628, allocations: 70.67 kB / 0.5665 GB, free: 5.461 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.155e-05/0.5629, allocations: 22.05 kB / 0.5665 GB, free: 5.441 MB / 414.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: 4 (V1.state_b.phase,V1.state_a.phase,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 38 * 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.000286/0.5631, allocations: 234.6 kB / 0.5668 GB, free: 5.23 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.288e-05/0.5632, allocations: 35.62 kB / 0.5668 GB, free: 5.195 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002597/0.5658, allocations: 2.008 MB / 0.5688 GB, free: 3.84 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.465e-05/0.5659, allocations: 33.16 kB / 0.5688 GB, free: 3.816 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.5659, allocations: 7.188 kB / 0.5688 GB, free: 3.812 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.5659, allocations: 3.984 kB / 0.5688 GB, free: 3.809 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001024/0.5669, allocations: 1.048 MB / 0.5698 GB, free: 3.051 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.567, allocations: 0 / 0.5698 GB, free: 3.051 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003423/0.5673, allocations: 94.11 kB / 0.5699 GB, free: 2.965 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.5673, allocations: 0 / 0.5699 GB, free: 2.965 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.298e-05/0.5673, allocations: 8.438 kB / 0.5699 GB, free: 2.961 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.5674, allocations: 3.984 kB / 0.5699 GB, free: 2.957 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.5674, allocations: 3.953 kB / 0.5699 GB, free: 2.953 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00144/0.5688, allocations: 1.145 MB / 0.571 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002921/0.5691, allocations: 276.1 kB / 0.5713 GB, free: 1.859 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.884e-05/0.5692, allocations: 8.062 kB / 0.5713 GB, free: 1.855 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003427/0.5695, allocations: 39.22 kB / 0.5714 GB, free: 1.82 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.193e-05/0.5696, allocations: 46.86 kB / 0.5714 GB, free: 1.781 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.543e-05/0.5697, allocations: 10.81 kB / 0.5714 GB, free: 1.773 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004185/0.5701, allocations: 370.8 kB / 0.5718 GB, free: 1.496 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5701, allocations: 0 / 0.5718 GB, free: 1.496 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004472/0.5746, allocations: 1.168 MB / 0.5729 GB, free: 396 kB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse15.phase,$cse15.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.008061/0.5827, allocations: 2.863 MB / 0.5757 GB, free: 13.95 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001809/0.5845, allocations: 0.8866 MB / 0.5766 GB, free: 13.33 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.5845, allocations: 0 / 0.5766 GB, free: 13.33 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006617/0.5852, allocations: 0.5495 MB / 0.5771 GB, free: 13.02 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001233/0.5864, allocations: 210.2 kB / 0.5773 GB, free: 12.85 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005986/0.5924, allocations: 4.421 MB / 0.5816 GB, free: 8.656 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005094/0.593, allocations: 0.9984 MB / 0.5826 GB, free: 7.629 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009637/0.5939, allocations: 0.6118 MB / 0.5832 GB, free: 7.027 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003085/0.5943, allocations: 271.3 kB / 0.5834 GB, free: 6.961 MB / 430.1 MB Notification: Performance of SimCode: time 8.42e-07/0.5943, allocations: 0 / 0.5834 GB, free: 6.961 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08301/0.6773, allocations: 48.61 MB / 0.6309 GB, free: 6.641 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001749/0.6775, allocations: 225.9 kB / 0.6311 GB, free: 6.406 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.084/4.762, allocations: 0 / 0.6311 GB, free: 6.406 MB / 478.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Valves_TestCheckValve.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestCheckValve_res.mat does not exist to compare? outputFormat=mat