Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.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.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",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.00161/0.00161, allocations: 203 kB / 8.542 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.25/1.25, allocations: 225.5 MB / 234.4 MB, free: 3.293 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009337/0.0009337, allocations: 88.44 kB / 286.3 MB, free: 5.285 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1763/0.1763, allocations: 45.14 MB / 383.3 MB, free: 0.5156 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1917/0.3681, allocations: 69.37 MB / 452.7 MB, free: 76.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08117/0.4492, allocations: 63.24 MB / 0.5039 GB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2636/0.7129, allocations: 105.5 MB / 0.6069 GB, free: 13.77 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001978/0.7132, allocations: 82.31 kB / 0.607 GB, free: 13.72 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: 1651 * Number of variables: 1651 Notification: Performance of Generate backend data structure: time 0.2391/0.9523, allocations: 92.76 MB / 0.6976 GB, free: 8.93 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.9523, allocations: 8 kB / 0.6976 GB, free: 8.922 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01411/0.9664, allocations: 2.825 MB / 0.7003 GB, free: 6.086 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01047/0.9769, allocations: 3.972 MB / 0.7042 GB, free: 2.062 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001518/0.9771, allocations: 136 kB / 0.7043 GB, free: 1.93 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001274/0.9784, allocations: 247.9 kB / 0.7046 GB, free: 1.688 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01212/0.9905, allocations: 7.745 MB / 0.7121 GB, free: 9.93 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0158/1.006, allocations: 10.1 MB / 0.722 GB, free: 15.35 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001176/1.007, allocations: 31.72 kB / 0.722 GB, free: 15.32 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007128/1.007, allocations: 15.94 kB / 0.7221 GB, free: 15.3 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001409/1.009, allocations: 1.262 MB / 0.7233 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1835/1.192, allocations: 34.44 MB / 0.7569 GB, free: 185.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003308/1.195, allocations: 2.627 MB / 0.7595 GB, free: 185.8 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002378/1.198, allocations: 2.17 MB / 0.7616 GB, free: 185.8 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01255/1.21, allocations: 9.341 MB / 0.7707 GB, free: 182.7 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/1.211, allocations: 53.47 kB / 0.7708 GB, free: 182.7 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=204): time 5.11e-06/1.211, allocations: 0 / 0.7708 GB, free: 182.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=231): time 0.02117/1.232, allocations: 10.14 MB / 0.7807 GB, free: 182 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.808e-05/1.232, allocations: 72.69 kB / 0.7807 GB, free: 182 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003219/1.235, allocations: 2.601 MB / 0.7833 GB, free: 181.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002641/1.235, allocations: 29.67 kB / 0.7833 GB, free: 181.6 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001075/1.236, allocations: 2.922 MB / 0.7862 GB, free: 179.9 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006868/1.237, allocations: 0.8549 MB / 0.787 GB, free: 179.4 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002494/1.237, allocations: 0 / 0.787 GB, free: 179.4 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002453/1.238, allocations: 0.5671 MB / 0.7876 GB, free: 179.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002708/1.24, allocations: 2.345 MB / 0.7898 GB, free: 179 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003654/1.244, allocations: 5.649 MB / 0.7954 GB, free: 174.8 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004073/1.248, allocations: 3.712 MB / 0.799 GB, free: 174.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.513e-05/1.248, allocations: 32.72 kB / 0.799 GB, free: 174.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=803) (initialization): time 0.01302/1.261, allocations: 8.062 MB / 0.8069 GB, free: 172.6 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/1.261, allocations: 6.188 kB / 0.8069 GB, free: 172.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-05/1.261, allocations: 119.1 kB / 0.807 GB, free: 172.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00371/1.265, allocations: 0.9288 MB / 0.8079 GB, free: 172.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004521/1.27, allocations: 1.364 MB / 0.8093 GB, free: 172.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002157/1.272, allocations: 2.345 MB / 0.8115 GB, free: 170.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004001/1.276, allocations: 174.7 kB / 0.8117 GB, free: 170.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00073/1.277, allocations: 363.6 kB / 0.8121 GB, free: 170.8 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 532 * Number of states: 0 () * Number of discrete variables: 26 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotionScalarInit.arrow.arrow.arrowLine.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (750): * Single equations (assignments): 741 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007405/1.277, allocations: 408.9 kB / 0.8124 GB, free: 170.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003991/1.278, allocations: 280.4 kB / 0.8127 GB, free: 170.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008478/1.286, allocations: 4.578 MB / 0.8172 GB, free: 168.9 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-05/1.286, allocations: 40.7 kB / 0.8172 GB, free: 168.9 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/1.286, allocations: 5.219 kB / 0.8172 GB, free: 168.9 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.189e-05/1.286, allocations: 11.14 kB / 0.8172 GB, free: 168.9 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01611/1.302, allocations: 8.904 MB / 0.8259 GB, free: 163 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-05/1.302, allocations: 0 / 0.8259 GB, free: 163 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001895/1.304, allocations: 341.1 kB / 0.8263 GB, free: 162.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003408/1.308, allocations: 0.7683 MB / 0.827 GB, free: 162.3 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003464/1.308, allocations: 31.39 kB / 0.827 GB, free: 162.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001955/1.31, allocations: 2.128 MB / 0.8291 GB, free: 160.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/1.31, allocations: 2.188 kB / 0.8291 GB, free: 160.2 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00967/1.32, allocations: 6.93 MB / 0.8359 GB, free: 154.1 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01214/1.332, allocations: 9.831 MB / 0.8455 GB, free: 145.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007161/1.333, allocations: 332.2 kB / 0.8458 GB, free: 145 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005582/1.333, allocations: 8 kB / 0.8458 GB, free: 145 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001292/1.335, allocations: 61.06 kB / 0.8459 GB, free: 145 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002512/1.335, allocations: 109 kB / 0.846 GB, free: 144.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002155/1.335, allocations: 65.77 kB / 0.846 GB, free: 144.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002064/1.337, allocations: 1.707 MB / 0.8477 GB, free: 143.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004475/1.342, allocations: 0.8796 MB / 0.8486 GB, free: 142.5 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.angle_d_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 174 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004135/1.342, allocations: 167.1 kB / 0.8487 GB, free: 142.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.008488/1.351, allocations: 5.934 MB / 0.8545 GB, free: 137 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/1.351, allocations: 3.125 kB / 0.8545 GB, free: 137 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003748/1.354, allocations: 2.402 MB / 0.8569 GB, free: 134.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001626/1.356, allocations: 283.1 kB / 0.8571 GB, free: 134.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01414/1.37, allocations: 8.789 MB / 0.8657 GB, free: 126.8 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004391/1.375, allocations: 3.829 MB / 0.8695 GB, free: 123.8 MB / 0.5261 GB Notification: Performance of SimCode: time 1.123e-06/1.375, allocations: 0 / 0.8695 GB, free: 123.8 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe 2>&1)