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.001027/0.001027, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009701/0.0009701, allocations: 177.3 kB / 15.94 MB, free: 228 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.481/1.481, allocations: 205.4 MB / 222.1 MB, free: 5.676 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.01029/0.01029, allocations: 1.92 MB / 272.3 MB, free: 3.422 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.0005698/0.00057, allocations: 20.2 kB / 331 MB, free: 33.28 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0798/0.08039, allocations: 48.09 MB / 379.1 MB, free: 1.137 MB / 270.1 MB Notification: Performance of NFInst.instantiate(MEV.Test.TestPatientValve): time 0.001832/0.08226, allocations: 1.753 MB / 380.8 MB, free: 15.37 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000752/0.08304, allocations: 0.5821 MB / 381.4 MB, free: 14.78 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.076e-05/0.0831, allocations: 4 kB / 381.4 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.828e-05/0.08315, allocations: 19.83 kB / 381.4 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001449/0.0833, allocations: 75.77 kB / 381.5 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001454/0.08346, allocations: 31.84 kB / 381.5 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001496/0.08361, allocations: 99.8 kB / 381.6 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.686e-05/0.08372, allocations: 36.88 kB / 381.7 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.25e-05/0.08379, allocations: 39.86 kB / 381.7 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.612e-05/0.08389, allocations: 43.78 kB / 381.7 MB, free: 14.43 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.544e-05/0.08392, allocations: 8 kB / 381.7 MB, free: 14.43 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.718e-05/0.08397, allocations: 11.98 kB / 381.8 MB, free: 14.41 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.039e-05/0.084, allocations: 23.91 kB / 381.8 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.459e-05/0.08404, allocations: 45.64 kB / 381.8 MB, free: 14.34 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.558e-05/0.08414, allocations: 71.81 kB / 381.9 MB, free: 14.27 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.834e-06/0.08415, allocations: 0 / 381.9 MB, free: 14.27 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.08416, allocations: 0 / 381.9 MB, free: 14.27 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.08417, allocations: 0 / 381.9 MB, free: 14.27 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.0004593/0.08463, allocations: 406.8 kB / 382.3 MB, free: 13.82 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.08468, allocations: 15.97 kB / 382.3 MB, free: 13.81 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.394e-05/0.08472, allocations: 38.55 kB / 382.3 MB, free: 13.76 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.652e-05/0.08476, allocations: 11.91 kB / 382.4 MB, free: 13.75 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001725/0.08493, allocations: 197.3 kB / 382.5 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.943e-05/0.08497, allocations: 3.953 kB / 382.6 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.82e-05/0.08499, allocations: 12 kB / 382.6 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001719/0.08517, allocations: 92.53 kB / 382.7 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.08519, allocations: 3.938 kB / 382.7 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.0852, allocations: 7.938 kB / 382.7 MB, free: 13.4 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.08521, allocations: 7.984 kB / 382.7 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001451/0.08536, allocations: 55.97 kB / 382.7 MB, free: 13.34 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005016/0.08588, allocations: 388.4 kB / 383.1 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004449/0.08634, allocations: 70.53 kB / 383.2 MB, free: 12.83 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.513e-05/0.08637, allocations: 0 / 383.2 MB, free: 12.83 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.93e-05/0.08639, allocations: 38.59 kB / 383.2 MB, free: 12.78 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 8.62e-07/0.0864, allocations: 4 kB / 383.2 MB, free: 12.78 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.000249/0.08666, allocations: 105.5 kB / 383.3 MB, free: 12.67 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.255e-05/0.0867, allocations: 51.41 kB / 383.4 MB, free: 12.61 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001413/0.08685, allocations: 178.7 kB / 383.5 MB, free: 12.42 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.216e-05/0.08687, allocations: 25.7 kB / 383.6 MB, free: 12.39 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.868e-05/0.08693, allocations: 112 kB / 383.7 MB, free: 12.27 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.144e-05/0.08695, allocations: 11.75 kB / 383.7 MB, free: 12.26 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.967e-06/0.08696, allocations: 0 / 383.7 MB, free: 12.26 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.272e-05/0.08705, allocations: 326.8 kB / 384 MB, free: 11.93 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.012e-05/0.08712, allocations: 19.98 kB / 384 MB, free: 11.91 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.991e-05/0.08719, allocations: 20 kB / 384 MB, free: 11.89 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.608e-05/0.08725, allocations: 19.98 kB / 384.1 MB, free: 11.88 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.08726, allocations: 0 / 384.1 MB, free: 11.88 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001518/0.08742, allocations: 89.53 kB / 384.2 MB, free: 11.78 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.215e-05/0.08747, allocations: 105 kB / 384.3 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.08748, allocations: 0 / 384.3 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.677e-06/0.0875, allocations: 0 / 384.3 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.024e-05/0.08759, allocations: 8 kB / 384.3 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.08761, allocations: 4 kB / 384.3 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.765e-05/0.08768, allocations: 11.89 kB / 384.3 MB, free: 11.65 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/0.0877, allocations: 12.17 kB / 384.3 MB, free: 11.64 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.051e-06/0.08771, allocations: 4 kB / 384.3 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001069/0.08782, allocations: 47.98 kB / 384.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-06/0.08783, allocations: 0 / 384.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-06/0.08784, allocations: 0 / 384.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.969e-05/0.0879, allocations: 19.92 kB / 384.4 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.424e-06/0.08791, allocations: 7.891 kB / 384.4 MB, free: 11.56 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.874e-05/0.08796, allocations: 7.938 kB / 384.4 MB, free: 11.55 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.896e-06/0.08797, allocations: 4 kB / 384.4 MB, free: 11.55 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 9.675e-05/0.08808, allocations: 193.1 kB / 384.6 MB, free: 11.35 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.949e-05/0.08811, allocations: 11.81 kB / 384.6 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001694/0.08829, allocations: 82.59 kB / 384.7 MB, free: 11.25 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.0883, allocations: 0 / 384.7 MB, free: 11.25 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.08831, allocations: 3.953 kB / 384.7 MB, free: 11.24 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.08832, allocations: 4 kB / 384.7 MB, free: 11.24 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003562/0.08868, allocations: 351.4 kB / 385 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.08869, allocations: 4 kB / 385 MB, free: 10.83 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.781e-05/0.08875, allocations: 4 kB / 385 MB, free: 10.83 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.08876, allocations: 7.938 kB / 385 MB, free: 10.82 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.08877, allocations: 3.953 kB / 385 MB, free: 10.82 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.08879, allocations: 3.984 kB / 385 MB, free: 10.81 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.0888, allocations: 7.969 kB / 385 MB, free: 10.8 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001762/0.08899, allocations: 189.9 kB / 385.2 MB, free: 10.59 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.492e-05/0.08905, allocations: 93.33 kB / 385.3 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.119e-05/0.08908, allocations: 3.953 kB / 385.3 MB, free: 10.48 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.584e-05/0.08917, allocations: 12 kB / 385.3 MB, free: 10.47 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.728e-05/0.0892, allocations: 7.984 kB / 385.3 MB, free: 10.46 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.266e-06/0.08921, allocations: 0 / 385.3 MB, free: 10.46 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001118/0.08933, allocations: 140 kB / 385.5 MB, free: 10.32 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.08934, allocations: 0 / 385.5 MB, free: 10.32 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002929/0.08964, allocations: 39.91 kB / 385.5 MB, free: 10.29 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.0004231/0.09007, allocations: 0.7914 MB / 386.3 MB, free: 9.461 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000208/0.09029, allocations: 80.08 kB / 386.4 MB, free: 9.383 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.0903, allocations: 0 / 386.4 MB, free: 9.383 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.823e-05/0.09035, allocations: 16 kB / 386.4 MB, free: 9.367 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002177/0.09058, allocations: 12.17 kB / 386.4 MB, free: 9.355 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001039/0.09162, allocations: 0.7516 MB / 387.2 MB, free: 8.559 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002443/0.09188, allocations: 0.712 MB / 387.9 MB, free: 7.82 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.223e-05/0.09193, allocations: 12.56 kB / 387.9 MB, free: 7.809 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.147e-05/0.09199, allocations: 31.42 kB / 387.9 MB, free: 7.777 MB / 286.1 MB Notification: Performance of SimCode: time 3.01e-07/0.09199, allocations: 0 / 387.9 MB, free: 7.777 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01257/0.1046, allocations: 2.14 MB / 390.1 MB, free: 5.641 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001835/0.1048, allocations: 141.3 kB / 390.2 MB, free: 5.398 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.855/1.959, allocations: 0 / 390.2 MB, free: 5.398 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: