Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",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 4.0.0+maint.om/package.mo): time 0.0009192/0.0009193, allocations: 171.6 kB / 8.514 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.125/1.125, allocations: 221.4 MB / 230.3 MB, free: 7.777 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000921/0.000921, allocations: 88.73 kB / 281.2 MB, free: 5.535 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1551/0.1551, allocations: 44.15 MB / 376.1 MB, free: 3.254 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1959/0.351, allocations: 68.03 MB / 444.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09679/0.4479, allocations: 61.9 MB / 0.4942 GB, free: 1.555 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.928/4.376, allocations: 2.777 GB / 3.271 GB, free: 149.2 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001908/4.376, allocations: 86.59 kB / 3.271 GB, free: 149.2 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 1.719/6.095, allocations: 0.6422 GB / 3.913 GB, free: 47.97 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/6.095, allocations: 17.44 kB / 3.913 GB, free: 47.97 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008288/6.104, allocations: 1.019 MB / 3.914 GB, free: 47.89 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002368/6.106, allocations: 1.007 MB / 3.915 GB, free: 47.57 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001163/6.106, allocations: 55.28 kB / 3.915 GB, free: 47.57 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002864/6.107, allocations: 68.91 kB / 3.915 GB, free: 47.57 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002207/6.109, allocations: 1.213 MB / 3.916 GB, free: 47.56 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002514/6.111, allocations: 1.434 MB / 3.918 GB, free: 47.12 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.574e-05/6.111, allocations: 8.844 kB / 3.918 GB, free: 47.12 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001888/6.111, allocations: 5.312 kB / 3.918 GB, free: 47.12 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.618e-05/6.112, allocations: 38.5 kB / 3.918 GB, free: 47.12 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1186/6.23, allocations: 70.19 MB / 3.986 GB, free: 18.79 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009667/6.231, allocations: 0.7678 MB / 3.987 GB, free: 18.76 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004437/6.232, allocations: 379.3 kB / 3.987 GB, free: 18.75 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02846/6.26, allocations: 16.43 MB / 4.003 GB, free: 24.02 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.835e-05/6.26, allocations: 40.91 kB / 4.003 GB, free: 23.98 MB / 0.573 GB Notification: Performance of pre-optimization done (n=72): time 3.257e-06/6.26, allocations: 0 / 4.003 GB, free: 23.98 MB / 0.573 GB Notification: Performance of matching and sorting (n=72): time 0.005885/6.266, allocations: 1.848 MB / 4.005 GB, free: 23.88 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/6.266, allocations: 272.6 kB / 4.006 GB, free: 23.56 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008346/6.267, allocations: 0.7337 MB / 4.006 GB, free: 23.4 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 6.917e-05/6.267, allocations: 29.52 kB / 4.006 GB, free: 23.37 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002182/6.267, allocations: 0.542 MB / 4.007 GB, free: 23.02 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000137/6.267, allocations: 243.9 kB / 4.007 GB, free: 22.86 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.462e-05/6.268, allocations: 0 / 4.007 GB, free: 22.86 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001145/6.268, allocations: 352.6 kB / 4.007 GB, free: 22.55 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005415/6.268, allocations: 400.8 kB / 4.008 GB, free: 22.55 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006892/6.269, allocations: 0.8214 MB / 4.009 GB, free: 22.03 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003239/6.272, allocations: 0.855 MB / 4.009 GB, free: 22.01 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/6.272, allocations: 2.969 kB / 4.009 GB, free: 22.01 MB / 0.573 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.006582/6.279, allocations: 2.33 MB / 4.012 GB, free: 21.91 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001238/6.28, allocations: 4.878 MB / 4.016 GB, free: 16.79 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.596e-05/6.28, allocations: 15.28 kB / 4.016 GB, free: 16.79 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.741e-05/6.28, allocations: 20.88 kB / 4.016 GB, free: 16.79 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001259/6.281, allocations: 373.5 kB / 4.017 GB, free: 16.78 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.803e-05/6.281, allocations: 30 kB / 4.017 GB, free: 16.78 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001409/6.283, allocations: 241.5 kB / 4.017 GB, free: 16.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/6.283, allocations: 81.86 kB / 4.017 GB, free: 16.7 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 5.49e-06/6.283, allocations: 3.656 kB / 4.017 GB, free: 16.7 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003745/6.287, allocations: 1.358 MB / 4.019 GB, free: 16.67 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/6.287, allocations: 11.31 kB / 4.019 GB, free: 16.67 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/6.287, allocations: 21.25 kB / 4.019 GB, free: 16.67 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/6.288, allocations: 371.4 kB / 4.019 GB, free: 16.66 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.675e-05/6.288, allocations: 26.39 kB / 4.019 GB, free: 16.66 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001043/6.289, allocations: 183.9 kB / 4.019 GB, free: 16.61 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/6.289, allocations: 80.73 kB / 4.019 GB, free: 16.61 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 16 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP4.medium.phase,SinkP4.medium.phase,V4.state_b.phase,V4.state_a.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (143): * Single equations (assignments): 143 * 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 0.000231/6.289, allocations: 152.4 kB / 4.019 GB, free: 16.49 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001934/6.291, allocations: 0.7092 MB / 4.02 GB, free: 16.44 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005259/6.297, allocations: 4.379 MB / 4.024 GB, free: 15.89 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-05/6.297, allocations: 41.91 kB / 4.024 GB, free: 15.88 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/6.297, allocations: 0 / 4.024 GB, free: 15.88 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/6.297, allocations: 3.797 kB / 4.024 GB, free: 15.88 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00819/6.305, allocations: 7.272 MB / 4.031 GB, free: 14.55 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/6.305, allocations: 9.578 kB / 4.031 GB, free: 14.55 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006864/6.305, allocations: 206.7 kB / 4.032 GB, free: 14.54 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.083e-05/6.306, allocations: 17.47 kB / 4.032 GB, free: 14.54 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.038e-05/6.306, allocations: 25.7 kB / 4.032 GB, free: 14.54 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.295e-06/6.306, allocations: 19.02 kB / 4.032 GB, free: 14.54 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/6.306, allocations: 3.938 kB / 4.032 GB, free: 14.54 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004927/6.311, allocations: 3.462 MB / 4.035 GB, free: 13.41 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004797/6.315, allocations: 3.857 MB / 4.039 GB, free: 27.89 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008842/6.316, allocations: 0.7479 MB / 4.04 GB, free: 27.64 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003182/6.317, allocations: 13.38 kB / 4.04 GB, free: 27.64 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001029/6.318, allocations: 114.8 kB / 4.04 GB, free: 27.62 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002005/6.318, allocations: 164.5 kB / 4.04 GB, free: 27.61 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.836e-05/6.318, allocations: 41.81 kB / 4.04 GB, free: 27.61 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001458/6.319, allocations: 1.433 MB / 4.041 GB, free: 27.46 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.007492/6.327, allocations: 2.173 MB / 4.043 GB, free: 27.2 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 24 ($cse1.phase,$cse1.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse40.phase,$cse40.region,SinkP4.medium.phase,SourceP4.medium.phase,SinkP3.medium.phase,SourceP3.medium.phase,SinkP2.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SourceP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.005352/6.332, allocations: 2.219 MB / 4.046 GB, free: 26.73 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.002982/6.335, allocations: 2.305 MB / 4.048 GB, free: 26.7 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/6.335, allocations: 2.125 kB / 4.048 GB, free: 26.7 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.001083/6.336, allocations: 1.226 MB / 4.049 GB, free: 26.7 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00252/6.339, allocations: 0.5117 MB / 4.05 GB, free: 26.66 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00421/6.343, allocations: 3.133 MB / 4.053 GB, free: 25.76 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001391/6.344, allocations: 1.678 MB / 4.054 GB, free: 25 MB / 0.5886 GB Notification: Performance of SimCode: time 4.81e-07/6.344, allocations: 4 kB / 4.054 GB, free: 25 MB / 0.5886 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe 2>&1)