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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 MEV with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002077/0.002077, allocations: 179.8 kB / 7.455 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/MEV 1.1.1-master/package.mo): time 0.007152/0.007152, allocations: 1.921 MB / 9.789 MB, free: 456 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9966/0.9966, allocations: 205.2 MB / 215.9 MB, free: 11.04 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007962/0.0007963, allocations: 85.05 kB / 264.4 MB, free: 11.3 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08239/0.08322, allocations: 54.22 MB / 318.6 MB, free: 5.02 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1644/0.2477, allocations: 48.06 MB / 366.7 MB, free: 45.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0695/0.3172, allocations: 75.47 MB / 442.2 MB, free: 7.609 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001729/0.3174, allocations: 67.97 kB / 442.2 MB, free: 7.543 MB / 330.7 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.006313/0.3238, allocations: 2.475 MB / 444.7 MB, free: 5.047 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.3238, allocations: 13.31 kB / 444.7 MB, free: 5.035 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.414e-05/0.3238, allocations: 11.91 kB / 444.7 MB, free: 5.023 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001876/0.324, allocations: 199.4 kB / 444.9 MB, free: 4.785 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.808e-06/0.3241, allocations: 4 kB / 444.9 MB, free: 4.781 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.49e-05/0.3241, allocations: 7.938 kB / 444.9 MB, free: 4.773 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001062/0.3242, allocations: 40 kB / 445 MB, free: 4.734 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000116/0.3243, allocations: 72.64 kB / 445 MB, free: 4.66 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.3243, allocations: 0 / 445 MB, free: 4.66 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.3243, allocations: 0 / 445 MB, free: 4.66 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.3243, allocations: 8 kB / 445 MB, free: 4.652 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004812/0.3248, allocations: 364 kB / 445.4 MB, free: 4.266 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003672/0.3252, allocations: 58.61 kB / 445.5 MB, free: 4.199 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.507e-05/0.3253, allocations: 16.86 kB / 445.5 MB, free: 4.18 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.581e-05/0.3253, allocations: 96 / 445.5 MB, free: 4.18 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.302e-05/0.3253, allocations: 42.55 kB / 445.5 MB, free: 4.129 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 8.31e-07/0.3253, allocations: 3.938 kB / 445.5 MB, free: 4.125 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001945/0.3255, allocations: 61.59 kB / 445.6 MB, free: 4.059 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.516e-05/0.3255, allocations: 51.41 kB / 445.6 MB, free: 3.996 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001053/0.3257, allocations: 132.1 kB / 445.8 MB, free: 3.859 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.3257, allocations: 25.7 kB / 445.8 MB, free: 3.828 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.55e-05/0.3257, allocations: 103.9 kB / 445.9 MB, free: 3.723 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.365e-05/0.3258, allocations: 19.8 kB / 445.9 MB, free: 3.703 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.388e-06/0.3258, allocations: 4 kB / 445.9 MB, free: 3.699 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.48e-05/0.3259, allocations: 317.4 kB / 446.2 MB, free: 3.383 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.811e-05/0.3259, allocations: 12 kB / 446.2 MB, free: 3.371 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.682e-05/0.3259, allocations: 19.98 kB / 446.3 MB, free: 3.352 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.242e-05/0.326, allocations: 12 kB / 446.3 MB, free: 3.34 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.326, allocations: 0 / 446.3 MB, free: 3.34 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001397/0.3261, allocations: 85.42 kB / 446.3 MB, free: 3.25 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.874e-05/0.3262, allocations: 97 kB / 446.4 MB, free: 3.148 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.3262, allocations: 3.828 kB / 446.4 MB, free: 3.148 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.709e-06/0.3262, allocations: 4 kB / 446.5 MB, free: 3.145 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.394e-05/0.3263, allocations: 11.98 kB / 446.5 MB, free: 3.133 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.135e-06/0.3263, allocations: 0 / 446.5 MB, free: 3.133 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.161e-05/0.3264, allocations: 7.938 kB / 446.5 MB, free: 3.125 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.3264, allocations: 7.906 kB / 446.5 MB, free: 3.117 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.131e-06/0.3264, allocations: 4 kB / 446.5 MB, free: 3.113 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 5.574e-05/0.3265, allocations: 24 kB / 446.5 MB, free: 3.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.304e-06/0.3265, allocations: 7.984 kB / 446.5 MB, free: 3.082 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-06/0.3265, allocations: 0 / 446.5 MB, free: 3.082 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.336e-05/0.3265, allocations: 15.94 kB / 446.5 MB, free: 3.066 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-06/0.3266, allocations: 3.938 kB / 446.5 MB, free: 3.062 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.444e-05/0.3266, allocations: 4 kB / 446.5 MB, free: 3.059 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.296e-06/0.3266, allocations: 0 / 446.5 MB, free: 3.059 MB / 330.7 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 () * 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 5.797e-05/0.3267, allocations: 112.9 kB / 446.6 MB, free: 2.941 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.032e-05/0.3267, allocations: 15.94 kB / 446.7 MB, free: 2.926 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001154/0.3268, allocations: 57.81 kB / 446.7 MB, free: 2.859 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.3268, allocations: 3.984 kB / 446.7 MB, free: 2.855 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.3269, allocations: 6.125 kB / 446.7 MB, free: 2.852 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.3269, allocations: 0 / 446.7 MB, free: 2.852 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002723/0.3271, allocations: 311.9 kB / 447 MB, free: 2.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3272, allocations: 4 kB / 447 MB, free: 2.496 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.791e-05/0.3272, allocations: 12.03 kB / 447 MB, free: 2.484 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.3272, allocations: 0 / 447 MB, free: 2.484 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-06/0.3272, allocations: 3.984 kB / 447.1 MB, free: 2.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.3272, allocations: 0 / 447.1 MB, free: 2.48 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3272, allocations: 0 / 447.1 MB, free: 2.48 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001103/0.3274, allocations: 177.9 kB / 447.2 MB, free: 2.281 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001954/0.3276, allocations: 0.5414 MB / 447.8 MB, free: 1.711 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.458e-05/0.3276, allocations: 93 kB / 447.9 MB, free: 1.602 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.992e-05/0.3277, allocations: 0 / 447.9 MB, free: 1.602 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.733e-05/0.3277, allocations: 4 kB / 447.9 MB, free: 1.598 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.78e-05/0.3278, allocations: 11.89 kB / 447.9 MB, free: 1.586 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-06/0.3278, allocations: 0 / 447.9 MB, free: 1.586 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.216e-05/0.3279, allocations: 117.1 kB / 448 MB, free: 1.473 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001374/0.3292, allocations: 47.84 kB / 448 MB, free: 1.426 MB / 330.7 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 () * 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.0001025/0.3294, allocations: 103.1 kB / 448.1 MB, free: 1.316 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001131/0.3295, allocations: 53.55 kB / 448.2 MB, free: 1.266 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.3295, allocations: 0 / 448.2 MB, free: 1.266 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.564e-05/0.3295, allocations: 15.94 kB / 448.2 MB, free: 1.25 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001762/0.3297, allocations: 8.062 kB / 448.2 MB, free: 1.242 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000305/0.33, allocations: 136.5 kB / 448.3 MB, free: 1.082 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002399/0.3303, allocations: 0.7224 MB / 449.1 MB, free: 344 kB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3303, allocations: 1.781 kB / 449.1 MB, free: 344 kB / 330.7 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)