Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001003/0.001003, allocations: 191.8 kB / 7.806 MB, free: 2.488 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.376/1.376, 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.0009451/0.0009451, allocations: 97.39 kB / 261.4 MB, free: 13.54 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.1883/0.1883, allocations: 43.49 MB / 352.8 MB, free: 1.957 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2147/0.4031, allocations: 64.96 MB / 417.8 MB, free: 40.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3345/0.7376, allocations: 58.84 MB / 476.6 MB, free: 5.172 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1527/0.8904, allocations: 104.3 MB / 0.5674 GB, free: 10.53 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002935/0.8908, allocations: 79.95 kB / 0.5674 GB, free: 10.45 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: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.491/1.382, allocations: 74.17 MB / 0.6399 GB, free: 89.53 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/1.382, allocations: 7.562 kB / 0.6399 GB, free: 89.53 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01641/1.398, allocations: 3.9 MB / 0.6437 GB, free: 89.3 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01169/1.41, allocations: 4.266 MB / 0.6479 GB, free: 89 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002298/1.41, allocations: 105.3 kB / 0.648 GB, free: 89 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001227/1.411, allocations: 196.1 kB / 0.6481 GB, free: 89 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007254/1.419, allocations: 4.812 MB / 0.6528 GB, free: 88.98 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008816/1.428, allocations: 7.719 MB / 0.6604 GB, free: 86.46 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001118/1.428, allocations: 61.28 kB / 0.6604 GB, free: 86.46 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003523/1.428, allocations: 31.16 kB / 0.6605 GB, free: 86.46 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008615/1.429, allocations: 0.8733 MB / 0.6613 GB, free: 86.45 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03266/1.462, allocations: 38.87 MB / 0.6993 GB, free: 60.9 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002276/1.464, allocations: 2.167 MB / 0.7014 GB, free: 60.23 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001124/1.465, allocations: 1.203 MB / 0.7026 GB, free: 60.2 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005674/1.471, allocations: 4.198 MB / 0.7067 GB, free: 58.56 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.248e-05/1.471, allocations: 54.06 kB / 0.7067 GB, free: 58.51 MB / 474.7 MB Notification: Performance of pre-optimization done (n=114): time 3.626e-06/1.471, allocations: 0 / 0.7067 GB, free: 58.51 MB / 474.7 MB Notification: Performance of matching and sorting (n=139): time 0.02462/1.495, allocations: 10.47 MB / 0.717 GB, free: 55.98 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/1.496, allocations: 201.5 kB / 0.7171 GB, free: 55.75 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004403/1.5, allocations: 2.855 MB / 0.7199 GB, free: 55.36 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001232/1.5, allocations: 25.7 kB / 0.72 GB, free: 55.33 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001215/1.501, allocations: 2.579 MB / 0.7225 GB, free: 53.62 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004586/1.502, allocations: 0.5475 MB / 0.723 GB, free: 53.32 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001651/1.502, allocations: 0 / 0.723 GB, free: 53.32 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003003/1.502, allocations: 0.5347 MB / 0.7235 GB, free: 53.01 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002354/1.505, allocations: 1.585 MB / 0.7251 GB, free: 52.41 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003374/1.508, allocations: 5.136 MB / 0.7301 GB, free: 46.43 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002997/1.511, allocations: 2.863 MB / 0.7329 GB, free: 44.74 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.861e-05/1.511, allocations: 40 kB / 0.7329 GB, free: 44.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=727) (initialization): time 0.008339/1.52, allocations: 5.997 MB / 0.7388 GB, free: 39.79 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/1.52, allocations: 12.25 kB / 0.7388 GB, free: 39.78 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001013/1.52, allocations: 128 kB / 0.7389 GB, free: 39.66 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006806/1.52, allocations: 347.3 kB / 0.7393 GB, free: 39.35 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003461/1.524, allocations: 1.281 MB / 0.7405 GB, free: 38.22 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002468/1.526, allocations: 2.57 MB / 0.743 GB, free: 35.75 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004228/1.531, allocations: 174.3 kB / 0.7432 GB, free: 35.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004934/1.531, allocations: 347.9 kB / 0.7435 GB, free: 35.26 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 584 * Number of states: 0 () * Number of discrete variables: 27 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],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 (692): * Single equations (assignments): 688 * 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.0006425/1.532, allocations: 417.8 kB / 0.7439 GB, free: 34.85 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004306/1.532, allocations: 284.2 kB / 0.7442 GB, free: 34.57 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002561/1.535, allocations: 1.674 MB / 0.7458 GB, free: 33.16 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.958e-05/1.535, allocations: 12 kB / 0.7458 GB, free: 33.15 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.364e-05/1.535, allocations: 8 kB / 0.7458 GB, free: 33.14 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/1.535, allocations: 4.266 kB / 0.7458 GB, free: 33.14 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007369/1.542, allocations: 4.516 MB / 0.7503 GB, free: 29.41 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.904e-06/1.542, allocations: 4 kB / 0.7503 GB, free: 29.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001144/1.543, allocations: 209.8 kB / 0.7505 GB, free: 29.23 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004582/1.544, allocations: 153.8 kB / 0.7506 GB, free: 29.11 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.559e-05/1.544, allocations: 7.797 kB / 0.7506 GB, free: 29.11 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001804/1.546, allocations: 2.033 MB / 0.7526 GB, free: 27.13 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/1.546, allocations: 0 / 0.7526 GB, free: 27.13 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004277/1.55, allocations: 3.728 MB / 0.7562 GB, free: 23.69 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005648/1.556, allocations: 5.365 MB / 0.7615 GB, free: 18.75 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001346/1.557, allocations: 499.9 kB / 0.762 GB, free: 18.28 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003717/1.557, allocations: 5.688 kB / 0.762 GB, free: 18.27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/1.559, allocations: 31.02 kB / 0.762 GB, free: 18.25 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001515/1.559, allocations: 60.94 kB / 0.762 GB, free: 18.22 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/1.559, allocations: 39.05 kB / 0.7621 GB, free: 18.18 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.002863/1.562, allocations: 1.91 MB / 0.7639 GB, free: 16.52 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005967/1.568, allocations: 0.6782 MB / 0.7646 GB, free: 15.85 MB / 474.7 MB 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 (110): * Single equations (assignments): 106 * 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.0005513/1.568, allocations: 150.6 kB / 0.7648 GB, free: 15.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005842/1.574, allocations: 3.786 MB / 0.7685 GB, free: 12.22 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/1.574, allocations: 3.938 kB / 0.7685 GB, free: 12.21 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001169/1.575, allocations: 1.036 MB / 0.7695 GB, free: 11.17 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001703/1.577, allocations: 278 kB / 0.7697 GB, free: 10.91 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01127/1.588, allocations: 5.956 MB / 0.7755 GB, free: 4.875 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003721/1.592, allocations: 3.076 MB / 0.7786 GB, free: 1.785 MB / 474.7 MB Notification: Performance of SimCode: time 1.202e-06/1.592, allocations: 4 kB / 0.7786 GB, free: 1.781 MB / 474.7 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1)