Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001071/0.001071, allocations: 198.6 kB / 8.539 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 225.5 MB / 234.4 MB, free: 3.348 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009442/0.0009442, allocations: 90.08 kB / 286.3 MB, free: 5.203 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.178/0.178, allocations: 45.15 MB / 383.4 MB, free: 0.5312 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.197/0.3751, allocations: 69.36 MB / 452.7 MB, free: 76.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08227/0.4574, allocations: 63.23 MB / 0.5039 GB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2716/0.7291, allocations: 106.4 MB / 0.6078 GB, free: 12.93 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002182/0.7293, allocations: 80.89 kB / 0.6079 GB, free: 12.89 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.2009/0.9302, allocations: 73.75 MB / 0.6799 GB, free: 11.26 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.9303, allocations: 15.98 kB / 0.6799 GB, free: 11.24 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01709/0.9474, allocations: 3.875 MB / 0.6837 GB, free: 7.355 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009407/0.9568, allocations: 3.506 MB / 0.6871 GB, free: 3.785 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001298/0.957, allocations: 100 kB / 0.6872 GB, free: 3.688 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009539/0.958, allocations: 191.9 kB / 0.6874 GB, free: 3.5 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007255/0.9652, allocations: 4.595 MB / 0.6919 GB, free: 14.9 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01018/0.9754, allocations: 7.456 MB / 0.6992 GB, free: 6.492 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001349/0.9756, allocations: 59.47 kB / 0.6992 GB, free: 6.434 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000392/0.976, allocations: 28 kB / 0.6993 GB, free: 6.406 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009347/0.9769, allocations: 0.8401 MB / 0.7001 GB, free: 5.562 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03575/1.013, allocations: 38.12 MB / 0.7373 GB, free: 14.21 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002535/1.015, allocations: 2.126 MB / 0.7394 GB, free: 11.94 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001353/1.017, allocations: 1.153 MB / 0.7405 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006029/1.023, allocations: 4.06 MB / 0.7445 GB, free: 6.504 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.156e-05/1.023, allocations: 39 kB / 0.7445 GB, free: 6.457 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=105): time 3.928e-06/1.023, allocations: 4 kB / 0.7445 GB, free: 6.453 MB / 0.5261 GB Notification: Performance of matching and sorting (n=130): time 0.1549/1.178, allocations: 10.11 MB / 0.7544 GB, free: 207 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.995e-05/1.178, allocations: 195.9 kB / 0.7546 GB, free: 206.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003241/1.181, allocations: 2.79 MB / 0.7573 GB, free: 206.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001065/1.181, allocations: 27.67 kB / 0.7573 GB, free: 206.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009677/1.182, allocations: 2.501 MB / 0.7598 GB, free: 205.1 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003488/1.182, allocations: 0.5045 MB / 0.7603 GB, free: 204.9 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001739/1.183, allocations: 0 / 0.7603 GB, free: 204.9 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002178/1.183, allocations: 0.533 MB / 0.7608 GB, free: 204.6 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0018/1.185, allocations: 1.525 MB / 0.7623 GB, free: 204.5 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002844/1.188, allocations: 4.974 MB / 0.7671 GB, free: 200 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002877/1.19, allocations: 2.764 MB / 0.7698 GB, free: 200 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.241e-05/1.19, allocations: 40.58 kB / 0.7699 GB, free: 200 MB / 0.5261 GB Notification: Performance of matching and sorting (n=702) (initialization): time 0.007938/1.198, allocations: 5.797 MB / 0.7755 GB, free: 199.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/1.198, allocations: 3.156 kB / 0.7755 GB, free: 199.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.401e-05/1.199, allocations: 128.5 kB / 0.7757 GB, free: 199.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006774/1.199, allocations: 351 kB / 0.776 GB, free: 199.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00359/1.203, allocations: 1.238 MB / 0.7772 GB, free: 199.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002407/1.205, allocations: 2.55 MB / 0.7797 GB, free: 198 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003605/1.209, allocations: 168.1 kB / 0.7798 GB, free: 198 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000531/1.209, allocations: 337.2 kB / 0.7802 GB, free: 198 MB / 0.5261 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.0005725/1.21, allocations: 413.5 kB / 0.7806 GB, free: 197.7 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003551/1.21, allocations: 277.9 kB / 0.7808 GB, free: 197.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002436/1.213, allocations: 1.558 MB / 0.7823 GB, free: 197.5 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.193e-05/1.213, allocations: 10.09 kB / 0.7824 GB, free: 197.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/1.213, allocations: 6.469 kB / 0.7824 GB, free: 197.5 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/1.213, allocations: 9.875 kB / 0.7824 GB, free: 197.5 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006844/1.22, allocations: 4.293 MB / 0.7866 GB, free: 197 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.533e-06/1.22, allocations: 3.891 kB / 0.7866 GB, free: 197 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001082/1.221, allocations: 184.6 kB / 0.7867 GB, free: 197 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004774/1.221, allocations: 157.4 kB / 0.7869 GB, free: 197 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.677e-05/1.222, allocations: 7.25 kB / 0.7869 GB, free: 197 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00188/1.223, allocations: 2.026 MB / 0.7889 GB, free: 195.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/1.223, allocations: 3.969 kB / 0.7889 GB, free: 195.8 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00404/1.227, allocations: 3.561 MB / 0.7924 GB, free: 194.9 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005002/1.232, allocations: 5.127 MB / 0.7974 GB, free: 192.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005566/1.233, allocations: 324.1 kB / 0.7977 GB, free: 192.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003807/1.233, allocations: 7.438 kB / 0.7977 GB, free: 192.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/1.235, allocations: 32.03 kB / 0.7977 GB, free: 192.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/1.235, allocations: 53.38 kB / 0.7978 GB, free: 192.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001052/1.235, allocations: 38.16 kB / 0.7978 GB, free: 192.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002327/1.237, allocations: 1.858 MB / 0.7996 GB, free: 191.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004308/1.241, allocations: 0.673 MB / 0.8003 GB, free: 191.4 MB / 0.5261 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.0003362/1.242, allocations: 148.8 kB / 0.8004 GB, free: 191.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004486/1.246, allocations: 3.636 MB / 0.804 GB, free: 190.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/1.246, allocations: 0.5 kB / 0.804 GB, free: 190.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001053/1.247, allocations: 0.9792 MB / 0.8049 GB, free: 189.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001317/1.249, allocations: 286.4 kB / 0.8052 GB, free: 189.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01031/1.259, allocations: 5.719 MB / 0.8108 GB, free: 187.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003226/1.262, allocations: 2.979 MB / 0.8137 GB, free: 185.2 MB / 0.5261 GB Notification: Performance of SimCode: time 5.61e-07/1.262, allocations: 0 / 0.8137 GB, free: 185.2 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1)