Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr MEV_MEV.Test.TestPatientValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/MEV 1.1.1/package.mo", uses=false) Using package MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(MEV.Test.TestPatientValve,fileNamePrefix="MEV_MEV_Test_TestPatientValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(MEV.Test.TestPatientValve,fileNamePrefix="MEV_MEV_Test_TestPatientValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001771/0.00177, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002507/0.002507, allocations: 194 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.202/2.202, allocations: 205.1 MB / 222.4 MB, free: 4.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.0154/0.0154, allocations: 1.928 MB / 271.7 MB, free: 3.363 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002182/0.002182, allocations: 68.12 kB / 329.9 MB, free: 32.74 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1674/0.1696, allocations: 47.13 MB / 377.1 MB, free: 1.562 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientValve): time 0.005963/0.1756, allocations: 1.961 MB / 379 MB, free: 15.58 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001476/0.1772, allocations: 0.5777 MB / 379.6 MB, free: 15 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.547e-05/0.1773, allocations: 4 kB / 379.6 MB, free: 14.99 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.755e-05/0.1774, allocations: 19.78 kB / 379.6 MB, free: 14.97 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001843/0.1776, allocations: 39.64 kB / 379.7 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003932/0.178, allocations: 43.89 kB / 379.7 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002719/0.1783, allocations: 135.3 kB / 379.8 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000235/0.1786, allocations: 36.88 kB / 379.9 MB, free: 14.72 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.1787, allocations: 47.8 kB / 379.9 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001729/0.1789, allocations: 55.78 kB / 380 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.115e-05/0.1789, allocations: 11.94 kB / 380 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001052/0.179, allocations: 15.98 kB / 380 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.458e-05/0.1791, allocations: 19.86 kB / 380 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.79e-05/0.1792, allocations: 59.69 kB / 380.1 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000269/0.1794, allocations: 115.6 kB / 380.2 MB, free: 14.4 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.117e-06/0.1795, allocations: 0 / 380.2 MB, free: 14.4 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.846e-06/0.1795, allocations: 0 / 380.2 MB, free: 14.4 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.133e-05/0.1795, allocations: 0 / 380.2 MB, free: 14.4 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001026/0.1805, allocations: 422.9 kB / 380.6 MB, free: 13.94 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.128e-05/0.1806, allocations: 11.89 kB / 380.6 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.875e-05/0.1807, allocations: 42.73 kB / 380.7 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.168e-05/0.1808, allocations: 8.844 kB / 380.7 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003319/0.1811, allocations: 206.2 kB / 380.9 MB, free: 13.63 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.472e-05/0.1811, allocations: 8.375 kB / 380.9 MB, free: 13.62 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.08e-05/0.1812, allocations: 8.375 kB / 380.9 MB, free: 13.62 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002751/0.1814, allocations: 86.41 kB / 381 MB, free: 13.53 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.557e-05/0.1815, allocations: 0 / 381 MB, free: 13.53 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.688e-05/0.1815, allocations: 4 kB / 381 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.1815, allocations: 11.98 kB / 381 MB, free: 13.51 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001914/0.1817, allocations: 51.97 kB / 381 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008768/0.1826, allocations: 396.3 kB / 381.4 MB, free: 13.02 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005526/0.1832, allocations: 70.48 kB / 381.5 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.715e-05/0.1833, allocations: 20.94 kB / 381.5 MB, free: 12.92 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.1833, allocations: 0 / 381.5 MB, free: 12.92 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.914e-05/0.1834, allocations: 34.56 kB / 381.6 MB, free: 12.88 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.653e-06/0.1834, allocations: 4 kB / 381.6 MB, free: 12.88 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003812/0.1838, allocations: 97.69 kB / 381.7 MB, free: 12.77 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.927e-05/0.1838, allocations: 55.41 kB / 381.7 MB, free: 12.71 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002464/0.1841, allocations: 178.7 kB / 381.9 MB, free: 12.52 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/0.1841, allocations: 25.7 kB / 381.9 MB, free: 12.49 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.1842, allocations: 108 kB / 382 MB, free: 12.38 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.296e-05/0.1843, allocations: 15.75 kB / 382 MB, free: 12.37 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.244e-05/0.1843, allocations: 21.66 kB / 382 MB, free: 12.34 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0003236/0.1847, allocations: 322.8 kB / 382.4 MB, free: 12.02 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.674e-05/0.1848, allocations: 32.84 kB / 382.4 MB, free: 11.98 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.698e-05/0.1848, allocations: 15.98 kB / 382.4 MB, free: 11.96 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001317/0.185, allocations: 48.97 kB / 382.5 MB, free: 11.91 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.185, allocations: 4 kB / 382.5 MB, free: 11.91 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002032/0.1852, allocations: 77.59 kB / 382.5 MB, free: 11.83 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.577e-05/0.1852, allocations: 7.938 kB / 382.5 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.139e-05/0.1853, allocations: 3.984 kB / 382.5 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.1853, allocations: 0 / 382.5 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-05/0.1854, allocations: 23.94 kB / 382.6 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.1854, allocations: 0 / 382.6 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.544e-05/0.1855, allocations: 15.83 kB / 382.6 MB, free: 11.78 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.845e-06/0.1855, allocations: 3.938 kB / 382.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001246/0.1856, allocations: 100.1 kB / 382.7 MB, free: 11.67 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.587e-05/0.1857, allocations: 15.98 kB / 382.7 MB, free: 11.66 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000104/0.1858, allocations: 40.84 kB / 382.7 MB, free: 11.61 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.31e-07/0.1858, allocations: 0 / 382.7 MB, free: 11.61 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization_lambda0): time 0.0001644/0.186, allocations: 81.59 kB / 382.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.186, allocations: 10.95 kB / 382.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-06/0.186, allocations: 3.938 kB / 382.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.278e-06/0.186, allocations: 3.938 kB / 382.8 MB, free: 11.51 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.64e-05/0.1861, allocations: 8 kB / 382.8 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.573e-06/0.1861, allocations: 4 kB / 382.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.625e-05/0.1862, allocations: 7.938 kB / 382.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.1862, allocations: 4 kB / 382.9 MB, free: 11.49 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001809/0.1864, allocations: 181.1 kB / 383 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.284e-05/0.1864, allocations: 19.75 kB / 383.1 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002723/0.1867, allocations: 82.55 kB / 383.1 MB, free: 11.2 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.1867, allocations: 256 / 383.1 MB, free: 11.2 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.1867, allocations: 0 / 383.1 MB, free: 11.2 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.105e-05/0.1867, allocations: 7.984 kB / 383.2 MB, free: 11.19 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005409/0.1873, allocations: 343.4 kB / 383.5 MB, free: 10.79 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-06/0.1873, allocations: 4 kB / 383.5 MB, free: 10.79 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.204e-05/0.1874, allocations: 15.95 kB / 383.5 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.1874, allocations: 4 kB / 383.5 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.1874, allocations: 0 / 383.5 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.542e-06/0.1874, allocations: 0 / 383.5 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1874, allocations: 0 / 383.5 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002569/0.1877, allocations: 180.1 kB / 383.7 MB, free: 10.57 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/0.1878, allocations: 93 kB / 383.8 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.988e-05/0.1878, allocations: 4 kB / 383.8 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.805e-05/0.1879, allocations: 4 kB / 383.8 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.022e-05/0.188, allocations: 3.984 kB / 383.8 MB, free: 10.45 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.448e-06/0.188, allocations: 4 kB / 383.8 MB, free: 10.45 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.00017/0.1882, allocations: 140 kB / 383.9 MB, free: 10.31 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1882, allocations: 0 / 383.9 MB, free: 10.31 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003522/0.1885, allocations: 39.91 kB / 384 MB, free: 10.27 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00102/0.1896, allocations: 0.7092 MB / 384.7 MB, free: 9.535 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003247/0.1899, allocations: 67.91 kB / 384.7 MB, free: 9.469 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.1899, allocations: 0 / 384.7 MB, free: 9.469 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.091e-05/0.19, allocations: 31.86 kB / 384.8 MB, free: 9.438 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005206/0.1905, allocations: 8.328 kB / 384.8 MB, free: 9.43 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002628/0.1932, allocations: 1.668 MB / 386.5 MB, free: 7.676 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004889/0.1937, allocations: 0.7041 MB / 387.2 MB, free: 6.945 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.726e-05/0.1938, allocations: 12.41 kB / 387.2 MB, free: 6.934 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.731e-05/0.1939, allocations: 27.44 kB / 387.2 MB, free: 6.906 MB / 286.1 MB Notification: Performance of SimCode: time 5.229e-06/0.1939, allocations: 0 / 387.2 MB, free: 6.906 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8957/1.09, allocations: 2.428 MB / 389.6 MB, free: 4.418 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/13.5, allocations: 0 / 389.6 MB, free: 4.418 MB / 286.1 MB (rm -f MEV_MEV.Test.TestPatientValve.pipe ; mkfifo MEV_MEV.Test.TestPatientValve.pipe ; head -c 1048576 < MEV_MEV.Test.TestPatientValve.pipe >> ../files/MEV_MEV.Test.TestPatientValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_MEV_MEV_Test_TestPatientValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 MEV_MEV_Test_TestPatientValve.fmu > MEV_MEV.Test.TestPatientValve.pipe 2>&1)