Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.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.FreeMotion2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion2",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.001704/0.001704, allocations: 199.7 kB / 8.538 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 225.5 MB / 234.4 MB, free: 3.461 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009189/0.000919, allocations: 89.31 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1664/0.1664, allocations: 45.14 MB / 383.3 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1899/0.3563, allocations: 69.37 MB / 452.7 MB, free: 76.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08211/0.4385, allocations: 63.25 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2696/0.7081, allocations: 110.5 MB / 0.6118 GB, free: 8.582 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/0.7084, allocations: 78.33 kB / 0.6118 GB, free: 8.543 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: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.3282/1.037, allocations: 124.2 MB / 0.7331 GB, free: 4.457 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/1.037, allocations: 8 kB / 0.7331 GB, free: 4.449 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02812/1.065, allocations: 6.609 MB / 0.7395 GB, free: 13.82 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01731/1.082, allocations: 6.744 MB / 0.7461 GB, free: 6.988 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002835/1.082, allocations: 180 kB / 0.7463 GB, free: 6.812 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002004/1.084, allocations: 339.8 kB / 0.7466 GB, free: 6.48 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1527/1.237, allocations: 8.254 MB / 0.7547 GB, free: 177.1 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01727/1.254, allocations: 12.42 MB / 0.7668 GB, free: 173.9 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002281/1.255, allocations: 82.84 kB / 0.7669 GB, free: 173.9 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006829/1.255, allocations: 34.78 kB / 0.7669 GB, free: 173.9 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001307/1.257, allocations: 1.372 MB / 0.7683 GB, free: 173.9 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05011/1.307, allocations: 59.99 MB / 0.8268 GB, free: 139.6 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005085/1.312, allocations: 5.02 MB / 0.8317 GB, free: 137.2 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003188/1.315, allocations: 3.496 MB / 0.8352 GB, free: 135.7 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01233/1.328, allocations: 9.64 MB / 0.8446 GB, free: 130.8 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/1.328, allocations: 64.95 kB / 0.8446 GB, free: 130.8 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=239): time 5.05e-06/1.328, allocations: 0 / 0.8446 GB, free: 130.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=306): time 0.05854/1.386, allocations: 28.2 MB / 0.8722 GB, free: 118.3 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.511e-05/1.386, allocations: 269 kB / 0.8724 GB, free: 118 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005298/1.392, allocations: 3.913 MB / 0.8763 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004724/1.392, allocations: 25.7 kB / 0.8763 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001389/1.393, allocations: 3.63 MB / 0.8798 GB, free: 111.4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009506/1.394, allocations: 1.105 MB / 0.8809 GB, free: 110.4 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003552/1.395, allocations: 0 / 0.8809 GB, free: 110.4 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002843/1.395, allocations: 0.6295 MB / 0.8815 GB, free: 109.9 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003627/1.399, allocations: 3.168 MB / 0.8846 GB, free: 107 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004773/1.404, allocations: 7.429 MB / 0.8919 GB, free: 98.12 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005195/1.409, allocations: 4.847 MB / 0.8966 GB, free: 94.09 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.712e-05/1.409, allocations: 48 kB / 0.8966 GB, free: 94.04 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.01757/1.426, allocations: 11.39 MB / 0.9078 GB, free: 84.21 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/1.426, allocations: 6.344 kB / 0.9078 GB, free: 84.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001168/1.427, allocations: 152 kB / 0.9079 GB, free: 84.06 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005074/1.432, allocations: 2.084 MB / 0.91 GB, free: 82.43 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005787/1.437, allocations: 1.726 MB / 0.9116 GB, free: 80.93 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01774/1.455, allocations: 13.21 MB / 0.9245 GB, free: 69.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006075/1.461, allocations: 245.6 kB / 0.9248 GB, free: 68.96 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001197/1.463, allocations: 454.7 kB / 0.9252 GB, free: 68.53 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 687 * Number of states: 0 () * Number of discrete variables: 44 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (928): * Single equations (assignments): 923 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,46.9%) 20,(7,46.9%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001261/1.464, allocations: 494.2 kB / 0.9257 GB, free: 68.04 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008974/1.465, allocations: 450 kB / 0.9261 GB, free: 67.59 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01106/1.476, allocations: 6.67 MB / 0.9326 GB, free: 62.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.736e-05/1.476, allocations: 28 kB / 0.9326 GB, free: 62.07 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.822e-05/1.476, allocations: 12 kB / 0.9327 GB, free: 62.06 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.401e-05/1.476, allocations: 15.19 kB / 0.9327 GB, free: 62.06 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02408/1.5, allocations: 14.16 MB / 0.9465 GB, free: 49.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.001e-05/1.5, allocations: 8 kB / 0.9465 GB, free: 49.86 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002532/1.503, allocations: 459.3 kB / 0.947 GB, free: 49.41 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004759/1.507, allocations: 1.77 MB / 0.9487 GB, free: 47.63 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004023/1.508, allocations: 16 kB / 0.9487 GB, free: 47.61 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01464/1.522, allocations: 11.44 MB / 0.9599 GB, free: 35.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.976e-06/1.523, allocations: 7.938 kB / 0.9599 GB, free: 35.95 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01493/1.537, allocations: 11.64 MB / 0.9712 GB, free: 23.91 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01785/1.555, allocations: 15.76 MB / 0.9866 GB, free: 7.754 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/1.557, allocations: 483.1 kB / 0.9871 GB, free: 7.258 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008925/1.557, allocations: 15.98 kB / 0.9871 GB, free: 7.242 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002358/1.56, allocations: 115.8 kB / 0.9872 GB, free: 7.129 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003689/1.56, allocations: 157.1 kB / 0.9874 GB, free: 6.977 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002801/1.56, allocations: 87.98 kB / 0.9875 GB, free: 6.891 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.003789/1.564, allocations: 2.657 MB / 0.99 GB, free: 4.238 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007078/1.571, allocations: 1.251 MB / 0.9913 GB, free: 2.992 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (244): * Single equations (assignments): 239 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,55.6%) 18,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000541/1.572, allocations: 164.8 kB / 0.9914 GB, free: 2.832 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.1522/1.724, allocations: 8.234 MB / 0.9995 GB, free: 167.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/1.724, allocations: 3.844 kB / 0.9995 GB, free: 167.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006105/1.73, allocations: 3.437 MB / 1.003 GB, free: 167.2 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002921/1.733, allocations: 0.5032 MB / 1.003 GB, free: 167.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02126/1.755, allocations: 11.97 MB / 1.015 GB, free: 165 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006321/1.761, allocations: 4.788 MB / 1.02 GB, free: 164.1 MB / 0.5261 GB Notification: Performance of SimCode: time 8.82e-07/1.761, allocations: 1.188 kB / 1.02 GB, free: 164.1 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1)