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.004905/0.004905, allocations: 101.6 kB / 15.73 MB, free: 6.004 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.001153/0.001153, allocations: 198.9 kB / 16.68 MB, free: 5.926 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.289/1.289, allocations: 205.1 MB / 222.5 MB, free: 4.371 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1/package.mo): time 0.008418/0.008418, allocations: 1.935 MB / 271.8 MB, free: 3.098 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.001502/0.001502, allocations: 67.91 kB / 377.7 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08081/0.08233, allocations: 47.12 MB / 424.9 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientValve): time 0.1559/0.2383, allocations: 1.968 MB / 426.8 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000812/0.2392, allocations: 0.5677 MB / 427.4 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.527e-05/0.2392, allocations: 3.562 kB / 427.4 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.76e-05/0.2393, allocations: 16.09 kB / 427.4 MB, free: 10.46 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001179/0.2394, allocations: 47 kB / 427.5 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002037/0.2397, allocations: 40.31 kB / 427.5 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001551/0.2398, allocations: 137.6 kB / 427.6 MB, free: 10.4 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.2399, allocations: 36.67 kB / 427.7 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.853e-05/0.24, allocations: 48.09 kB / 427.7 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.878e-05/0.2401, allocations: 52.75 kB / 427.8 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.947e-05/0.2401, allocations: 9.094 kB / 427.8 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.821e-05/0.2402, allocations: 17.44 kB / 427.8 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.044e-05/0.2402, allocations: 21.08 kB / 427.8 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.426e-05/0.2403, allocations: 64.47 kB / 427.9 MB, free: 10.34 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001482/0.2404, allocations: 114.3 kB / 428 MB, free: 10.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2404, allocations: 0 / 428 MB, free: 10.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2405, allocations: 1.188 kB / 428 MB, free: 10.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.618e-06/0.2405, allocations: 0 / 428 MB, free: 10.32 MB / 318.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.0004492/0.2409, allocations: 426.1 kB / 428.4 MB, free: 9.926 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.241, allocations: 13.98 kB / 428.4 MB, free: 9.922 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.737e-05/0.241, allocations: 37.27 kB / 428.5 MB, free: 9.883 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.296e-05/0.241, allocations: 17.95 kB / 428.5 MB, free: 9.875 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001393/0.2412, allocations: 198.6 kB / 428.7 MB, free: 9.664 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.995e-06/0.2412, allocations: 7.156 kB / 428.7 MB, free: 9.664 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.563e-05/0.2412, allocations: 8.031 kB / 428.7 MB, free: 9.664 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000176/0.2414, allocations: 96.39 kB / 428.8 MB, free: 9.625 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.2414, allocations: 0 / 428.8 MB, free: 9.625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.2414, allocations: 5.375 kB / 428.8 MB, free: 9.625 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.2414, allocations: 2.625 kB / 428.8 MB, free: 9.625 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001388/0.2416, allocations: 52.02 kB / 428.8 MB, free: 9.625 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004627/0.2421, allocations: 397.1 kB / 429.2 MB, free: 9.332 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004215/0.2425, allocations: 63.73 kB / 429.3 MB, free: 9.309 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.68e-05/0.2426, allocations: 22.88 kB / 429.3 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.558e-05/0.2426, allocations: 1.469 kB / 429.3 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.123e-05/0.2426, allocations: 35.2 kB / 429.3 MB, free: 9.258 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.162e-06/0.2426, allocations: 0 / 429.3 MB, free: 9.258 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002509/0.2429, allocations: 93.31 kB / 429.4 MB, free: 9.215 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.826e-05/0.2429, allocations: 53.34 kB / 429.5 MB, free: 9.152 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001345/0.243, allocations: 183.7 kB / 429.7 MB, free: 9.043 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.434e-06/0.243, allocations: 25.7 kB / 429.7 MB, free: 9.012 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.089e-05/0.2431, allocations: 112.7 kB / 429.8 MB, free: 8.918 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.014e-05/0.2431, allocations: 10.64 kB / 429.8 MB, free: 8.914 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.531e-05/0.2431, allocations: 24.75 kB / 429.8 MB, free: 8.895 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.069e-05/0.2432, allocations: 325.6 kB / 430.2 MB, free: 8.578 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.22e-05/0.2433, allocations: 25.44 kB / 430.2 MB, free: 8.57 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.163e-05/0.2433, allocations: 17.47 kB / 430.2 MB, free: 8.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001057/0.2434, allocations: 55.39 kB / 430.3 MB, free: 8.555 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2434, allocations: 1.031 kB / 430.3 MB, free: 8.555 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001628/0.2436, allocations: 83.55 kB / 430.3 MB, free: 8.52 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.2436, allocations: 18.56 kB / 430.4 MB, free: 8.508 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.309e-06/0.2436, allocations: 2.688 kB / 430.4 MB, free: 8.508 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.2437, allocations: 1.156 kB / 430.4 MB, free: 8.508 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.608e-05/0.2437, allocations: 11.05 kB / 430.4 MB, free: 8.508 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.2438, allocations: 1.969 kB / 430.4 MB, free: 8.508 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.669e-05/0.2438, allocations: 7.188 kB / 430.4 MB, free: 8.504 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.2438, allocations: 1.781 kB / 430.4 MB, free: 8.504 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 7.651e-05/0.2439, allocations: 110.8 kB / 430.5 MB, free: 8.418 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 4.147e-05/0.244, allocations: 16.12 kB / 430.5 MB, free: 8.418 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 8.576e-05/0.2441, allocations: 47.25 kB / 430.5 MB, free: 8.402 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.62e-07/0.2441, allocations: 0 / 430.5 MB, free: 8.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization_lambda0): time 0.0001307/0.2442, allocations: 80.59 kB / 430.6 MB, free: 8.363 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.444e-06/0.2442, allocations: 5.828 kB / 430.6 MB, free: 8.363 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-06/0.2442, allocations: 0 / 430.6 MB, free: 8.363 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.525e-06/0.2442, allocations: 5.094 kB / 430.6 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.8e-05/0.2443, allocations: 10.86 kB / 430.6 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.984e-06/0.2443, allocations: 4.547 kB / 430.7 MB, free: 8.355 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.538e-05/0.2444, allocations: 10.84 kB / 430.7 MB, free: 8.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.817e-06/0.2444, allocations: 5.875 kB / 430.7 MB, free: 8.352 MB / 318.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 4e-05/0.2444, allocations: 181.6 kB / 430.8 MB, free: 8.168 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.179e-05/0.2445, allocations: 14.17 kB / 430.9 MB, free: 8.16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001671/0.2446, allocations: 82.59 kB / 430.9 MB, free: 8.113 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.2447, allocations: 1.406 kB / 430.9 MB, free: 8.113 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.2447, allocations: 3.922 kB / 430.9 MB, free: 8.113 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.2447, allocations: 0 / 430.9 MB, free: 8.113 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003052/0.245, allocations: 354 kB / 431.3 MB, free: 7.801 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.245, allocations: 0.9688 kB / 431.3 MB, free: 7.801 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.992e-05/0.245, allocations: 8.828 kB / 431.3 MB, free: 7.801 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.2451, allocations: 1.031 kB / 431.3 MB, free: 7.801 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.793e-06/0.2451, allocations: 1.062 kB / 431.3 MB, free: 7.801 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.2451, allocations: 1.719 kB / 431.3 MB, free: 7.801 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.2451, allocations: 5.062 kB / 431.3 MB, free: 7.797 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001418/0.2452, allocations: 177.2 kB / 431.5 MB, free: 7.648 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.704e-05/0.2453, allocations: 99.97 kB / 431.6 MB, free: 7.543 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.017e-05/0.2453, allocations: 6.719 kB / 431.6 MB, free: 7.543 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.429e-05/0.2454, allocations: 1.859 kB / 431.6 MB, free: 7.543 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.893e-05/0.2454, allocations: 4.188 kB / 431.6 MB, free: 7.543 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.068e-06/0.2454, allocations: 1.281 kB / 431.6 MB, free: 7.543 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.961e-05/0.2455, allocations: 138.4 kB / 431.7 MB, free: 7.465 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2455, allocations: 5.031 kB / 431.7 MB, free: 7.461 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003102/0.2459, allocations: 42.47 kB / 431.8 MB, free: 7.457 MB / 318.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.0002837/0.2461, allocations: 0.7054 MB / 432.5 MB, free: 6.777 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001974/0.2464, allocations: 71.02 kB / 432.5 MB, free: 6.77 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2464, allocations: 0 / 432.5 MB, free: 6.77 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.971e-05/0.2464, allocations: 19.78 kB / 432.6 MB, free: 6.77 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000321/0.2467, allocations: 13.36 kB / 432.6 MB, free: 6.766 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001503/0.2483, allocations: 1.674 MB / 434.3 MB, free: 5.496 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001214/0.2484, allocations: 0.7005 MB / 435 MB, free: 4.801 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.866e-05/0.2485, allocations: 10.36 kB / 435 MB, free: 4.801 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.064e-05/0.2485, allocations: 32.02 kB / 435 MB, free: 4.777 MB / 318.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2485, allocations: 4 kB / 435 MB, free: 4.773 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01779/0.2663, allocations: 2.489 MB / 437.5 MB, free: 4.254 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.333/7.6, allocations: 9.25 kB / 437.5 MB, free: 4.246 MB / 318.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)