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-master/package.mo", uses=false) Using package MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/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.0007372/0.0007372, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.000759/0.000759, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.191/1.191, allocations: 205.4 MB / 222.1 MB, free: 5.641 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.007151/0.007151, allocations: 1.916 MB / 272.3 MB, free: 3.391 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.0004361/0.0004362, allocations: 12 kB / 331 MB, free: 33.24 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06346/0.06391, allocations: 48.09 MB / 379.1 MB, free: 1.102 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientValve): time 0.001891/0.06584, allocations: 1.855 MB / 380.9 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009096/0.06677, allocations: 0.578 MB / 381.5 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.684e-05/0.06689, allocations: 8 kB / 381.5 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.979e-05/0.06695, allocations: 19.83 kB / 381.5 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001659/0.06712, allocations: 63.47 kB / 381.6 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001728/0.0673, allocations: 27.91 kB / 381.6 MB, free: 14.53 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001562/0.06747, allocations: 123.3 kB / 381.8 MB, free: 14.41 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001032/0.06758, allocations: 36.86 kB / 381.8 MB, free: 14.37 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.697e-05/0.06765, allocations: 39.8 kB / 381.8 MB, free: 14.33 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.014e-05/0.06775, allocations: 47.78 kB / 381.9 MB, free: 14.29 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.677e-05/0.06777, allocations: 4 kB / 381.9 MB, free: 14.28 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.927e-05/0.06782, allocations: 16 kB / 381.9 MB, free: 14.27 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.655e-05/0.06785, allocations: 15.92 kB / 381.9 MB, free: 14.25 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.7e-05/0.06789, allocations: 49.64 kB / 382 MB, free: 14.2 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.717e-05/0.06799, allocations: 71.81 kB / 382 MB, free: 14.12 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.06801, allocations: 7.984 kB / 382 MB, free: 14.12 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.06801, allocations: 0 / 382 MB, free: 14.12 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.359e-06/0.06802, allocations: 0 / 382 MB, free: 14.12 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.0004425/0.06847, allocations: 406.8 kB / 382.4 MB, free: 13.67 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.071e-05/0.06851, allocations: 11.97 kB / 382.4 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.653e-05/0.06855, allocations: 38.56 kB / 382.5 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.738e-05/0.06859, allocations: 11.91 kB / 382.5 MB, free: 13.6 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001636/0.06876, allocations: 197.2 kB / 382.7 MB, free: 13.37 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.06878, allocations: 19.95 kB / 382.7 MB, free: 13.35 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.296e-05/0.0688, allocations: 8 kB / 382.7 MB, free: 13.34 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000175/0.06898, allocations: 93.5 kB / 382.8 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.06899, allocations: 0 / 382.8 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.06901, allocations: 4 kB / 382.8 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.06902, allocations: 4 kB / 382.8 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001273/0.06915, allocations: 58.78 kB / 382.9 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000485/0.06965, allocations: 392.4 kB / 383.3 MB, free: 12.75 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003717/0.07003, allocations: 66.53 kB / 383.3 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.576e-05/0.0701, allocations: 28.94 kB / 383.4 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.725e-05/0.07012, allocations: 0 / 383.4 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.046e-05/0.07015, allocations: 34.52 kB / 383.4 MB, free: 12.6 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 8.12e-07/0.07016, allocations: 0 / 383.4 MB, free: 12.6 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002368/0.0704, allocations: 101.6 kB / 383.5 MB, free: 12.5 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.754e-05/0.07044, allocations: 55.41 kB / 383.5 MB, free: 12.43 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001366/0.07058, allocations: 178.7 kB / 383.7 MB, free: 12.24 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.208e-05/0.0706, allocations: 25.7 kB / 383.7 MB, free: 12.21 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.715e-05/0.07066, allocations: 104 kB / 383.8 MB, free: 12.11 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.317e-05/0.07068, allocations: 19.75 kB / 383.9 MB, free: 12.09 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.787e-06/0.07069, allocations: 0 / 383.9 MB, free: 12.09 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.443e-05/0.07078, allocations: 322.8 kB / 384.2 MB, free: 11.76 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.986e-05/0.07083, allocations: 19.98 kB / 384.2 MB, free: 11.74 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.285e-05/0.07088, allocations: 23.98 kB / 384.2 MB, free: 11.72 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.113e-05/0.07094, allocations: 16 kB / 384.2 MB, free: 11.7 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.07095, allocations: 0 / 384.2 MB, free: 11.7 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001517/0.07111, allocations: 93.52 kB / 384.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.343e-05/0.07116, allocations: 96.95 kB / 384.4 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.07117, allocations: 0 / 384.4 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.187e-06/0.07118, allocations: 0 / 384.4 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.952e-05/0.07126, allocations: 15.98 kB / 384.4 MB, free: 11.49 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.07127, allocations: 0 / 384.4 MB, free: 11.49 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.851e-05/0.07133, allocations: 7.906 kB / 384.4 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.193e-06/0.07135, allocations: 4 kB / 384.4 MB, free: 11.48 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.761e-06/0.07136, allocations: 4 kB / 384.5 MB, free: 11.47 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001023/0.07147, allocations: 47.98 kB / 384.5 MB, free: 11.43 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.565e-06/0.07148, allocations: 7.938 kB / 384.5 MB, free: 11.42 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.134e-06/0.07148, allocations: 0 / 384.5 MB, free: 11.42 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.164e-05/0.07154, allocations: 11.98 kB / 384.5 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.07156, allocations: 7.891 kB / 384.5 MB, free: 11.4 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.542e-05/0.07161, allocations: 8.188 kB / 384.5 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.27e-06/0.07162, allocations: 4 kB / 384.5 MB, free: 11.39 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.838e-05/0.07171, allocations: 201.1 kB / 384.7 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.411e-05/0.07175, allocations: 15.8 kB / 384.7 MB, free: 11.16 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001632/0.07192, allocations: 86.55 kB / 384.8 MB, free: 11.07 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.07193, allocations: 0 / 384.8 MB, free: 11.07 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.239e-06/0.07194, allocations: 3.953 kB / 384.8 MB, free: 11.07 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.07195, allocations: 240 / 384.8 MB, free: 11.07 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000334/0.07229, allocations: 359.4 kB / 385.2 MB, free: 10.66 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.0723, allocations: 0 / 385.2 MB, free: 10.66 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.024e-05/0.07235, allocations: 15.92 kB / 385.2 MB, free: 10.64 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.07236, allocations: 0 / 385.2 MB, free: 10.64 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.227e-06/0.07238, allocations: 7.953 kB / 385.2 MB, free: 10.63 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.07238, allocations: 0 / 385.2 MB, free: 10.63 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.07239, allocations: 0 / 385.2 MB, free: 10.63 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000174/0.07257, allocations: 180.2 kB / 385.4 MB, free: 10.44 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.137e-05/0.07263, allocations: 97 kB / 385.5 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.839e-05/0.07265, allocations: 0 / 385.5 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.988e-05/0.07274, allocations: 7.953 kB / 385.5 MB, free: 10.32 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.359e-05/0.07277, allocations: 3.984 kB / 385.5 MB, free: 10.31 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.07278, allocations: 4 kB / 385.5 MB, free: 10.31 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.485e-05/0.07288, allocations: 144 kB / 385.6 MB, free: 10.17 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.07288, allocations: 0 / 385.6 MB, free: 10.17 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002847/0.07317, allocations: 39.91 kB / 385.7 MB, free: 10.13 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 (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.0003835/0.07356, allocations: 0.7132 MB / 386.4 MB, free: 9.387 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001756/0.07375, allocations: 67.91 kB / 386.5 MB, free: 9.32 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.07376, allocations: 0 / 386.5 MB, free: 9.32 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.516e-05/0.07381, allocations: 19.98 kB / 386.5 MB, free: 9.301 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002713/0.07409, allocations: 16.2 kB / 386.5 MB, free: 9.285 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009669/0.07506, allocations: 0.7477 MB / 387.2 MB, free: 8.492 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002092/0.07528, allocations: 0.7081 MB / 387.9 MB, free: 7.758 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.13e-05/0.07533, allocations: 8.422 kB / 388 MB, free: 7.75 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.687e-05/0.07538, allocations: 31.42 kB / 388 MB, free: 7.719 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.07539, allocations: 3.938 kB / 388 MB, free: 7.715 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01096/0.08636, allocations: 2.164 MB / 390.2 MB, free: 5.555 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001384/0.08653, allocations: 141.4 kB / 390.3 MB, free: 5.316 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.413/1.499, allocations: 64 / 390.3 MB, free: 5.316 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/linux/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) Environment - environmentSimulation: