Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.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.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",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.001521/0.001521, allocations: 203.1 kB / 8.542 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.213/1.213, 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.0009105/0.0009104, allocations: 88.53 kB / 286.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1731/0.1731, allocations: 45.15 MB / 383.3 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1848/0.3579, allocations: 69.37 MB / 452.7 MB, free: 76.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07733/0.4352, allocations: 63.24 MB / 0.5039 GB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2593/0.6946, allocations: 105.5 MB / 0.6069 GB, free: 13.73 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001877/0.6948, allocations: 73.91 kB / 0.607 GB, free: 13.7 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: 1672 * Number of variables: 1672 Notification: Performance of Generate backend data structure: time 0.2403/0.9352, allocations: 93.15 MB / 0.6979 GB, free: 8.504 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.9352, allocations: 8 kB / 0.698 GB, free: 8.496 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0142/0.9494, allocations: 2.849 MB / 0.7007 GB, free: 5.637 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01059/0.9601, allocations: 3.999 MB / 0.7046 GB, free: 1.586 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001522/0.9602, allocations: 140 kB / 0.7048 GB, free: 1.449 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001216/0.9615, allocations: 252 kB / 0.705 GB, free: 1.203 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01263/0.9741, allocations: 7.89 MB / 0.7127 GB, free: 9.305 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01833/0.9925, allocations: 10.29 MB / 0.7228 GB, free: 14.55 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001168/0.9926, allocations: 27.75 kB / 0.7228 GB, free: 14.52 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007381/0.9934, allocations: 12 kB / 0.7228 GB, free: 14.51 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0015/0.9949, allocations: 1.286 MB / 0.7241 GB, free: 13.22 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1773/1.172, allocations: 35.12 MB / 0.7584 GB, free: 185.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003061/1.175, allocations: 2.709 MB / 0.761 GB, free: 185.2 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002186/1.177, allocations: 2.258 MB / 0.7632 GB, free: 185.2 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01196/1.189, allocations: 9.59 MB / 0.7726 GB, free: 182.2 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.362e-05/1.19, allocations: 56.91 kB / 0.7726 GB, free: 182.2 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=204): time 4.649e-06/1.19, allocations: 0 / 0.7726 GB, free: 182.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=225): time 0.02428/1.214, allocations: 11.12 MB / 0.7835 GB, free: 181.4 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.528e-05/1.214, allocations: 70.97 kB / 0.7836 GB, free: 181.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00305/1.217, allocations: 2.607 MB / 0.7861 GB, free: 181 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000201/1.217, allocations: 25.7 kB / 0.7861 GB, free: 181 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001052/1.218, allocations: 2.948 MB / 0.789 GB, free: 179.2 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005692/1.219, allocations: 0.8337 MB / 0.7898 GB, free: 178.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002347/1.219, allocations: 0 / 0.7898 GB, free: 178.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002376/1.219, allocations: 0.5658 MB / 0.7904 GB, free: 178.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002572/1.222, allocations: 2.306 MB / 0.7926 GB, free: 178.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003535/1.225, allocations: 5.608 MB / 0.7981 GB, free: 174.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004149/1.23, allocations: 3.665 MB / 0.8017 GB, free: 173.7 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.61e-05/1.23, allocations: 35.03 kB / 0.8017 GB, free: 173.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=797) (initialization): time 0.0123/1.242, allocations: 7.931 MB / 0.8095 GB, free: 171.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/1.242, allocations: 3.938 kB / 0.8095 GB, free: 171.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.553e-05/1.242, allocations: 120.1 kB / 0.8096 GB, free: 171.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003468/1.246, allocations: 0.8982 MB / 0.8104 GB, free: 171.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004491/1.25, allocations: 1.355 MB / 0.8118 GB, free: 171.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002152/1.252, allocations: 2.353 MB / 0.8141 GB, free: 170 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003776/1.256, allocations: 177.8 kB / 0.8142 GB, free: 170 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000533/1.257, allocations: 357.3 kB / 0.8146 GB, free: 170 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 (744): * Single equations (assignments): 735 * 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 {(3,100.0%),(2,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.0006562/1.257, allocations: 404 kB / 0.815 GB, free: 169.6 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003846/1.258, allocations: 275.7 kB / 0.8152 GB, free: 169.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008223/1.266, allocations: 4.453 MB / 0.8196 GB, free: 168.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.62e-05/1.266, allocations: 40.36 kB / 0.8196 GB, free: 168.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/1.266, allocations: 4.969 kB / 0.8196 GB, free: 168.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.655e-05/1.266, allocations: 8.688 kB / 0.8196 GB, free: 168.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01479/1.281, allocations: 8.644 MB / 0.8281 GB, free: 161.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/1.281, allocations: 0 / 0.8281 GB, free: 161.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001649/1.283, allocations: 325.3 kB / 0.8284 GB, free: 161.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002799/1.285, allocations: 0.5403 MB / 0.8289 GB, free: 161.3 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002675/1.286, allocations: 23.69 kB / 0.8289 GB, free: 161.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001746/1.287, allocations: 1.943 MB / 0.8308 GB, free: 159.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/1.287, allocations: 3.938 kB / 0.8308 GB, free: 159.4 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008545/1.296, allocations: 6.637 MB / 0.8373 GB, free: 153.4 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0109/1.307, allocations: 9.415 MB / 0.8465 GB, free: 144.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007345/1.308, allocations: 328.4 kB / 0.8468 GB, free: 144.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005168/1.308, allocations: 7.938 kB / 0.8468 GB, free: 144.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001246/1.309, allocations: 59 kB / 0.8469 GB, free: 144.4 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002838/1.31, allocations: 109.5 kB / 0.847 GB, free: 144.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001892/1.31, allocations: 66.41 kB / 0.8471 GB, free: 144.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002064/1.312, allocations: 1.705 MB / 0.8487 GB, free: 142.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004614/1.317, allocations: 0.8724 MB / 0.8496 GB, free: 142 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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.w_rel_b_1,freeMotionScalarInit.w_rel_b_2,freeMotionScalarInit.w_rel_b_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (177): * Single equations (assignments): 168 * 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.0004092/1.317, allocations: 152.3 kB / 0.8497 GB, free: 141.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007686/1.325, allocations: 5.78 MB / 0.8554 GB, free: 136.6 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/1.325, allocations: 4 kB / 0.8554 GB, free: 136.6 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003206/1.328, allocations: 2.226 MB / 0.8575 GB, free: 134.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001543/1.33, allocations: 285.1 kB / 0.8578 GB, free: 134.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01366/1.343, allocations: 8.749 MB / 0.8664 GB, free: 126.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004572/1.348, allocations: 3.841 MB / 0.8701 GB, free: 123.6 MB / 0.5261 GB Notification: Performance of SimCode: time 8.31e-07/1.348, allocations: 7 kB / 0.8701 GB, free: 123.6 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1)