Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.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.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor",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.00126/0.00126, allocations: 186.9 kB / 7.802 MB, free: 2.5 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.418/1.418, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0008995/0.0008995, allocations: 80.53 kB / 261.4 MB, free: 13.62 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.2308/0.2308, allocations: 43.49 MB / 352.8 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2308/0.4616, allocations: 64.97 MB / 417.8 MB, free: 40.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3399/0.8016, allocations: 58.83 MB / 476.6 MB, free: 5.195 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1667/0.9683, allocations: 111.2 MB / 0.5741 GB, free: 3.707 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/0.9686, allocations: 71.97 kB / 0.5741 GB, free: 3.637 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: 5965 * Number of variables: 5965 Notification: Performance of Generate backend data structure: time 1.273/2.242, allocations: 254 MB / 0.8222 GB, free: 70.2 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.373e-05/2.242, allocations: 11.41 kB / 0.8222 GB, free: 70.2 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03507/2.277, allocations: 7.912 MB / 0.8299 GB, free: 69.16 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03382/2.311, allocations: 12.49 MB / 0.8421 GB, free: 68.68 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001658/2.313, allocations: 0.6423 MB / 0.8428 GB, free: 68.68 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01035/2.323, allocations: 1.167 MB / 0.8439 GB, free: 68.67 MB / 490.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05281/2.376, allocations: 23.49 MB / 0.8668 GB, free: 68.58 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1137/2.49, allocations: 34.13 MB / 0.9002 GB, free: 61.64 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001524/2.491, allocations: 149.5 kB / 0.9003 GB, free: 61.62 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009518/2.501, allocations: 69.41 kB / 0.9004 GB, free: 61.62 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003673/2.504, allocations: 2.501 MB / 0.9028 GB, free: 61.22 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.721/3.225, allocations: 142.8 MB / 1.042 GB, free: 32.65 MB / 0.5106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01183/3.237, allocations: 8.086 MB / 1.05 GB, free: 32 MB / 0.5106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009822/3.247, allocations: 7.131 MB / 1.057 GB, free: 31.95 MB / 0.5106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05215/3.299, allocations: 28.05 MB / 1.085 GB, free: 27.12 MB / 0.5106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.047e-05/3.3, allocations: 83.88 kB / 1.085 GB, free: 27.08 MB / 0.5106 GB Notification: Performance of pre-optimization done (n=381): time 9.688e-06/3.3, allocations: 0 / 1.085 GB, free: 27.08 MB / 0.5106 GB Notification: Performance of matching and sorting (n=495): time 0.9218/4.221, allocations: 199 MB / 1.279 GB, free: 101.4 MB / 0.5263 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/4.221, allocations: 289.8 kB / 1.279 GB, free: 101.1 MB / 0.5263 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02132/4.243, allocations: 8.008 MB / 1.287 GB, free: 100.2 MB / 0.5263 GB Notification: Performance of collectPreVariables (initialization): time 0.002672/4.246, allocations: 27.58 kB / 1.287 GB, free: 100.1 MB / 0.5263 GB Notification: Performance of collectInitialEqns (initialization): time 0.008582/4.254, allocations: 10.38 MB / 1.297 GB, free: 92.26 MB / 0.5263 GB Notification: Performance of collectInitialBindings (initialization): time 0.004523/4.259, allocations: 1.865 MB / 1.299 GB, free: 90.9 MB / 0.5263 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003809/4.263, allocations: 0 / 1.299 GB, free: 90.9 MB / 0.5263 GB Notification: Performance of setup shared object (initialization): time 0.001381/4.264, allocations: 1.046 MB / 1.3 GB, free: 90.28 MB / 0.5263 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02223/4.286, allocations: 15.81 MB / 1.315 GB, free: 83.55 MB / 0.5263 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03353/4.32, allocations: 26.52 MB / 1.341 GB, free: 62.31 MB / 0.5263 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0293/4.349, allocations: 20.02 MB / 1.361 GB, free: 54.49 MB / 0.5263 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004508/4.35, allocations: 108.7 kB / 1.361 GB, free: 54.49 MB / 0.5263 GB Notification: Performance of matching and sorting (n=2257) (initialization): time 0.4129/4.763, allocations: 41.03 MB / 1.401 GB, free: 95.66 MB / 0.5263 GB Notification: Performance of prepare postOptimizeDAE: time 2.803e-05/4.763, allocations: 3.719 kB / 1.401 GB, free: 95.66 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008859/4.763, allocations: 384 kB / 1.401 GB, free: 95.66 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001921/4.765, allocations: 0.8814 MB / 1.402 GB, free: 95.65 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02371/4.789, allocations: 4.803 MB / 1.407 GB, free: 95.28 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006148/4.795, allocations: 5.383 MB / 1.412 GB, free: 92.61 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02237/4.818, allocations: 1.247 MB / 1.413 GB, free: 92.6 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006453/4.824, allocations: 1.045 MB / 1.415 GB, free: 92.6 MB / 0.5263 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1756 * Number of states: 0 () * Number of discrete variables: 48 (relativeSensor.arrowColor[3],relativeSensor.arrowColor[2],relativeSensor.arrowColor[1],relative_b1.arrowColor[3],relative_b1.arrowColor[2],relative_b1.arrowColor[1],relative_b2.arrowColor[3],relative_b2.arrowColor[2],relative_b2.arrowColor[1],relative_a2.arrowColor[3],relative_a2.arrowColor[2],relative_a2.arrowColor[1],relative_a1.arrowColor[3],relative_a1.arrowColor[2],relative_a1.arrowColor[1],BodyBox2.color[3],BodyBox2.color[2],BodyBox2.color[1],BodyBox2.body.sphereColor[3],BodyBox2.body.sphereColor[2],BodyBox2.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (2201): * Single equations (assignments): 2191 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009394/4.834, allocations: 1.012 MB / 1.416 GB, free: 91.9 MB / 0.5263 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003284/4.837, allocations: 0.8188 MB / 1.416 GB, free: 91.9 MB / 0.5263 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05022/4.887, allocations: 30.44 MB / 1.446 GB, free: 91.67 MB / 0.5263 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002098/4.887, allocations: 90.02 kB / 1.446 GB, free: 91.67 MB / 0.5263 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.205e-05/4.888, allocations: 6.797 kB / 1.446 GB, free: 91.67 MB / 0.5263 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001189/4.888, allocations: 24 kB / 1.446 GB, free: 91.67 MB / 0.5263 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1178/5.005, allocations: 69.66 MB / 1.514 GB, free: 53.83 MB / 0.5263 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.738e-05/5.005, allocations: 0 / 1.514 GB, free: 53.83 MB / 0.5263 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01337/5.019, allocations: 1.55 MB / 1.516 GB, free: 53.76 MB / 0.5263 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001182/5.02, allocations: 319.7 kB / 1.516 GB, free: 53.68 MB / 0.5263 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002329/5.022, allocations: 17.61 kB / 1.516 GB, free: 53.68 MB / 0.5263 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004151/5.027, allocations: 4.062 MB / 1.52 GB, free: 50.7 MB / 0.5263 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.04e-05/5.027, allocations: 8 kB / 1.52 GB, free: 50.7 MB / 0.5263 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.377/5.404, allocations: 53.81 MB / 1.573 GB, free: 94.18 MB / 0.5263 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.09136/5.495, allocations: 74.55 MB / 1.645 GB, free: 80.42 MB / 0.5263 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009874/5.505, allocations: 3.894 MB / 1.649 GB, free: 78.94 MB / 0.5263 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004523/5.51, allocations: 2.25 kB / 1.649 GB, free: 78.94 MB / 0.5263 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0119/5.521, allocations: 0.9873 MB / 1.65 GB, free: 78.94 MB / 0.5263 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002772/5.524, allocations: 218.1 kB / 1.65 GB, free: 78.91 MB / 0.5263 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00172/5.526, allocations: 130.9 kB / 1.65 GB, free: 78.88 MB / 0.5263 GB Notification: Performance of sort global known variables: time 0.01381/5.54, allocations: 5.335 MB / 1.656 GB, free: 76.93 MB / 0.5263 GB Notification: Performance of remove unused functions: time 0.02632/5.566, allocations: 3.878 MB / 1.659 GB, free: 76.92 MB / 0.5263 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (453): * Single equations (assignments): 443 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002955/5.569, allocations: 226.8 kB / 1.66 GB, free: 76.83 MB / 0.5263 GB Notification: Performance of simCode: created initialization part: time 0.05181/5.621, allocations: 34.74 MB / 1.694 GB, free: 63.01 MB / 0.5263 GB Notification: Performance of simCode: created event and clocks part: time 1.455e-05/5.621, allocations: 6.594 kB / 1.694 GB, free: 63 MB / 0.5263 GB Notification: Performance of simCode: created simulation system equations: time 0.01887/5.64, allocations: 15.02 MB / 1.708 GB, free: 49.52 MB / 0.5263 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009869/5.65, allocations: 1.124 MB / 1.709 GB, free: 48.62 MB / 0.5263 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3996/6.05, allocations: 42.8 MB / 1.751 GB, free: 94.46 MB / 0.5263 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0444/6.094, allocations: 12.1 MB / 1.763 GB, free: 93.36 MB / 0.5263 GB Notification: Performance of SimCode: time 9.52e-07/6.094, allocations: 1.062 kB / 1.763 GB, free: 93.36 MB / 0.5263 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1)