Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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 Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.00179/0.00179, allocations: 190.4 kB / 7.803 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.651/1.651, allocations: 205.2 MB / 213.4 MB, free: 13.87 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.0009891/0.000989, allocations: 87.44 kB / 261.4 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2781/0.2781, allocations: 43.49 MB / 352.9 MB, free: 1.949 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.264/0.5421, allocations: 64.97 MB / 417.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4168/0.9589, allocations: 58.84 MB / 476.7 MB, free: 5.176 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.985/7.944, allocations: 2.771 GB / 3.237 GB, free: 96.55 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003005/7.944, allocations: 89.61 kB / 3.237 GB, free: 96.47 MB / 0.4948 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 2.535/10.48, allocations: 0.635 GB / 3.872 GB, free: 31.78 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.233e-05/10.48, allocations: 10 kB / 3.872 GB, free: 31.78 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009994/10.49, allocations: 1.017 MB / 3.873 GB, free: 31.34 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00379/10.49, allocations: 1.011 MB / 3.874 GB, free: 30.58 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002269/10.49, allocations: 57.78 kB / 3.874 GB, free: 30.57 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005523/10.49, allocations: 66.62 kB / 3.874 GB, free: 30.57 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004339/10.5, allocations: 1.216 MB / 3.875 GB, free: 30.04 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00492/10.5, allocations: 1.427 MB / 3.877 GB, free: 29.04 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.533e-05/10.5, allocations: 6.656 kB / 3.877 GB, free: 29.03 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003879/10.5, allocations: 10.53 kB / 3.877 GB, free: 29.03 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.3e-05/10.5, allocations: 34.31 kB / 3.877 GB, free: 29.02 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4874/10.99, allocations: 70.19 MB / 3.945 GB, free: 80.73 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/10.99, allocations: 0.7764 MB / 3.946 GB, free: 80.71 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004968/10.99, allocations: 379.8 kB / 3.946 GB, free: 80.7 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03332/11.03, allocations: 16.41 MB / 3.962 GB, free: 70.65 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.313e-05/11.03, allocations: 47.5 kB / 3.962 GB, free: 70.61 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=72): time 5.911e-06/11.03, allocations: 0 / 3.962 GB, free: 70.61 MB / 0.5261 GB Notification: Performance of matching and sorting (n=72): time 0.007784/11.03, allocations: 1.842 MB / 3.964 GB, free: 70.57 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001398/11.03, allocations: 270.4 kB / 3.964 GB, free: 70.26 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002065/11.04, allocations: 0.7351 MB / 3.965 GB, free: 70.12 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002727/11.04, allocations: 25.7 kB / 3.965 GB, free: 70.09 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007012/11.04, allocations: 0.5461 MB / 3.966 GB, free: 69.81 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004469/11.04, allocations: 235.2 kB / 3.966 GB, free: 69.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001446/11.04, allocations: 0 / 3.966 GB, free: 69.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001547/11.04, allocations: 347 kB / 3.966 GB, free: 69.39 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008596/11.04, allocations: 407.4 kB / 3.967 GB, free: 69.39 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001143/11.04, allocations: 0.8204 MB / 3.967 GB, free: 68.88 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004084/11.04, allocations: 0.8635 MB / 3.968 GB, free: 68.88 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.837e-05/11.04, allocations: 3.969 kB / 3.968 GB, free: 68.88 MB / 0.5261 GB Notification: Performance of matching and sorting (n=143) (initialization): time 0.008437/11.05, allocations: 2.333 MB / 3.971 GB, free: 68.77 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001636/11.05, allocations: 4.869 MB / 3.975 GB, free: 63.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.761e-05/11.05, allocations: 13.34 kB / 3.975 GB, free: 63.71 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.863e-05/11.05, allocations: 18.69 kB / 3.975 GB, free: 63.71 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00159/11.06, allocations: 379 kB / 3.976 GB, free: 63.71 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.166e-05/11.06, allocations: 26.47 kB / 3.976 GB, free: 63.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002461/11.06, allocations: 242.3 kB / 3.976 GB, free: 63.67 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002455/11.06, allocations: 78.67 kB / 3.976 GB, free: 63.67 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/11.06, allocations: 7.781 kB / 3.976 GB, free: 63.67 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007726/11.07, allocations: 1.355 MB / 3.977 GB, free: 63.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-05/11.07, allocations: 18.06 kB / 3.977 GB, free: 63.64 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.552e-05/11.07, allocations: 18.78 kB / 3.977 GB, free: 63.64 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002207/11.07, allocations: 376.4 kB / 3.978 GB, free: 63.64 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.577e-05/11.07, allocations: 33.62 kB / 3.978 GB, free: 63.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002658/11.07, allocations: 185.6 kB / 3.978 GB, free: 63.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003292/11.07, allocations: 69.92 kB / 3.978 GB, free: 63.6 MB / 0.5261 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.0008213/11.07, allocations: 158.8 kB / 3.978 GB, free: 63.48 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004278/11.08, allocations: 0.7127 MB / 3.979 GB, free: 63.43 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01141/11.09, allocations: 4.383 MB / 3.983 GB, free: 62.91 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.425e-05/11.09, allocations: 34.3 kB / 3.983 GB, free: 62.91 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.337e-05/11.09, allocations: 0 / 3.983 GB, free: 62.91 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-05/11.09, allocations: 3.609 kB / 3.983 GB, free: 62.91 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01472/11.1, allocations: 7.279 MB / 3.99 GB, free: 61.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.888e-05/11.1, allocations: 6.156 kB / 3.99 GB, free: 61.62 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007858/11.1, allocations: 206.9 kB / 3.991 GB, free: 61.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.003e-05/11.1, allocations: 15.66 kB / 3.991 GB, free: 61.62 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.184e-05/11.1, allocations: 29.16 kB / 3.991 GB, free: 61.62 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-05/11.11, allocations: 12.59 kB / 3.991 GB, free: 61.61 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.19e-05/11.11, allocations: 11 kB / 3.991 GB, free: 61.61 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006449/11.11, allocations: 3.457 MB / 3.994 GB, free: 60.48 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007344/11.12, allocations: 3.858 MB / 3.998 GB, free: 58.97 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002091/11.12, allocations: 0.7577 MB / 3.998 GB, free: 58.74 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008457/11.12, allocations: 9.688 kB / 3.998 GB, free: 58.74 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001986/11.12, allocations: 111.2 kB / 3.999 GB, free: 58.72 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003123/11.12, allocations: 163.6 kB / 3.999 GB, free: 58.71 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001771/11.12, allocations: 47.91 kB / 3.999 GB, free: 58.71 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002753/11.13, allocations: 1.43 MB / 4 GB, free: 58.57 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01476/11.14, allocations: 2.168 MB / 4.002 GB, free: 58.43 MB / 0.5261 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.01286/11.15, allocations: 2.201 MB / 4.004 GB, free: 58.11 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004122/11.16, allocations: 2.295 MB / 4.007 GB, free: 58.07 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.392e-05/11.16, allocations: 5.25 kB / 4.007 GB, free: 58.07 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00141/11.16, allocations: 1.228 MB / 4.008 GB, free: 58.07 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003911/11.16, allocations: 0.5123 MB / 4.008 GB, free: 58.04 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007855/11.17, allocations: 3.129 MB / 4.011 GB, free: 57.14 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002363/11.17, allocations: 1.676 MB / 4.013 GB, free: 56.38 MB / 0.5261 GB Notification: Performance of SimCode: time 1.973e-06/11.17, allocations: 0 / 4.013 GB, free: 56.38 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients.pipe 2>&1)