Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.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.TestValveCompressible,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible",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.002473/0.002477, allocations: 188.9 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.222/2.222, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001194/0.001194, allocations: 98.84 kB / 270.9 MB, free: 13.37 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.3084/0.3084, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007224/0.0007227, allocations: 12 kB / 431.5 MB, free: 20.17 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1669/0.1676, allocations: 58.86 MB / 490.3 MB, free: 9.234 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible): time 0.05894/0.2266, allocations: 24.22 MB / 0.5025 GB, free: 0.9375 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03093/0.2576, allocations: 14.75 MB / 0.5169 GB, free: 2.152 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007113/0.2584, allocations: 11.88 kB / 0.5169 GB, free: 2.141 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001275/0.2597, allocations: 262.8 kB / 0.5172 GB, free: 1.883 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.3622/0.6219, allocations: 2.948 MB / 0.52 GB, free: 12.59 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01519/0.6372, allocations: 3.008 MB / 0.523 GB, free: 12.55 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001696/0.6389, allocations: 0.6005 MB / 0.5236 GB, free: 12.55 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006082/0.6395, allocations: 239.6 kB / 0.5238 GB, free: 12.54 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001476/0.641, allocations: 430.5 kB / 0.5242 GB, free: 12.54 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004924/0.6415, allocations: 226.3 kB / 0.5244 GB, free: 12.54 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.598e-05/0.6416, allocations: 17.88 kB / 0.5244 GB, free: 12.54 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02265/0.6643, allocations: 7.17 MB / 0.5314 GB, free: 12.52 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000306/0.6646, allocations: 90.52 kB / 0.5315 GB, free: 12.52 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003337/0.665, allocations: 114.4 kB / 0.5316 GB, free: 12.48 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01062/0.6756, allocations: 3.064 MB / 0.5346 GB, free: 12.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.6757, allocations: 3.375 kB / 0.5346 GB, free: 12.29 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.557e-06/0.6757, allocations: 0 / 0.5346 GB, free: 12.29 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.719e-06/0.6757, allocations: 1.406 kB / 0.5346 GB, free: 12.29 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.006371/0.6821, allocations: 1.247 MB / 0.5359 GB, free: 11.44 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/0.6822, allocations: 18.64 kB / 0.5359 GB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001464/0.6823, allocations: 72.5 kB / 0.5359 GB, free: 11.38 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002653/0.685, allocations: 232.5 kB / 0.5362 GB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008461/0.6859, allocations: 378.6 kB / 0.5365 GB, free: 11.03 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.431e-05/0.6859, allocations: 28.28 kB / 0.5365 GB, free: 11.03 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.934e-05/0.686, allocations: 45.28 kB / 0.5366 GB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002467/0.6885, allocations: 0.6313 MB / 0.5372 GB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.94e-05/0.6886, allocations: 8.719 kB / 0.5372 GB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.32e-05/0.6887, allocations: 14.97 kB / 0.5372 GB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.603e-05/0.6887, allocations: 8.594 kB / 0.5372 GB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002644/0.6914, allocations: 0.5893 MB / 0.5378 GB, free: 10.61 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.005/0.6964, allocations: 2.758 MB / 0.5405 GB, free: 8.383 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003254/0.6997, allocations: 0.585 MB / 0.5411 GB, free: 8.223 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08703/0.7868, allocations: 24.43 MB / 0.5649 GB, free: 2.789 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.239e-05/0.7869, allocations: 34.56 kB / 0.565 GB, free: 2.746 MB / 378.7 MB Notification: Performance of pre-optimization done (n=28): time 3.547e-06/0.7869, allocations: 0 / 0.565 GB, free: 2.746 MB / 378.7 MB Notification: Performance of matching and sorting (n=28): time 0.004814/0.7917, allocations: 0.8575 MB / 0.5658 GB, free: 2.055 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.123e-05/0.7919, allocations: 107.3 kB / 0.5659 GB, free: 1.926 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008454/0.7927, allocations: 389 kB / 0.5663 GB, free: 1.621 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001267/0.7929, allocations: 29.02 kB / 0.5663 GB, free: 1.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002517/0.7932, allocations: 276.5 kB / 0.5666 GB, free: 1.371 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/0.7933, allocations: 98.28 kB / 0.5667 GB, free: 1.289 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.28e-05/0.7934, allocations: 5.938 kB / 0.5667 GB, free: 1.289 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.7935, allocations: 329.3 kB / 0.567 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007559/0.7943, allocations: 162.3 kB / 0.5671 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008592/0.7952, allocations: 287.9 kB / 0.5674 GB, free: 0.5664 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008044/0.796, allocations: 197.1 kB / 0.5676 GB, free: 444 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.796, allocations: 1.641 kB / 0.5676 GB, free: 444 kB / 378.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001991/0.798, allocations: 492.5 kB / 0.5681 GB, free: 76 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007732/0.7989, allocations: 1.404 MB / 0.5694 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.816e-05/0.7989, allocations: 8 kB / 0.5694 GB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.82e-05/0.799, allocations: 4 kB / 0.5695 GB, free: 14.58 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009047/0.7999, allocations: 98.94 kB / 0.5695 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.471e-05/0.7999, allocations: 15.17 kB / 0.5696 GB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008827/0.8008, allocations: 74.56 kB / 0.5696 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.335e-05/0.8009, allocations: 19.23 kB / 0.5696 GB, free: 14.4 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.8009, allocations: 6.625 kB / 0.5697 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001843/0.8028, allocations: 442.8 kB / 0.5701 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.8029, allocations: 7.562 kB / 0.5701 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.8029, allocations: 8 kB / 0.5701 GB, free: 14.08 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007818/0.8037, allocations: 108.8 kB / 0.5702 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.414e-05/0.8037, allocations: 4 kB / 0.5702 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005842/0.8043, allocations: 66.47 kB / 0.5703 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.393e-05/0.8044, allocations: 23.17 kB / 0.5703 GB, free: 13.91 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (SourceP1.medium.phase,SinkP1.medium.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005264/0.8049, allocations: 240.8 kB / 0.5705 GB, free: 13.69 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001889/0.8051, allocations: 39.53 kB / 0.5706 GB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004332/0.8095, allocations: 1.985 MB / 0.5725 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.525e-05/0.8096, allocations: 28.52 kB / 0.5725 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.8096, allocations: 0 / 0.5725 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.426e-05/0.8097, allocations: 3.984 kB / 0.5725 GB, free: 12.29 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001956/0.8116, allocations: 1.065 MB / 0.5736 GB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/0.8117, allocations: 0 / 0.5736 GB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007396/0.8124, allocations: 93.92 kB / 0.5737 GB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.074e-05/0.8125, allocations: 2.734 kB / 0.5737 GB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.775e-05/0.8126, allocations: 10.38 kB / 0.5737 GB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.514e-06/0.8126, allocations: 0 / 0.5737 GB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.8126, allocations: 0 / 0.5737 GB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002632/0.8152, allocations: 1.143 MB / 0.5748 GB, free: 10.59 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006089/0.8159, allocations: 267.6 kB / 0.575 GB, free: 10.35 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00012/0.816, allocations: 7.672 kB / 0.575 GB, free: 10.34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006767/0.8167, allocations: 41.98 kB / 0.5751 GB, free: 10.31 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/0.8169, allocations: 35.62 kB / 0.5751 GB, free: 10.28 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.475e-05/0.817, allocations: 19.53 kB / 0.5751 GB, free: 10.26 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007779/0.8178, allocations: 375.1 kB / 0.5755 GB, free: 9.98 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.8178, allocations: 3.844 kB / 0.5755 GB, free: 9.98 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006061/0.8239, allocations: 1.138 MB / 0.5766 GB, free: 8.898 MB / 394.7 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 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse14.phase,$cse14.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 (40): * Single equations (assignments): 31 * 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.01345/0.8374, allocations: 2.796 MB / 0.5793 GB, free: 6.527 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003014/0.8404, allocations: 0.8892 MB / 0.5802 GB, free: 5.906 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.8405, allocations: 0 / 0.5802 GB, free: 5.906 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001213/0.8417, allocations: 0.5305 MB / 0.5807 GB, free: 5.609 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002178/0.8439, allocations: 216.8 kB / 0.5809 GB, free: 5.438 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009606/0.8536, allocations: 5.086 MB / 0.5859 GB, free: 0.5664 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008228/0.8544, allocations: 1.006 MB / 0.5869 GB, free: 15.54 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005901/0.8551, allocations: 292 kB / 0.5872 GB, free: 15.46 MB / 410.7 MB Notification: Performance of SimCode: time 2.404e-06/0.8551, allocations: 0 / 0.5872 GB, free: 15.46 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.887/4.742, allocations: 30.75 MB / 0.6172 GB, free: 0.9766 MB / 426.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCompressible.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible_res.mat does not exist to compare? outputFormat=mat