Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.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.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001022/0.001022, allocations: 94.77 kB / 16.98 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.001334/0.001334, allocations: 205.5 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.485/1.485, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2297/0.2297, allocations: 45.91 MB / 344 MB, free: 12.09 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002779/0.000278, allocations: 8 kB / 418.1 MB, free: 20.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1625/0.1628, allocations: 63.47 MB / 481.5 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate): time 0.04437/0.2073, allocations: 35.96 MB / 0.5054 GB, free: 1.207 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3465/0.5539, allocations: 13.43 MB / 0.5185 GB, free: 12.1 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007644/0.5547, allocations: 18.56 kB / 0.5185 GB, free: 12.1 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008504/0.5555, allocations: 251.2 kB / 0.5187 GB, free: 12.1 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01499/0.5705, allocations: 3.632 MB / 0.5223 GB, free: 12.07 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007182/0.5777, allocations: 1.734 MB / 0.524 GB, free: 12.06 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001702/0.5795, allocations: 0.7108 MB / 0.5247 GB, free: 12.06 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005196/0.58, allocations: 287.9 kB / 0.5249 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001116/0.5811, allocations: 492 kB / 0.5254 GB, free: 12.04 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004452/0.5816, allocations: 275.2 kB / 0.5257 GB, free: 12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.459e-05/0.5816, allocations: 24.5 kB / 0.5257 GB, free: 12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01957/0.6012, allocations: 7.204 MB / 0.5327 GB, free: 11.46 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002713/0.6015, allocations: 99.97 kB / 0.5328 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004083/0.6019, allocations: 131.3 kB / 0.533 GB, free: 11.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009798/0.6118, allocations: 3.127 MB / 0.536 GB, free: 10 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.6118, allocations: 0 / 0.536 GB, free: 10 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.567e-06/0.6118, allocations: 0 / 0.536 GB, free: 10 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.6118, allocations: 0 / 0.536 GB, free: 10 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: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.005038/0.6169, allocations: 1.275 MB / 0.5373 GB, free: 9.121 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.094e-05/0.6169, allocations: 9.375 kB / 0.5373 GB, free: 9.121 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000103/0.6171, allocations: 77.56 kB / 0.5373 GB, free: 9.074 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002129/0.6192, allocations: 302.9 kB / 0.5376 GB, free: 8.973 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005712/0.6198, allocations: 397.1 kB / 0.538 GB, free: 8.676 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.843e-05/0.6198, allocations: 33.66 kB / 0.538 GB, free: 8.676 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.386e-05/0.6199, allocations: 37.56 kB / 0.5381 GB, free: 8.676 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001521/0.6214, allocations: 0.6999 MB / 0.5388 GB, free: 8.379 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.6214, allocations: 0 / 0.5388 GB, free: 8.379 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.559e-05/0.6215, allocations: 16.84 kB / 0.5388 GB, free: 8.379 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.6215, allocations: 12.44 kB / 0.5388 GB, free: 8.379 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00149/0.623, allocations: 0.6173 MB / 0.5394 GB, free: 8.234 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.003281/0.6263, allocations: 2.993 MB / 0.5423 GB, free: 5.902 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001348/0.6277, allocations: 494.6 kB / 0.5428 GB, free: 5.773 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08622/0.7139, allocations: 44.72 MB / 0.5865 GB, free: 6.082 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.305e-05/0.714, allocations: 46.56 kB / 0.5865 GB, free: 6.027 MB / 430.1 MB Notification: Performance of pre-optimization done (n=30): time 2.905e-06/0.714, allocations: 0 / 0.5865 GB, free: 6.027 MB / 430.1 MB Notification: Performance of matching and sorting (n=30): time 0.003582/0.7176, allocations: 0.9916 MB / 0.5875 GB, free: 5.008 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.753e-05/0.7177, allocations: 118.7 kB / 0.5876 GB, free: 4.867 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005895/0.7183, allocations: 409.8 kB / 0.588 GB, free: 4.461 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.611e-05/0.7184, allocations: 33.7 kB / 0.588 GB, free: 4.422 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002083/0.7186, allocations: 247.9 kB / 0.5882 GB, free: 4.176 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.7187, allocations: 97.88 kB / 0.5883 GB, free: 4.082 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.43e-05/0.7187, allocations: 12 kB / 0.5883 GB, free: 4.07 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.7189, allocations: 352.3 kB / 0.5887 GB, free: 3.719 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000371/0.7193, allocations: 147.9 kB / 0.5888 GB, free: 3.574 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004346/0.7197, allocations: 274.3 kB / 0.5891 GB, free: 3.254 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004017/0.7201, allocations: 167.9 kB / 0.5892 GB, free: 3.09 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.7201, allocations: 0 / 0.5892 GB, free: 3.09 MB / 430.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001148/0.7213, allocations: 0.5014 MB / 0.5897 GB, free: 2.578 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006035/0.7219, allocations: 1.316 MB / 0.591 GB, free: 1.16 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.7219, allocations: 4 kB / 0.591 GB, free: 1.156 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00337/0.7253, allocations: 372.8 kB / 0.5914 GB, free: 0.793 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004099/0.7257, allocations: 91.88 kB / 0.5915 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007026/0.7265, allocations: 0.6108 MB / 0.5921 GB, free: 68 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006959/0.7272, allocations: 71.55 kB / 0.5921 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.616e-05/0.7272, allocations: 16 kB / 0.5921 GB, free: 15.98 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.7273, allocations: 7.938 kB / 0.5921 GB, free: 15.97 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001039/0.7283, allocations: 407.5 kB / 0.5925 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.7283, allocations: 4 kB / 0.5925 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.7284, allocations: 4 kB / 0.5925 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004513/0.7288, allocations: 116.2 kB / 0.5927 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.129e-05/0.7289, allocations: 8 kB / 0.5927 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005265/0.7294, allocations: 67.69 kB / 0.5927 GB, free: 15.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.272e-05/0.7294, allocations: 24 kB / 0.5928 GB, free: 15.36 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (boundary_fixed.medium.phase,massFlowRate1.medium.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004255/0.7299, allocations: 252.9 kB / 0.593 GB, free: 15.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000157/0.73, allocations: 43.44 kB / 0.593 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003133/0.7332, allocations: 2.035 MB / 0.595 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.351e-05/0.7332, allocations: 27.95 kB / 0.595 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.7332, allocations: 3.938 kB / 0.5951 GB, free: 12.99 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.7333, allocations: 3.984 kB / 0.5951 GB, free: 12.99 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001295/0.7346, allocations: 1.017 MB / 0.596 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.7346, allocations: 0 / 0.596 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000301/0.7349, allocations: 83.88 kB / 0.5961 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001506/0.7364, allocations: 0.6251 MB / 0.5967 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.755e-05/0.7365, allocations: 12 kB / 0.5968 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008663/0.7373, allocations: 1.015 MB / 0.5977 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.7373, allocations: 0 / 0.5977 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001821/0.7392, allocations: 1.337 MB / 0.599 GB, free: 8.805 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004481/0.7396, allocations: 259.4 kB / 0.5993 GB, free: 8.531 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001282/0.7398, allocations: 11.95 kB / 0.5993 GB, free: 8.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004086/0.7402, allocations: 43.88 kB / 0.5993 GB, free: 8.477 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.7403, allocations: 35.89 kB / 0.5994 GB, free: 8.441 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.51e-05/0.7403, allocations: 15.98 kB / 0.5994 GB, free: 8.426 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005347/0.7409, allocations: 390.8 kB / 0.5998 GB, free: 8.043 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7409, allocations: 0 / 0.5998 GB, free: 8.043 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005132/0.746, allocations: 1.152 MB / 0.6009 GB, free: 6.891 MB / 446.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: 16 ($cse2.phase,$cse2.region,$cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,massFlowRate1.medium.phase,boundary_fixed.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01051/0.7565, allocations: 2.812 MB / 0.6036 GB, free: 4.152 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002338/0.7589, allocations: 0.819 MB / 0.6044 GB, free: 3.336 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.759, allocations: 0 / 0.6044 GB, free: 3.336 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008671/0.7598, allocations: 0.4941 MB / 0.6049 GB, free: 2.848 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001762/0.7616, allocations: 273.3 kB / 0.6052 GB, free: 2.586 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009872/0.7715, allocations: 6.166 MB / 0.6112 GB, free: 12.32 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005875/0.7721, allocations: 1.007 MB / 0.6122 GB, free: 11.29 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001009/0.7732, allocations: 0.552 MB / 0.6127 GB, free: 10.74 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003652/0.7735, allocations: 287.3 kB / 0.613 GB, free: 10.46 MB / 462.1 MB Notification: Performance of SimCode: time 1.883e-06/0.7736, allocations: 0 / 0.613 GB, free: 10.46 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0992/0.8728, allocations: 49.88 MB / 0.6617 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002836/0.8731, allocations: 257.9 kB / 0.662 GB, free: 8.469 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.392/5.265, allocations: 7.562 kB / 0.662 GB, free: 8.465 MB / 0.4981 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestFlowRate.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestFlowRate_res.mat does not exist to compare? outputFormat=mat