Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.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.TestPressure,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001798/0.001798, allocations: 96.05 kB / 16.99 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001851/0.001851, allocations: 200.8 kB / 17.9 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.58/1.58, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2627/0.2627, allocations: 45.91 MB / 344 MB, free: 12.09 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002904/0.0002905, allocations: 8 kB / 418.1 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.1483, allocations: 63.47 MB / 481.5 MB, free: 5.254 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestPressure): time 0.03248/0.1808, allocations: 31.92 MB / 0.5014 GB, free: 5.254 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3501/0.5309, allocations: 18.39 MB / 0.5194 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008436/0.5318, allocations: 12.03 kB / 0.5194 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009841/0.5328, allocations: 245.9 kB / 0.5196 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01557/0.5484, allocations: 3.576 MB / 0.5231 GB, free: 11.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006316/0.5548, allocations: 1.626 MB / 0.5247 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001525/0.5563, allocations: 0.6775 MB / 0.5254 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005147/0.5568, allocations: 287.3 kB / 0.5256 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01834/0.5752, allocations: 9.076 MB / 0.5345 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009602/0.5762, allocations: 251.9 kB / 0.5347 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001034/0.5763, allocations: 18.78 kB / 0.5348 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0179/0.5942, allocations: 7.121 MB / 0.5417 GB, free: 9.387 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002452/0.5945, allocations: 94.11 kB / 0.5418 GB, free: 9.324 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003348/0.5949, allocations: 118.6 kB / 0.5419 GB, free: 9.227 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00749/0.6024, allocations: 3.067 MB / 0.5449 GB, free: 6.609 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.6024, allocations: 0 / 0.5449 GB, free: 6.609 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.6024, allocations: 0 / 0.5449 GB, free: 6.609 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.6024, allocations: 4 kB / 0.5449 GB, free: 6.605 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: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.003612/0.606, allocations: 1.228 MB / 0.5461 GB, free: 5.379 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/0.6061, allocations: 8.031 kB / 0.5461 GB, free: 5.371 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.556e-05/0.6062, allocations: 83.77 kB / 0.5462 GB, free: 5.305 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001701/0.6079, allocations: 245.1 kB / 0.5464 GB, free: 5.082 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005218/0.6085, allocations: 379.3 kB / 0.5468 GB, free: 4.727 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.464e-05/0.6085, allocations: 33.38 kB / 0.5468 GB, free: 4.711 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.773e-05/0.6085, allocations: 34.81 kB / 0.5469 GB, free: 4.688 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.61, allocations: 0.6888 MB / 0.5475 GB, free: 4.098 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.61, allocations: 4 kB / 0.5475 GB, free: 4.094 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.164e-05/0.6101, allocations: 16.31 kB / 0.5476 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.6101, allocations: 19.88 kB / 0.5476 GB, free: 4.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001471/0.6116, allocations: 0.5898 MB / 0.5482 GB, free: 3.594 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.003832/0.6154, allocations: 3.304 MB / 0.5514 GB, free: 68 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001443/0.6169, allocations: 466.3 kB / 0.5518 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1195/0.7364, allocations: 62.59 MB / 0.613 GB, free: 9.145 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/0.7364, allocations: 38.56 kB / 0.613 GB, free: 9.098 MB / 462.1 MB Notification: Performance of pre-optimization done (n=27): time 1.934e-06/0.7365, allocations: 0 / 0.613 GB, free: 9.098 MB / 462.1 MB Notification: Performance of matching and sorting (n=27): time 0.003089/0.7395, allocations: 0.938 MB / 0.6139 GB, free: 8.137 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.777e-05/0.7396, allocations: 106.8 kB / 0.614 GB, free: 8.008 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004395/0.7401, allocations: 393.8 kB / 0.6144 GB, free: 7.621 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.585e-05/0.7401, allocations: 29.7 kB / 0.6144 GB, free: 7.586 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001708/0.7403, allocations: 258.8 kB / 0.6147 GB, free: 7.328 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.877e-05/0.7404, allocations: 90.69 kB / 0.6147 GB, free: 7.238 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.012e-05/0.7404, allocations: 8 kB / 0.6148 GB, free: 7.23 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.7405, allocations: 350.8 kB / 0.6151 GB, free: 6.879 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003591/0.7409, allocations: 148.8 kB / 0.6152 GB, free: 6.734 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004417/0.7414, allocations: 317.7 kB / 0.6155 GB, free: 6.348 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004143/0.7418, allocations: 187.9 kB / 0.6157 GB, free: 6.164 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.7418, allocations: 0 / 0.6157 GB, free: 6.164 MB / 462.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001062/0.7429, allocations: 0.5351 MB / 0.6162 GB, free: 5.621 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007484/0.7436, allocations: 1.996 MB / 0.6182 GB, free: 3.469 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.7436, allocations: 4 kB / 0.6182 GB, free: 3.465 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003223/0.7469, allocations: 377.6 kB / 0.6185 GB, free: 3.098 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003708/0.7473, allocations: 103.8 kB / 0.6186 GB, free: 2.996 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004894/0.7478, allocations: 0.6031 MB / 0.6192 GB, free: 2.367 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004139/0.7482, allocations: 79.36 kB / 0.6193 GB, free: 2.289 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.901e-05/0.7482, allocations: 24 kB / 0.6193 GB, free: 2.266 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.7482, allocations: 12.05 kB / 0.6193 GB, free: 2.254 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009068/0.7492, allocations: 443 kB / 0.6198 GB, free: 1.824 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.7492, allocations: 4 kB / 0.6198 GB, free: 1.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.7492, allocations: 8 kB / 0.6198 GB, free: 1.812 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000407/0.7496, allocations: 123.7 kB / 0.6199 GB, free: 1.691 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.849e-06/0.7496, allocations: 11.94 kB / 0.6199 GB, free: 1.68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003363/0.75, allocations: 67.59 kB / 0.62 GB, free: 1.613 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.314e-05/0.75, allocations: 24 kB / 0.62 GB, free: 1.59 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (45): * Single equations (assignments): 44 * 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.0002491/0.7503, allocations: 245 kB / 0.6202 GB, free: 1.34 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.371e-05/0.7503, allocations: 43.48 kB / 0.6203 GB, free: 1.297 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00237/0.7527, allocations: 1.935 MB / 0.6222 GB, free: 15.36 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.789e-05/0.7528, allocations: 27.95 kB / 0.6222 GB, free: 15.33 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.7528, allocations: 0 / 0.6222 GB, free: 15.33 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.7528, allocations: 3.984 kB / 0.6222 GB, free: 15.33 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001/0.7538, allocations: 0.9794 MB / 0.6231 GB, free: 14.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.7538, allocations: 4 kB / 0.6232 GB, free: 14.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002888/0.7541, allocations: 75.88 kB / 0.6232 GB, free: 14.23 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001418/0.7555, allocations: 0.631 MB / 0.6238 GB, free: 13.59 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.422e-05/0.7556, allocations: 8 kB / 0.6238 GB, free: 13.59 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007968/0.7564, allocations: 1.022 MB / 0.6248 GB, free: 12.54 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.7564, allocations: 0 / 0.6248 GB, free: 12.54 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001557/0.7579, allocations: 1.317 MB / 0.6261 GB, free: 11.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002775/0.7582, allocations: 251.5 kB / 0.6264 GB, free: 10.93 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.213e-05/0.7583, allocations: 7.984 kB / 0.6264 GB, free: 10.93 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000297/0.7586, allocations: 39.92 kB / 0.6264 GB, free: 10.89 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.497e-05/0.7587, allocations: 31.91 kB / 0.6264 GB, free: 10.86 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-05/0.7587, allocations: 15.98 kB / 0.6265 GB, free: 10.84 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004066/0.7592, allocations: 378.8 kB / 0.6268 GB, free: 10.47 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7592, allocations: 0 / 0.6268 GB, free: 10.47 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003646/0.7628, allocations: 1.159 MB / 0.628 GB, free: 9.309 MB / 478.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,$cse12.phase,$cse12.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 (30): * Single equations (assignments): 23 * 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.00771/0.7705, allocations: 2.78 MB / 0.6307 GB, free: 6.605 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002006/0.7726, allocations: 0.8316 MB / 0.6315 GB, free: 5.777 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/0.7726, allocations: 0 / 0.6315 GB, free: 5.777 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007425/0.7733, allocations: 0.489 MB / 0.632 GB, free: 5.285 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001486/0.7748, allocations: 231.5 kB / 0.6322 GB, free: 5.066 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01151/0.7864, allocations: 7.292 MB / 0.6393 GB, free: 13.62 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005843/0.787, allocations: 0.9875 MB / 0.6403 GB, free: 12.6 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0009749/0.788, allocations: 0.4982 MB / 0.6408 GB, free: 12.11 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003738/0.7884, allocations: 263.3 kB / 0.641 GB, free: 11.85 MB / 494.1 MB Notification: Performance of SimCode: time 1.993e-06/0.7884, allocations: 0 / 0.641 GB, free: 11.85 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0832/0.8716, allocations: 48.75 MB / 0.6886 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002329/0.8719, allocations: 257.4 kB / 0.6889 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.303/5.175, allocations: 0 / 0.6889 GB, free: 10.97 MB / 0.5294 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestPressure.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestPressure_res.mat does not exist to compare? outputFormat=mat