Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.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.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",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.001029/0.001029, allocations: 182.7 kB / 8.522 MB, free: 1.84 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.186/1.186, allocations: 221.4 MB / 230.3 MB, free: 7.703 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.000972/0.0009721, allocations: 92.66 kB / 281.2 MB, free: 5.457 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.1621/0.1621, allocations: 44.15 MB / 376.1 MB, free: 3.18 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1744/0.3366, allocations: 68.03 MB / 444.1 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08987/0.4265, allocations: 61.91 MB / 0.4942 GB, free: 1.457 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2628/0.6893, allocations: 105.5 MB / 0.5972 GB, free: 7.016 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002053/0.6896, allocations: 83.58 kB / 0.5973 GB, free: 6.938 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.2002/0.8898, allocations: 72.95 MB / 0.6686 GB, free: 13.42 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.8898, allocations: 15.92 kB / 0.6686 GB, free: 13.4 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01666/0.9065, allocations: 3.872 MB / 0.6724 GB, free: 9.52 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01022/0.9168, allocations: 4.048 MB / 0.6763 GB, free: 5.406 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001188/0.9169, allocations: 100 kB / 0.6764 GB, free: 5.309 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008163/0.9177, allocations: 184 kB / 0.6766 GB, free: 5.129 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007453/0.9252, allocations: 4.599 MB / 0.6811 GB, free: 0.5234 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009272/0.9345, allocations: 7.459 MB / 0.6884 GB, free: 8.113 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001116/0.9346, allocations: 59.41 kB / 0.6884 GB, free: 8.055 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003484/0.935, allocations: 28 kB / 0.6884 GB, free: 8.027 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008503/0.9358, allocations: 0.8362 MB / 0.6893 GB, free: 7.184 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1603/1.096, allocations: 38.13 MB / 0.7265 GB, free: 171.7 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001987/1.098, allocations: 2.116 MB / 0.7286 GB, free: 171 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001133/1.099, allocations: 1.148 MB / 0.7297 GB, free: 171 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004892/1.104, allocations: 4.058 MB / 0.7336 GB, free: 169.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.142e-05/1.104, allocations: 44.59 kB / 0.7337 GB, free: 169.5 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=105): time 3.216e-06/1.104, allocations: 0 / 0.7337 GB, free: 169.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=130): time 0.01979/1.124, allocations: 10.12 MB / 0.7436 GB, free: 167.1 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.452e-05/1.124, allocations: 200.7 kB / 0.7438 GB, free: 166.9 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002982/1.127, allocations: 2.79 MB / 0.7465 GB, free: 166.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 7.434e-05/1.127, allocations: 25.7 kB / 0.7465 GB, free: 166.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008607/1.128, allocations: 2.504 MB / 0.749 GB, free: 165.2 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002831/1.128, allocations: 0.5034 MB / 0.7494 GB, free: 164.9 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001634/1.129, allocations: 1.781 kB / 0.7494 GB, free: 164.9 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000205/1.129, allocations: 0.5363 MB / 0.75 GB, free: 164.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001682/1.13, allocations: 1.519 MB / 0.7515 GB, free: 164.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002948/1.133, allocations: 4.975 MB / 0.7563 GB, free: 160 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00275/1.136, allocations: 2.764 MB / 0.759 GB, free: 159.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.191e-05/1.136, allocations: 35.97 kB / 0.759 GB, free: 159.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=702) (initialization): time 0.007398/1.144, allocations: 5.797 MB / 0.7647 GB, free: 158 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/1.144, allocations: 10.16 kB / 0.7647 GB, free: 157.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-05/1.144, allocations: 123.7 kB / 0.7648 GB, free: 157.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006532/1.144, allocations: 354.4 kB / 0.7652 GB, free: 157.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003381/1.148, allocations: 1.228 MB / 0.7664 GB, free: 157.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002276/1.15, allocations: 2.558 MB / 0.7689 GB, free: 156 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003115/1.153, allocations: 163.7 kB / 0.769 GB, free: 156 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003748/1.154, allocations: 339.1 kB / 0.7693 GB, free: 156 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 568 * Number of states: 0 () * Number of discrete variables: 29 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (667): * Single equations (assignments): 663 * Array equations: 3 * 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: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005256/1.154, allocations: 418 kB / 0.7697 GB, free: 155.6 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003159/1.154, allocations: 274.7 kB / 0.77 GB, free: 155.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002264/1.157, allocations: 1.559 MB / 0.7715 GB, free: 154.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.794e-05/1.157, allocations: 11.31 kB / 0.7715 GB, free: 154.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/1.157, allocations: 3.625 kB / 0.7715 GB, free: 154.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/1.157, allocations: 10.64 kB / 0.7716 GB, free: 154.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006247/1.163, allocations: 4.299 MB / 0.7758 GB, free: 153.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/1.163, allocations: 0 / 0.7758 GB, free: 153.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001076/1.164, allocations: 186.6 kB / 0.7759 GB, free: 153.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004653/1.165, allocations: 159.1 kB / 0.7761 GB, free: 153.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.037e-05/1.165, allocations: 3.875 kB / 0.7761 GB, free: 153.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001817/1.167, allocations: 2.029 MB / 0.7781 GB, free: 151.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/1.167, allocations: 8.375 kB / 0.7781 GB, free: 151.6 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004143/1.171, allocations: 3.561 MB / 0.7816 GB, free: 150 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005363/1.176, allocations: 5.135 MB / 0.7866 GB, free: 147.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004036/1.177, allocations: 320.4 kB / 0.7869 GB, free: 147.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003595/1.177, allocations: 4 kB / 0.7869 GB, free: 147.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/1.178, allocations: 26.27 kB / 0.7869 GB, free: 147.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/1.178, allocations: 60.81 kB / 0.787 GB, free: 147.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.083e-05/1.178, allocations: 39.94 kB / 0.787 GB, free: 147 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.002178/1.18, allocations: 1.86 MB / 0.7888 GB, free: 145.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004229/1.185, allocations: 0.6537 MB / 0.7895 GB, free: 144.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 96 * Array equations: 3 * 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: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002894/1.185, allocations: 142.4 kB / 0.7896 GB, free: 144.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003786/1.189, allocations: 3.639 MB / 0.7931 GB, free: 141.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/1.189, allocations: 0 / 0.7931 GB, free: 141.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001027/1.19, allocations: 0.9845 MB / 0.7941 GB, free: 140.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/1.191, allocations: 292.2 kB / 0.7944 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008418/1.199, allocations: 5.719 MB / 0.8 GB, free: 135.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002831/1.202, allocations: 2.984 MB / 0.8029 GB, free: 132.7 MB / 0.5105 GB Notification: Performance of SimCode: time 5.01e-07/1.202, allocations: 0 / 0.8029 GB, free: 132.7 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1)