Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.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.TestValvesIncompressibleReverse,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValvesIncompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValvesIncompressibleReverse",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.001939/0.001939, allocations: 188.2 kB / 7.801 MB, free: 2.496 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.708/1.708, allocations: 205.2 MB / 213.4 MB, free: 13.91 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.0009899/0.0009899, allocations: 85.11 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.2399/0.2399, allocations: 43.49 MB / 352.8 MB, free: 1.949 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2795/0.5195, allocations: 64.97 MB / 417.8 MB, free: 40.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4114/0.9309, allocations: 58.84 MB / 476.7 MB, free: 5.184 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5877/1.519, allocations: 218.5 MB / 0.6788 GB, free: 116.9 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002853/1.519, allocations: 89.19 kB / 0.6789 GB, free: 116.8 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 209 * Number of variables: 209 Notification: Performance of Generate backend data structure: time 2.263/3.782, allocations: 0.6502 GB / 1.329 GB, free: 73.95 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/3.783, allocations: 9.656 kB / 1.329 GB, free: 73.95 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004582/3.787, allocations: 430.4 kB / 1.33 GB, free: 73.74 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003145/3.79, allocations: 0.9299 MB / 1.33 GB, free: 73.06 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.1e-05/3.79, allocations: 26.03 kB / 1.331 GB, free: 73.06 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004328/3.791, allocations: 50.94 kB / 1.331 GB, free: 73.06 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00245/3.793, allocations: 0.7764 MB / 1.331 GB, free: 72.74 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003226/3.797, allocations: 1.044 MB / 1.332 GB, free: 72.05 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.439e-05/3.797, allocations: 1.219 kB / 1.332 GB, free: 72.05 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003017/3.797, allocations: 6.062 kB / 1.332 GB, free: 72.05 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.924e-05/3.797, allocations: 20.47 kB / 1.332 GB, free: 72.05 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009372/3.806, allocations: 5.411 MB / 1.338 GB, free: 67.16 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001067/3.808, allocations: 481.2 kB / 1.338 GB, free: 66.93 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005498/3.808, allocations: 291.5 kB / 1.338 GB, free: 66.81 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008478/3.809, allocations: 0.9618 MB / 1.339 GB, free: 65.73 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.945e-05/3.809, allocations: 44.72 kB / 1.339 GB, free: 65.69 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=65): time 4.979e-06/3.809, allocations: 0 / 1.339 GB, free: 65.69 MB / 0.4948 GB Notification: Performance of matching and sorting (n=65): time 0.01098/3.82, allocations: 1.582 MB / 1.341 GB, free: 64.97 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.531e-05/3.82, allocations: 188.1 kB / 1.341 GB, free: 64.75 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001627/3.822, allocations: 0.6126 MB / 1.342 GB, free: 64.4 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002702/3.822, allocations: 27.39 kB / 1.342 GB, free: 64.37 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005299/3.823, allocations: 395.2 kB / 1.342 GB, free: 64.03 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003857/3.823, allocations: 213 kB / 1.342 GB, free: 63.84 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.858e-05/3.823, allocations: 0 / 1.342 GB, free: 63.84 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001489/3.823, allocations: 341.3 kB / 1.343 GB, free: 63.51 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007958/3.824, allocations: 293.3 kB / 1.343 GB, free: 63.39 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001049/3.825, allocations: 487.3 kB / 1.343 GB, free: 63.02 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01052/3.836, allocations: 1.696 MB / 1.345 GB, free: 61.37 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.809e-05/3.836, allocations: 4 kB / 1.345 GB, free: 61.36 MB / 0.4948 GB Notification: Performance of matching and sorting (n=102) (initialization): time 0.01249/3.848, allocations: 2.383 MB / 1.347 GB, free: 58.97 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005577/3.849, allocations: 1.84 MB / 1.349 GB, free: 57 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.31e-05/3.849, allocations: 4 kB / 1.349 GB, free: 57 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002765/3.852, allocations: 459.6 kB / 1.35 GB, free: 56.57 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001646/3.853, allocations: 302.3 kB / 1.35 GB, free: 56.28 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003737/3.857, allocations: 1.032 MB / 1.351 GB, free: 55.22 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001921/3.859, allocations: 126.5 kB / 1.351 GB, free: 55.11 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004537/3.86, allocations: 164 kB / 1.351 GB, free: 54.95 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/3.86, allocations: 4 kB / 1.351 GB, free: 54.94 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009042/3.869, allocations: 1.909 MB / 1.353 GB, free: 53.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.748e-05/3.869, allocations: 10.91 kB / 1.353 GB, free: 53.03 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003399/3.869, allocations: 79.3 kB / 1.353 GB, free: 52.95 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/3.87, allocations: 306.3 kB / 1.353 GB, free: 52.66 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001779/3.872, allocations: 1.579 MB / 1.355 GB, free: 50.97 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0014/3.874, allocations: 111 kB / 1.355 GB, free: 50.87 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002866/3.874, allocations: 124 kB / 1.355 GB, free: 50.75 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0004617/3.874, allocations: 127.9 kB / 1.355 GB, free: 50.62 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004847/3.875, allocations: 102.8 kB / 1.355 GB, free: 50.52 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01266/3.888, allocations: 4.783 MB / 1.36 GB, free: 45.99 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001055/3.888, allocations: 31.97 kB / 1.36 GB, free: 45.96 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.381e-05/3.888, allocations: 3 kB / 1.36 GB, free: 45.96 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-05/3.888, allocations: 7.984 kB / 1.36 GB, free: 45.95 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0024/3.89, allocations: 0.9381 MB / 1.361 GB, free: 45 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/3.89, allocations: 0 / 1.361 GB, free: 45 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006203/3.891, allocations: 163.8 kB / 1.361 GB, free: 44.84 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001153/3.892, allocations: 319.4 kB / 1.361 GB, free: 44.53 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001127/3.892, allocations: 31.97 kB / 1.362 GB, free: 44.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001658/3.894, allocations: 0.9984 MB / 1.362 GB, free: 43.47 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.154e-06/3.894, allocations: 3.984 kB / 1.362 GB, free: 43.47 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004703/3.899, allocations: 1.715 MB / 1.364 GB, free: 41.73 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005251/3.904, allocations: 2.177 MB / 1.366 GB, free: 39.53 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/3.905, allocations: 371.1 kB / 1.367 GB, free: 39.15 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004312/3.905, allocations: 7.906 kB / 1.367 GB, free: 39.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/3.907, allocations: 67.92 kB / 1.367 GB, free: 39.07 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001736/3.907, allocations: 72.91 kB / 1.367 GB, free: 39 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002013/3.907, allocations: 104 kB / 1.367 GB, free: 38.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0008783/3.908, allocations: 0.4962 MB / 1.367 GB, free: 38.4 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008009/3.916, allocations: 1.461 MB / 1.369 GB, free: 36.94 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (81): * Single equations (assignments): 65 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.006506/3.922, allocations: 1.105 MB / 1.37 GB, free: 35.9 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003715/3.926, allocations: 1.515 MB / 1.371 GB, free: 34.38 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/3.926, allocations: 0 / 1.371 GB, free: 34.38 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00114/3.927, allocations: 0.5813 MB / 1.372 GB, free: 33.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002668/3.93, allocations: 421.7 kB / 1.372 GB, free: 33.4 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004206/3.934, allocations: 1.775 MB / 1.374 GB, free: 31.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001707/3.936, allocations: 1.463 MB / 1.375 GB, free: 30.11 MB / 0.4948 GB Notification: Performance of SimCode: time 2.676e-06/3.936, allocations: 0 / 1.375 GB, free: 30.11 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValvesIncompressibleReverse_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValvesIncompressibleReverse.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse.pipe 2>&1)