Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001426/0.001426, allocations: 190.8 kB / 7.807 MB, free: 2.492 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.407/1.407, allocations: 205.2 MB / 213.4 MB, free: 13.87 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.0008977/0.0008974, allocations: 86.55 kB / 261.4 MB, free: 13.56 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.2123/0.2123, allocations: 43.49 MB / 352.8 MB, free: 1.984 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.234/0.4464, allocations: 64.97 MB / 417.8 MB, free: 40.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3543/0.8007, allocations: 58.84 MB / 476.7 MB, free: 5.203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1496/0.9504, allocations: 103.8 MB / 0.5668 GB, free: 11.16 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002451/0.9507, allocations: 75.03 kB / 0.5669 GB, free: 11.09 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.4986/1.449, allocations: 80.2 MB / 0.6452 GB, free: 107.1 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/1.449, allocations: 14.03 kB / 0.6452 GB, free: 107.1 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01678/1.466, allocations: 3.975 MB / 0.6491 GB, free: 106.9 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01224/1.478, allocations: 4.428 MB / 0.6534 GB, free: 106.3 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000182/1.479, allocations: 118 kB / 0.6535 GB, free: 106.3 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001353/1.48, allocations: 214.6 kB / 0.6537 GB, free: 106.3 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008431/1.489, allocations: 5.371 MB / 0.659 GB, free: 106.3 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01178/1.5, allocations: 8.492 MB / 0.6673 GB, free: 103.7 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001451/1.501, allocations: 62.27 kB / 0.6673 GB, free: 103.7 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004434/1.501, allocations: 30.34 kB / 0.6674 GB, free: 103.7 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001008/1.502, allocations: 0.9647 MB / 0.6683 GB, free: 103.7 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03529/1.537, allocations: 41.56 MB / 0.7089 GB, free: 72.89 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002553/1.54, allocations: 2.556 MB / 0.7114 GB, free: 71.29 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002055/1.542, allocations: 1.189 MB / 0.7125 GB, free: 70.79 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00814/1.55, allocations: 4.447 MB / 0.7169 GB, free: 68.08 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.851e-05/1.55, allocations: 48.34 kB / 0.7169 GB, free: 68.03 MB / 474.7 MB Notification: Performance of pre-optimization done (n=106): time 3.757e-06/1.55, allocations: 0 / 0.7169 GB, free: 68.03 MB / 474.7 MB Notification: Performance of matching and sorting (n=121): time 0.02109/1.571, allocations: 8.841 MB / 0.7256 GB, free: 63.77 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.23e-05/1.571, allocations: 195.5 kB / 0.7258 GB, free: 63.54 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005582/1.577, allocations: 3.086 MB / 0.7288 GB, free: 62.35 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002316/1.577, allocations: 27.17 kB / 0.7288 GB, free: 62.32 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002035/1.579, allocations: 2.906 MB / 0.7316 GB, free: 60.05 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007214/1.58, allocations: 0.4955 MB / 0.7321 GB, free: 59.7 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001852/1.58, allocations: 0 / 0.7321 GB, free: 59.7 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003467/1.581, allocations: 0.5584 MB / 0.7327 GB, free: 59.29 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002671/1.583, allocations: 1.567 MB / 0.7342 GB, free: 58.77 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004238/1.588, allocations: 5.539 MB / 0.7396 GB, free: 52.63 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003994/1.592, allocations: 2.963 MB / 0.7425 GB, free: 51.14 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.854e-05/1.592, allocations: 44 kB / 0.7425 GB, free: 51.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=780) (initialization): time 0.009212/1.601, allocations: 6.229 MB / 0.7486 GB, free: 45.61 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/1.601, allocations: 8.031 kB / 0.7486 GB, free: 45.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000101/1.601, allocations: 144 kB / 0.7488 GB, free: 45.46 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006486/1.602, allocations: 373.3 kB / 0.7491 GB, free: 45.13 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003572/1.605, allocations: 1.378 MB / 0.7505 GB, free: 43.91 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002367/1.608, allocations: 2.593 MB / 0.753 GB, free: 41.42 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004531/1.612, allocations: 182.7 kB / 0.7532 GB, free: 41.25 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005585/1.613, allocations: 385.7 kB / 0.7535 GB, free: 40.88 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 655 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],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 (745): * Single equations (assignments): 741 * 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.0006081/1.613, allocations: 460.8 kB / 0.754 GB, free: 40.43 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004653/1.614, allocations: 307.8 kB / 0.7543 GB, free: 40.13 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002321/1.616, allocations: 1.419 MB / 0.7557 GB, free: 38.94 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-05/1.616, allocations: 11.61 kB / 0.7557 GB, free: 38.93 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/1.616, allocations: 8 kB / 0.7557 GB, free: 38.92 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/1.616, allocations: 3.328 kB / 0.7557 GB, free: 38.92 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007037/1.623, allocations: 4.096 MB / 0.7597 GB, free: 35.58 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/1.623, allocations: 0 / 0.7597 GB, free: 35.58 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009566/1.624, allocations: 171.8 kB / 0.7598 GB, free: 35.44 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004723/1.625, allocations: 155.1 kB / 0.76 GB, free: 35.32 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.512e-05/1.625, allocations: 9.688 kB / 0.76 GB, free: 35.31 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001983/1.627, allocations: 2.032 MB / 0.762 GB, free: 33.32 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/1.627, allocations: 0 / 0.762 GB, free: 33.32 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0038/1.631, allocations: 3.246 MB / 0.7652 GB, free: 30.36 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004818/1.635, allocations: 4.681 MB / 0.7697 GB, free: 26.06 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001209/1.637, allocations: 480.1 kB / 0.7702 GB, free: 25.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003821/1.637, allocations: 4.516 kB / 0.7702 GB, free: 25.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001022/1.638, allocations: 25.75 kB / 0.7702 GB, free: 25.58 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000167/1.638, allocations: 52.84 kB / 0.7703 GB, free: 25.55 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.063e-05/1.638, allocations: 40.53 kB / 0.7703 GB, free: 25.52 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.003422/1.642, allocations: 2.054 MB / 0.7723 GB, free: 23.73 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005847/1.648, allocations: 0.7281 MB / 0.773 GB, free: 23.01 MB / 474.7 MB 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 (92): * Single equations (assignments): 88 * 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.0004305/1.648, allocations: 131.7 kB / 0.7731 GB, free: 22.88 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006261/1.654, allocations: 3.755 MB / 0.7768 GB, free: 19.46 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.069e-05/1.654, allocations: 0 / 0.7768 GB, free: 19.46 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001253/1.656, allocations: 0.8868 MB / 0.7777 GB, free: 18.64 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0021/1.658, allocations: 286.2 kB / 0.7779 GB, free: 18.38 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0125/1.67, allocations: 6.205 MB / 0.784 GB, free: 12.79 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003712/1.674, allocations: 3.288 MB / 0.7872 GB, free: 9.656 MB / 474.7 MB Notification: Performance of SimCode: time 9.41e-07/1.674, allocations: 0 / 0.7872 GB, free: 9.656 MB / 474.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1)