Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001621/0.001627, allocations: 186.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.118/2.118, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001215/0.001215, allocations: 86.88 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4322/0.4322, allocations: 43.56 MB / 362.7 MB, free: 11.33 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007251/0.0007254, allocations: 12 kB / 431.5 MB, free: 20.17 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1587/0.1595, allocations: 58.85 MB / 490.3 MB, free: 9.246 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve): time 0.0599/0.2195, allocations: 28.38 MB / 0.5065 GB, free: 12.77 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.3757/0.5952, allocations: 17.05 MB / 0.5232 GB, free: 11.42 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002943/0.5982, allocations: 64.28 kB / 0.5233 GB, free: 11.42 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003546/0.6018, allocations: 0.6141 MB / 0.5239 GB, free: 11.42 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009251/0.6111, allocations: 2.105 MB / 0.5259 GB, free: 11.39 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01715/0.6283, allocations: 3.991 MB / 0.5298 GB, free: 11.32 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006838/0.6352, allocations: 2.55 MB / 0.5323 GB, free: 11.31 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002797/0.638, allocations: 1.082 MB / 0.5334 GB, free: 11.2 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004665/0.6427, allocations: 1.329 MB / 0.5347 GB, free: 11.2 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003945/0.6468, allocations: 1.207 MB / 0.5358 GB, free: 11.19 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008363/0.6476, allocations: 96.67 kB / 0.5359 GB, free: 11.19 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009224/0.6569, allocations: 2.51 MB / 0.5384 GB, free: 11.19 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001664/0.6586, allocations: 0.5294 MB / 0.5389 GB, free: 11.19 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001175/0.6598, allocations: 354.4 kB / 0.5392 GB, free: 11.16 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008483/0.6683, allocations: 2.97 MB / 0.5421 GB, free: 9.855 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.6684, allocations: 6 kB / 0.5421 GB, free: 9.855 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.066e-06/0.6684, allocations: 0 / 0.5421 GB, free: 9.855 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.432e-05/0.6685, allocations: 0 / 0.5421 GB, free: 9.855 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.01029/0.6788, allocations: 2.159 MB / 0.5443 GB, free: 8.457 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.763e-05/0.6789, allocations: 9.469 kB / 0.5443 GB, free: 8.457 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001191/0.6801, allocations: 179.2 kB / 0.5444 GB, free: 8.387 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001901/0.6821, allocations: 201.3 kB / 0.5446 GB, free: 8.293 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005004/0.6871, allocations: 1.074 MB / 0.5457 GB, free: 7.742 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003917/0.6876, allocations: 186.8 kB / 0.5459 GB, free: 7.641 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009266/0.6885, allocations: 121.4 kB / 0.546 GB, free: 7.633 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009157/0.6977, allocations: 1.919 MB / 0.5478 GB, free: 7.043 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.01e-05/0.6979, allocations: 1.375 kB / 0.5478 GB, free: 7.043 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004476/0.6983, allocations: 49.48 kB / 0.5479 GB, free: 7.043 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004152/0.6988, allocations: 118.1 kB / 0.548 GB, free: 7.016 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00945/0.7083, allocations: 1.951 MB / 0.5499 GB, free: 6.684 MB / 362.7 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.03345/0.7418, allocations: 7.354 MB / 0.5571 GB, free: 2.852 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00594/0.7478, allocations: 1.406 MB / 0.5585 GB, free: 2.625 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01704/0.7649, allocations: 4.559 MB / 0.5629 GB, free: 14.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.058e-05/0.7651, allocations: 53.2 kB / 0.563 GB, free: 14.91 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002545/0.7676, allocations: 219 kB / 0.5632 GB, free: 14.72 MB / 378.7 MB Notification: Performance of pre-optimization done (n=118): time 1.065e-05/0.7677, allocations: 3.938 kB / 0.5632 GB, free: 14.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=133): time 0.04674/0.8145, allocations: 6.647 MB / 0.5697 GB, free: 8.422 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001536/0.8147, allocations: 225.3 kB / 0.5699 GB, free: 8.156 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003004/0.8177, allocations: 1.352 MB / 0.5712 GB, free: 6.793 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004505/0.8182, allocations: 57.69 kB / 0.5713 GB, free: 6.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006796/0.8189, allocations: 0.6285 MB / 0.5719 GB, free: 6.102 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007134/0.8196, allocations: 454 kB / 0.5723 GB, free: 5.664 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001892/0.8198, allocations: 36 kB / 0.5723 GB, free: 5.629 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002186/0.82, allocations: 370.8 kB / 0.5727 GB, free: 5.258 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002545/0.8226, allocations: 0.8081 MB / 0.5735 GB, free: 4.449 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002899/0.8255, allocations: 1.155 MB / 0.5746 GB, free: 3.168 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002937/0.8285, allocations: 0.9289 MB / 0.5755 GB, free: 2.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.215e-05/0.8285, allocations: 8 kB / 0.5755 GB, free: 2.242 MB / 378.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.007941/0.8365, allocations: 2.485 MB / 0.578 GB, free: 15.8 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001587/0.8381, allocations: 3.223 MB / 0.5811 GB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.775e-05/0.8382, allocations: 16.86 kB / 0.5811 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01737/0.8556, allocations: 1.691 MB / 0.5828 GB, free: 10.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002867/0.8585, allocations: 340 kB / 0.5831 GB, free: 10.31 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005106/0.8636, allocations: 1.774 MB / 0.5848 GB, free: 8.516 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002783/0.8665, allocations: 107.8 kB / 0.5849 GB, free: 8.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003137/0.8668, allocations: 75.95 kB / 0.585 GB, free: 8.336 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.8668, allocations: 4 kB / 0.585 GB, free: 8.332 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007281/0.8741, allocations: 2.259 MB / 0.5872 GB, free: 6.082 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.268e-05/0.8742, allocations: 12.06 kB / 0.5872 GB, free: 6.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01014/0.8844, allocations: 1.055 MB / 0.5882 GB, free: 5.012 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002983/0.8874, allocations: 351.5 kB / 0.5886 GB, free: 4.668 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003804/0.8913, allocations: 1.45 MB / 0.59 GB, free: 3.191 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002159/0.8935, allocations: 95.8 kB / 0.5901 GB, free: 3.098 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002726/0.8938, allocations: 75.95 kB / 0.5902 GB, free: 3.023 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (168): * Single equations (assignments): 165 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 24} Notification: Performance of prepare postOptimizeDAE: time 0.001422/0.8952, allocations: 496.6 kB / 0.5906 GB, free: 2.527 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005562/0.8958, allocations: 162 kB / 0.5908 GB, free: 2.367 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0082/0.904, allocations: 2.569 MB / 0.5933 GB, free: 15.79 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.362e-05/0.9041, allocations: 16 kB / 0.5933 GB, free: 15.77 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.728e-06/0.9041, allocations: 0 / 0.5933 GB, free: 15.77 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.527e-05/0.9041, allocations: 7.969 kB / 0.5933 GB, free: 15.77 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01431/0.9184, allocations: 4.199 MB / 0.5974 GB, free: 11.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-05/0.9185, allocations: 4 kB / 0.5974 GB, free: 11.53 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002416/0.921, allocations: 231.7 kB / 0.5976 GB, free: 11.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009749/0.9308, allocations: 1.318 MB / 0.5989 GB, free: 9.984 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000419/0.9312, allocations: 51.92 kB / 0.599 GB, free: 9.934 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004509/0.9358, allocations: 1.797 MB / 0.6007 GB, free: 8.113 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.9358, allocations: 0 / 0.6007 GB, free: 8.113 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01019/0.946, allocations: 3.472 MB / 0.6041 GB, free: 4.625 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00166/0.9477, allocations: 478.6 kB / 0.6046 GB, free: 4.137 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004082/0.9482, allocations: 28 kB / 0.6046 GB, free: 4.109 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002079/0.9503, allocations: 95.88 kB / 0.6047 GB, free: 4.016 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004273/0.9507, allocations: 121.1 kB / 0.6048 GB, free: 3.895 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002427/0.951, allocations: 63.95 kB / 0.6049 GB, free: 3.832 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002105/0.9531, allocations: 0.907 MB / 0.6058 GB, free: 2.926 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.9531, allocations: 2.703 kB / 0.6058 GB, free: 2.926 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005432/0.9585, allocations: 1.316 MB / 0.6071 GB, free: 1.609 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T,valveDelayed.filter.x[1],valveDelayed.filter.x[2]) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 39} Notification: Performance of Backend phase and start with SimCode phase: time 0.01394/0.9725, allocations: 4.891 MB / 0.6118 GB, free: 12.75 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01239/0.985, allocations: 3.23 MB / 0.615 GB, free: 9.523 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.749e-06/0.985, allocations: 1.875 kB / 0.615 GB, free: 9.523 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003853/0.9889, allocations: 1.055 MB / 0.616 GB, free: 8.477 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005876/0.9948, allocations: 0.6957 MB / 0.6167 GB, free: 7.777 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01789/1.013, allocations: 11.04 MB / 0.6275 GB, free: 12.45 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001486/1.014, allocations: 1.41 MB / 0.6289 GB, free: 11.01 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001862/1.016, allocations: 0.6476 MB / 0.6295 GB, free: 10.36 MB / 442.7 MB Notification: Performance of SimCode: time 1.573e-06/1.016, allocations: 0 / 0.6295 GB, free: 10.36 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.265/5.281, allocations: 47.74 MB / 0.6761 GB, free: 10.63 MB / 490.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve_res.mat does not exist to compare? outputFormat=mat