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.001389/0.001389, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 189.8 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.514/1.514, allocations: 205.1 MB / 222.1 MB, free: 4.746 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.01068/0.01068, allocations: 1.928 MB / 271.4 MB, free: 3.504 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.001345/0.001345, allocations: 67.91 kB / 329.4 MB, free: 33.05 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07715/0.07851, allocations: 47.14 MB / 376.6 MB, free: 1.875 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientValve): time 0.003387/0.08194, allocations: 2.274 MB / 378.8 MB, free: 15.58 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008943/0.08286, allocations: 0.6011 MB / 379.4 MB, free: 14.97 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.189e-05/0.08294, allocations: 4 kB / 379.5 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.745e-05/0.083, allocations: 11.91 kB / 379.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001176/0.08315, allocations: 43.62 kB / 379.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001839/0.08334, allocations: 35.97 kB / 379.5 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001551/0.0835, allocations: 135.3 kB / 379.7 MB, free: 14.74 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.08364, allocations: 40.88 kB / 379.7 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.505e-05/0.08371, allocations: 47.73 kB / 379.8 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.833e-05/0.0838, allocations: 55.77 kB / 379.8 MB, free: 14.6 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.834e-05/0.08383, allocations: 8 kB / 379.8 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.536e-05/0.08389, allocations: 15.98 kB / 379.8 MB, free: 14.58 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.309e-05/0.08392, allocations: 31.86 kB / 379.9 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.615e-05/0.08398, allocations: 51.73 kB / 379.9 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000143/0.08413, allocations: 111.6 kB / 380 MB, free: 14.39 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.08414, allocations: 0 / 380 MB, free: 14.39 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.08415, allocations: 0 / 380 MB, free: 14.39 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.08416, allocations: 0 / 380 MB, free: 14.39 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.0004832/0.08464, allocations: 422.9 kB / 380.4 MB, free: 13.93 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.08469, allocations: 11.89 kB / 380.5 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.925e-05/0.08473, allocations: 38.75 kB / 380.5 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.259e-05/0.08477, allocations: 12.84 kB / 380.5 MB, free: 13.86 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001742/0.08495, allocations: 218.1 kB / 380.7 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.007e-05/0.08497, allocations: 4.375 kB / 380.7 MB, free: 13.6 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.216e-05/0.085, allocations: 8.375 kB / 380.7 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001762/0.08518, allocations: 89.78 kB / 380.8 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.0852, allocations: 0 / 380.8 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.08521, allocations: 4 kB / 380.8 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.08522, allocations: 0 / 380.8 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001312/0.08536, allocations: 58.94 kB / 380.9 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004988/0.08587, allocations: 388.3 kB / 381.3 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004163/0.08629, allocations: 70.47 kB / 381.3 MB, free: 12.93 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.53e-05/0.08636, allocations: 20.86 kB / 381.3 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.08639, allocations: 4.078 kB / 381.3 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.08642, allocations: 42.56 kB / 381.4 MB, free: 12.86 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.002e-06/0.08643, allocations: 0 / 381.4 MB, free: 12.86 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002401/0.08667, allocations: 89.58 kB / 381.5 MB, free: 12.76 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.271e-05/0.08671, allocations: 55.34 kB / 381.5 MB, free: 12.7 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001421/0.08686, allocations: 178.7 kB / 381.7 MB, free: 12.51 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.244e-05/0.08688, allocations: 29.7 kB / 381.7 MB, free: 12.48 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.155e-05/0.08695, allocations: 108 kB / 381.8 MB, free: 12.37 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.445e-05/0.08697, allocations: 23.67 kB / 381.9 MB, free: 12.34 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.713e-05/0.08701, allocations: 21.72 kB / 381.9 MB, free: 12.32 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.491e-05/0.08711, allocations: 318.8 kB / 382.2 MB, free: 12 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.148e-05/0.08718, allocations: 28.84 kB / 382.2 MB, free: 11.96 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.096e-05/0.08723, allocations: 15.98 kB / 382.2 MB, free: 11.95 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001011/0.08734, allocations: 52.84 kB / 382.3 MB, free: 11.89 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.08735, allocations: 0 / 382.3 MB, free: 11.89 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001588/0.08752, allocations: 89.52 kB / 382.4 MB, free: 11.8 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.08754, allocations: 7.938 kB / 382.4 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.586e-06/0.08755, allocations: 0 / 382.4 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.08757, allocations: 4 kB / 382.4 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.361e-05/0.08764, allocations: 8 kB / 382.4 MB, free: 11.78 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.08766, allocations: 3.984 kB / 382.4 MB, free: 11.78 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.113e-05/0.08772, allocations: 7.906 kB / 382.4 MB, free: 11.77 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.152e-06/0.08774, allocations: 4 kB / 382.4 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 9.691e-05/0.08784, allocations: 104.1 kB / 382.5 MB, free: 11.66 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 3.703e-05/0.08789, allocations: 16 kB / 382.5 MB, free: 11.64 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 7.625e-05/0.08797, allocations: 36.84 kB / 382.6 MB, free: 11.61 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.32e-07/0.08798, allocations: 0 / 382.6 MB, free: 11.61 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization_lambda0): time 0.00013/0.08811, allocations: 85.83 kB / 382.7 MB, free: 11.52 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.992e-06/0.08813, allocations: 4 kB / 382.7 MB, free: 11.51 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-06/0.08813, allocations: 64 / 382.7 MB, free: 11.51 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.358e-06/0.08814, allocations: 11.94 kB / 382.7 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.964e-05/0.08821, allocations: 19.94 kB / 382.7 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-06/0.08821, allocations: 0 / 382.7 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.939e-05/0.08827, allocations: 7.922 kB / 382.7 MB, free: 11.47 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.08828, allocations: 4 kB / 382.7 MB, free: 11.47 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 7.005e-05/0.08835, allocations: 177.1 kB / 382.9 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.151e-05/0.08839, allocations: 15.75 kB / 382.9 MB, free: 11.27 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001781/0.08857, allocations: 90.53 kB / 383 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.624e-06/0.08858, allocations: 0 / 383 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.08859, allocations: 0 / 383 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.0886, allocations: 240 / 383 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003418/0.08895, allocations: 359.3 kB / 383.3 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.08896, allocations: 0 / 383.3 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.779e-05/0.08901, allocations: 4 kB / 383.3 MB, free: 10.76 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.08902, allocations: 7.938 kB / 383.3 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-06/0.08903, allocations: 32 / 383.3 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.08904, allocations: 4 kB / 383.3 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.08905, allocations: 0 / 383.3 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001596/0.08921, allocations: 180.1 kB / 383.5 MB, free: 10.55 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.368e-05/0.08928, allocations: 93 kB / 383.6 MB, free: 10.45 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.135e-05/0.08931, allocations: 0 / 383.6 MB, free: 10.45 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.191e-05/0.0894, allocations: 11.92 kB / 383.6 MB, free: 10.43 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.553e-05/0.08943, allocations: 4 kB / 383.6 MB, free: 10.43 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-06/0.08944, allocations: 4 kB / 383.6 MB, free: 10.43 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000103/0.08955, allocations: 144 kB / 383.8 MB, free: 10.29 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08955, allocations: 0 / 383.8 MB, free: 10.29 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002878/0.08985, allocations: 35.91 kB / 383.8 MB, free: 10.25 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.0004013/0.09025, allocations: 0.7054 MB / 384.5 MB, free: 9.516 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001973/0.09046, allocations: 67.91 kB / 384.6 MB, free: 9.449 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.09047, allocations: 0 / 384.6 MB, free: 9.449 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 5.06e-05/0.09053, allocations: 23.92 kB / 384.6 MB, free: 9.426 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003293/0.09087, allocations: 11.98 kB / 384.6 MB, free: 9.414 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.0925, allocations: 1.7 MB / 386.3 MB, free: 7.629 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002224/0.09274, allocations: 0.704 MB / 387 MB, free: 6.898 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.67e-05/0.09279, allocations: 16.42 kB / 387 MB, free: 6.883 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.187e-05/0.09285, allocations: 35.42 kB / 387.1 MB, free: 6.848 MB / 286.1 MB Notification: Performance of SimCode: time 2.11e-07/0.09286, allocations: 0 / 387.1 MB, free: 6.848 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2195/0.3124, allocations: 2.317 MB / 389.4 MB, free: 4.516 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001765/0.3126, allocations: 157.4 kB / 389.5 MB, free: 4.258 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.789/2.101, allocations: 0 / 389.5 MB, free: 4.258 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)