Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009965/0.0009966, allocations: 199.7 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.212/1.212, allocations: 226.5 MB / 243.4 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007413/0.0007416, allocations: 92.44 kB / 295.4 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2983/0.2983, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002659/0.000266, allocations: 11.98 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.3074, allocations: 62.95 MB / 0.516 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.0188/0.3263, allocations: 26.29 MB / 0.5416 GB, free: 18.64 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01137/0.3377, allocations: 12.39 MB / 0.5537 GB, free: 9.852 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004292/0.3382, allocations: 13.62 kB / 0.5537 GB, free: 9.844 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006986/0.3389, allocations: 201.6 kB / 0.5539 GB, free: 9.734 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.00918/0.3481, allocations: 2.866 MB / 0.5567 GB, free: 8.488 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006/0.3541, allocations: 1.844 MB / 0.5585 GB, free: 7.543 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001457/0.3555, allocations: 0.9841 MB / 0.5595 GB, free: 7.129 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003754/0.3559, allocations: 226.3 kB / 0.5597 GB, free: 7.035 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007183/0.3567, allocations: 390.3 kB / 0.5601 GB, free: 6.879 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002846/0.357, allocations: 254.8 kB / 0.5603 GB, free: 6.746 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.595e-05/0.357, allocations: 16 kB / 0.5603 GB, free: 6.746 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0135/0.3705, allocations: 6.888 MB / 0.5671 GB, free: 3.395 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001717/0.3707, allocations: 88.41 kB / 0.5672 GB, free: 3.328 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003393/0.3711, allocations: 214.9 kB / 0.5674 GB, free: 3.195 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00596/0.377, allocations: 2.983 MB / 0.5703 GB, free: 1.453 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3771, allocations: 0 / 0.5703 GB, free: 1.453 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3771, allocations: 0 / 0.5703 GB, free: 1.453 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.3771, allocations: 1.406 kB / 0.5703 GB, free: 1.453 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.003857/0.381, allocations: 1.159 MB / 0.5714 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.381, allocations: 12.03 kB / 0.5714 GB, free: 0.5391 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.423e-05/0.3811, allocations: 66.66 kB / 0.5715 GB, free: 476 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001467/0.3826, allocations: 224.3 kB / 0.5717 GB, free: 252 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004661/0.383, allocations: 367.4 kB / 0.572 GB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.678e-05/0.3831, allocations: 25.03 kB / 0.5721 GB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.545e-05/0.3831, allocations: 36.11 kB / 0.5721 GB, free: 15.78 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001478/0.3846, allocations: 0.594 MB / 0.5727 GB, free: 15.15 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.3846, allocations: 4 kB / 0.5727 GB, free: 15.14 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.194e-05/0.3847, allocations: 12 kB / 0.5727 GB, free: 15.13 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.3847, allocations: 8 kB / 0.5727 GB, free: 15.12 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001547/0.3863, allocations: 0.5601 MB / 0.5732 GB, free: 14.57 MB / 394.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.003101/0.3894, allocations: 2.644 MB / 0.5758 GB, free: 11.68 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00148/0.3909, allocations: 494.1 kB / 0.5763 GB, free: 11.19 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004445/0.3913, allocations: 200.7 kB / 0.5765 GB, free: 10.99 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05045/0.4418, allocations: 26.99 MB / 0.6028 GB, free: 12.6 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.342e-05/0.4419, allocations: 38.5 kB / 0.6029 GB, free: 12.55 MB / 426.7 MB Notification: Performance of pre-optimization done (n=25): time 1.834e-06/0.4419, allocations: 0 / 0.6029 GB, free: 12.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=25): time 0.002831/0.4447, allocations: 0.8528 MB / 0.6037 GB, free: 11.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.615e-05/0.4448, allocations: 106.8 kB / 0.6038 GB, free: 11.57 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003668/0.4452, allocations: 304.5 kB / 0.6041 GB, free: 11.26 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.534e-05/0.4452, allocations: 33.7 kB / 0.6041 GB, free: 11.22 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.4454, allocations: 208.2 kB / 0.6043 GB, free: 11.01 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.073e-05/0.4454, allocations: 86.78 kB / 0.6044 GB, free: 10.93 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.799e-05/0.4455, allocations: 4 kB / 0.6044 GB, free: 10.92 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.4456, allocations: 342.8 kB / 0.6048 GB, free: 10.58 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003987/0.446, allocations: 151.9 kB / 0.6049 GB, free: 10.43 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004572/0.4465, allocations: 246.9 kB / 0.6051 GB, free: 10.15 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008442/0.4473, allocations: 391 kB / 0.6055 GB, free: 9.734 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.4473, allocations: 0 / 0.6055 GB, free: 9.734 MB / 426.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001006/0.4483, allocations: 456.7 kB / 0.6059 GB, free: 9.281 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.4484, allocations: 4 kB / 0.6059 GB, free: 9.277 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.4484, allocations: 4 kB / 0.606 GB, free: 9.273 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.4484, allocations: 8.25 kB / 0.606 GB, free: 9.266 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000325/0.4487, allocations: 91.83 kB / 0.606 GB, free: 9.176 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.159e-05/0.4488, allocations: 7.984 kB / 0.6061 GB, free: 9.168 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003874/0.4492, allocations: 67.59 kB / 0.6061 GB, free: 9.102 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.326e-05/0.4492, allocations: 12 kB / 0.6061 GB, free: 9.09 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,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 (35): * Single equations (assignments): 35 * 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.0001865/0.4494, allocations: 157.8 kB / 0.6063 GB, free: 8.926 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.236e-05/0.4495, allocations: 31.62 kB / 0.6063 GB, free: 8.895 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002467/0.4519, allocations: 1.945 MB / 0.6082 GB, free: 6.945 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.972e-05/0.452, allocations: 31.94 kB / 0.6082 GB, free: 6.914 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.452, allocations: 4 kB / 0.6082 GB, free: 6.91 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.862e-06/0.452, allocations: 3.984 kB / 0.6082 GB, free: 6.906 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/0.4531, allocations: 1.019 MB / 0.6092 GB, free: 5.836 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.4531, allocations: 4 kB / 0.6092 GB, free: 5.832 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002994/0.4535, allocations: 75.94 kB / 0.6093 GB, free: 5.758 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.632e-06/0.4535, allocations: 4 kB / 0.6093 GB, free: 5.754 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.574e-05/0.4535, allocations: 15.88 kB / 0.6093 GB, free: 5.738 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.407e-05/0.4535, allocations: 4 kB / 0.6093 GB, free: 5.734 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.4535, allocations: 3.984 kB / 0.6093 GB, free: 5.73 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001503/0.455, allocations: 1.096 MB / 0.6104 GB, free: 4.613 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002461/0.4553, allocations: 215.6 kB / 0.6106 GB, free: 4.383 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.894e-05/0.4554, allocations: 11.94 kB / 0.6106 GB, free: 4.371 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003185/0.4557, allocations: 43.88 kB / 0.6107 GB, free: 4.328 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.4558, allocations: 35.94 kB / 0.6107 GB, free: 4.293 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.443e-05/0.4558, allocations: 12 kB / 0.6107 GB, free: 4.281 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003264/0.4562, allocations: 323.1 kB / 0.611 GB, free: 3.965 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4562, allocations: 0 / 0.611 GB, free: 3.965 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003552/0.4597, allocations: 0.9994 MB / 0.612 GB, free: 2.965 MB / 426.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: 19 ($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,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * 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.00815/0.4679, allocations: 2.724 MB / 0.6147 GB, free: 228 kB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001217/0.4691, allocations: 0.6264 MB / 0.6153 GB, free: 15.59 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4692, allocations: 0 / 0.6153 GB, free: 15.59 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006913/0.4699, allocations: 0.5244 MB / 0.6158 GB, free: 15.07 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001221/0.4711, allocations: 204 kB / 0.616 GB, free: 14.87 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006867/0.478, allocations: 3.687 MB / 0.6196 GB, free: 11.09 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004874/0.4785, allocations: 0.9641 MB / 0.6205 GB, free: 10.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000305/0.4788, allocations: 255.3 kB / 0.6208 GB, free: 9.852 MB / 442.7 MB Notification: Performance of SimCode: time 4.41e-07/0.4788, allocations: 0 / 0.6208 GB, free: 9.852 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.924/5.403, allocations: 25.07 MB / 0.6453 GB, free: 0.7383 MB / 458.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveDiscrete.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestValveDiscrete/TestValveDiscrete.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches