Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001692/0.001692, allocations: 202.3 kB / 8.54 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.234/1.234, allocations: 225.5 MB / 234.4 MB, free: 3.402 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00101/0.00101, allocations: 93.92 kB / 286.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1741/0.1741, allocations: 45.15 MB / 383.4 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1914/0.3656, allocations: 69.35 MB / 452.7 MB, free: 76.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08058/0.4462, allocations: 63.25 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2688/0.7151, allocations: 105.9 MB / 0.6073 GB, free: 13.12 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001956/0.7153, allocations: 79.77 kB / 0.6073 GB, free: 13.08 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.2093/0.9246, allocations: 77.51 MB / 0.683 GB, free: 7.91 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.9246, allocations: 11.94 kB / 0.6831 GB, free: 7.898 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0173/0.9419, allocations: 3.922 MB / 0.6869 GB, free: 3.965 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009449/0.9514, allocations: 3.627 MB / 0.6904 GB, free: 280 kB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/0.9515, allocations: 112 kB / 0.6905 GB, free: 168 kB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006866/0.9522, allocations: 204 kB / 0.6907 GB, free: 15.96 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008093/0.9603, allocations: 4.948 MB / 0.6956 GB, free: 11.01 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01255/0.9729, allocations: 7.966 MB / 0.7033 GB, free: 2.074 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001346/0.9731, allocations: 55.47 kB / 0.7034 GB, free: 2.02 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004813/0.9736, allocations: 28 kB / 0.7034 GB, free: 1.992 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001017/0.9746, allocations: 0.8836 MB / 0.7043 GB, free: 1.105 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03959/1.014, allocations: 40.05 MB / 0.7434 GB, free: 7.75 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003138/1.017, allocations: 2.455 MB / 0.7458 GB, free: 5.09 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001506/1.019, allocations: 1.141 MB / 0.7469 GB, free: 3.938 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1389/1.158, allocations: 4.071 MB / 0.7509 GB, free: 205.5 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/1.158, allocations: 47.59 kB / 0.7509 GB, free: 205.4 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=97): time 3.937e-06/1.158, allocations: 3.719 kB / 0.7509 GB, free: 205.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=112): time 0.01533/1.173, allocations: 8.388 MB / 0.7591 GB, free: 203.7 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.639e-05/1.173, allocations: 192.2 kB / 0.7593 GB, free: 203.5 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003897/1.177, allocations: 2.946 MB / 0.7622 GB, free: 203.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001325/1.177, allocations: 25.7 kB / 0.7622 GB, free: 203.1 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001185/1.179, allocations: 2.717 MB / 0.7649 GB, free: 201.6 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003932/1.179, allocations: 466.5 kB / 0.7653 GB, free: 201.4 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002247/1.179, allocations: 2.625 kB / 0.7653 GB, free: 201.4 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002439/1.179, allocations: 0.5425 MB / 0.7658 GB, free: 201.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00187/1.181, allocations: 1.474 MB / 0.7673 GB, free: 201 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003198/1.185, allocations: 5.199 MB / 0.7723 GB, free: 196.1 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003239/1.188, allocations: 2.792 MB / 0.7751 GB, free: 196.1 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.965e-05/1.188, allocations: 37.38 kB / 0.7751 GB, free: 196.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=731) (initialization): time 0.009033/1.197, allocations: 5.857 MB / 0.7808 GB, free: 195.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/1.197, allocations: 6.469 kB / 0.7808 GB, free: 195.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001239/1.197, allocations: 135.1 kB / 0.781 GB, free: 195.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007139/1.198, allocations: 363.8 kB / 0.7813 GB, free: 195.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003816/1.202, allocations: 1.287 MB / 0.7826 GB, free: 195.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002521/1.204, allocations: 2.574 MB / 0.7851 GB, free: 194.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003733/1.208, allocations: 169.6 kB / 0.7852 GB, free: 194.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005995/1.209, allocations: 364.4 kB / 0.7856 GB, free: 194.1 MB / 0.5261 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.0007049/1.209, allocations: 434.5 kB / 0.786 GB, free: 193.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004359/1.21, allocations: 280.1 kB / 0.7863 GB, free: 193.7 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002237/1.212, allocations: 1.303 MB / 0.7875 GB, free: 193.6 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.669e-05/1.212, allocations: 7.812 kB / 0.7876 GB, free: 193.6 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/1.212, allocations: 11.81 kB / 0.7876 GB, free: 193.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/1.212, allocations: 3.938 kB / 0.7876 GB, free: 193.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007114/1.219, allocations: 3.817 MB / 0.7913 GB, free: 193.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/1.219, allocations: 2.406 kB / 0.7913 GB, free: 193.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009537/1.22, allocations: 161 kB / 0.7915 GB, free: 193.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005042/1.221, allocations: 156.9 kB / 0.7916 GB, free: 193.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001168/1.221, allocations: 3.969 kB / 0.7916 GB, free: 193.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001894/1.223, allocations: 2.031 MB / 0.7936 GB, free: 192 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/1.223, allocations: 0 / 0.7936 GB, free: 192 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003497/1.226, allocations: 3.066 MB / 0.7966 GB, free: 190.8 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004522/1.231, allocations: 4.433 MB / 0.8009 GB, free: 188.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006814/1.232, allocations: 330 kB / 0.8012 GB, free: 188.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004942/1.232, allocations: 7.203 kB / 0.8012 GB, free: 188.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/1.233, allocations: 22.84 kB / 0.8013 GB, free: 188.4 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001538/1.233, allocations: 45.97 kB / 0.8013 GB, free: 188.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.141e-05/1.233, allocations: 26.31 kB / 0.8013 GB, free: 188.4 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.003012/1.236, allocations: 1.959 MB / 0.8032 GB, free: 187.7 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005342/1.242, allocations: 0.6885 MB / 0.8039 GB, free: 187.7 MB / 0.5261 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.0004032/1.242, allocations: 142.9 kB / 0.804 GB, free: 187.6 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005065/1.247, allocations: 3.526 MB / 0.8075 GB, free: 186.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/1.247, allocations: 1.062 kB / 0.8075 GB, free: 186.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001185/1.249, allocations: 0.8432 MB / 0.8083 GB, free: 186.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001663/1.25, allocations: 291.6 kB / 0.8086 GB, free: 185.9 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01146/1.262, allocations: 5.804 MB / 0.8143 GB, free: 182.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003891/1.266, allocations: 3.116 MB / 0.8173 GB, free: 180 MB / 0.5261 GB Notification: Performance of SimCode: time 9.62e-07/1.266, allocations: 0 / 0.8173 GB, free: 180 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1)