Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2",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.0009977/0.0009978, allocations: 178.6 kB / 8.519 MB, free: 1.832 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.183/1.183, allocations: 221.4 MB / 230.3 MB, free: 7.641 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.0009302/0.0009302, allocations: 89.84 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.1624/0.1624, allocations: 44.15 MB / 376.1 MB, free: 3.219 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.171/0.3334, allocations: 68.03 MB / 444.1 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08993/0.4233, allocations: 61.92 MB / 0.4942 GB, free: 1.52 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2588/0.6821, allocations: 105 MB / 0.5967 GB, free: 7.762 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001965/0.6824, allocations: 75.97 kB / 0.5968 GB, free: 7.688 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: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.2053/0.8877, allocations: 76.72 MB / 0.6717 GB, free: 10.39 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.8877, allocations: 11.94 kB / 0.6717 GB, free: 10.38 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01646/0.9042, allocations: 3.93 MB / 0.6756 GB, free: 6.441 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009868/0.9141, allocations: 4.166 MB / 0.6796 GB, free: 2.211 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001149/0.9142, allocations: 112 kB / 0.6797 GB, free: 2.102 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005345/0.9148, allocations: 199.9 kB / 0.6799 GB, free: 1.906 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007006/0.9218, allocations: 4.948 MB / 0.6847 GB, free: 12.95 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009902/0.9317, allocations: 7.969 MB / 0.6925 GB, free: 4.012 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001127/0.9318, allocations: 59.47 kB / 0.6926 GB, free: 3.953 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000384/0.9322, allocations: 28 kB / 0.6926 GB, free: 3.926 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009654/0.9332, allocations: 0.8797 MB / 0.6935 GB, free: 3.043 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1606/1.094, allocations: 40.04 MB / 0.7326 GB, free: 169.1 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002225/1.096, allocations: 2.466 MB / 0.735 GB, free: 168.2 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001054/1.097, allocations: 1.136 MB / 0.7361 GB, free: 168.1 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004881/1.102, allocations: 4.054 MB / 0.74 GB, free: 166.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/1.102, allocations: 48.3 kB / 0.7401 GB, free: 166.5 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=97): time 3.056e-06/1.102, allocations: 0 / 0.7401 GB, free: 166.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=112): time 0.01387/1.116, allocations: 8.386 MB / 0.7483 GB, free: 164.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.156e-05/1.116, allocations: 196.7 kB / 0.7485 GB, free: 164 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003444/1.119, allocations: 2.952 MB / 0.7514 GB, free: 163.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.944e-05/1.12, allocations: 25.7 kB / 0.7514 GB, free: 163.7 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001022/1.121, allocations: 2.709 MB / 0.754 GB, free: 162.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000301/1.121, allocations: 474.9 kB / 0.7545 GB, free: 161.9 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001638/1.121, allocations: 0 / 0.7545 GB, free: 161.9 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002281/1.121, allocations: 0.5375 MB / 0.755 GB, free: 161.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001683/1.123, allocations: 1.477 MB / 0.7564 GB, free: 161.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002838/1.126, allocations: 5.202 MB / 0.7615 GB, free: 156.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002804/1.129, allocations: 2.79 MB / 0.7643 GB, free: 155.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.802e-05/1.129, allocations: 40.03 kB / 0.7643 GB, free: 155.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=731) (initialization): time 0.007666/1.136, allocations: 5.863 MB / 0.77 GB, free: 154.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/1.136, allocations: 5.688 kB / 0.77 GB, free: 154.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.962e-05/1.137, allocations: 137.2 kB / 0.7701 GB, free: 154.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007026/1.137, allocations: 367 kB / 0.7705 GB, free: 154.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003471/1.141, allocations: 1.28 MB / 0.7717 GB, free: 154.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002365/1.143, allocations: 2.583 MB / 0.7743 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003254/1.146, allocations: 172.8 kB / 0.7744 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003571/1.147, allocations: 359.8 kB / 0.7748 GB, free: 152.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 615 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[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],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (696): * Single equations (assignments): 692 * 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.000487/1.147, allocations: 441.1 kB / 0.7752 GB, free: 151.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000318/1.148, allocations: 283 kB / 0.7755 GB, free: 151.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00202/1.15, allocations: 1.3 MB / 0.7767 GB, free: 151.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.713e-05/1.15, allocations: 11.28 kB / 0.7768 GB, free: 151.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/1.15, allocations: 0 / 0.7768 GB, free: 151.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/1.15, allocations: 7.797 kB / 0.7768 GB, free: 151.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005918/1.156, allocations: 3.822 MB / 0.7805 GB, free: 149.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/1.156, allocations: 3.969 kB / 0.7805 GB, free: 149.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008635/1.156, allocations: 158.2 kB / 0.7806 GB, free: 149.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004886/1.157, allocations: 148.4 kB / 0.7808 GB, free: 149.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.906e-05/1.157, allocations: 7.531 kB / 0.7808 GB, free: 149.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001746/1.159, allocations: 2.029 MB / 0.7828 GB, free: 148.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/1.159, allocations: 4.031 kB / 0.7828 GB, free: 148.3 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003459/1.162, allocations: 3.058 MB / 0.7858 GB, free: 146.9 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004541/1.167, allocations: 4.44 MB / 0.7901 GB, free: 144.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004149/1.167, allocations: 330 kB / 0.7904 GB, free: 144.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003513/1.168, allocations: 4.094 kB / 0.7904 GB, free: 144.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009757/1.169, allocations: 21.2 kB / 0.7904 GB, free: 144.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/1.169, allocations: 52.12 kB / 0.7905 GB, free: 144.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.481e-05/1.169, allocations: 27.44 kB / 0.7905 GB, free: 144.4 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.002479/1.171, allocations: 1.962 MB / 0.7924 GB, free: 143.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004836/1.176, allocations: 0.673 MB / 0.7931 GB, free: 142.9 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 78 * 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.0003264/1.177, allocations: 132.9 kB / 0.7932 GB, free: 142.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.004287/1.181, allocations: 3.529 MB / 0.7967 GB, free: 139.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/1.181, allocations: 3.844 kB / 0.7967 GB, free: 139.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0009084/1.182, allocations: 0.8437 MB / 0.7975 GB, free: 138.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001276/1.183, allocations: 295.5 kB / 0.7978 GB, free: 138.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009092/1.192, allocations: 5.803 MB / 0.8034 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003003/1.195, allocations: 3.119 MB / 0.8065 GB, free: 130.9 MB / 0.5105 GB Notification: Performance of SimCode: time 4.61e-07/1.195, allocations: 0 / 0.8065 GB, free: 130.9 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1)