Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.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.Forces.Spring2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring2",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.001487/0.001487, allocations: 206.7 kB / 8.544 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.218/1.218, allocations: 225.5 MB / 234.4 MB, free: 3.383 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001087/0.001087, allocations: 93.58 kB / 286.3 MB, free: 5.211 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1689/0.1689, allocations: 45.13 MB / 383.3 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1884/0.3574, allocations: 69.37 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08275/0.4401, allocations: 63.25 MB / 0.5039 GB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.262/0.7022, allocations: 104.8 MB / 0.6062 GB, free: 14.2 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001818/0.7024, allocations: 71.89 kB / 0.6063 GB, free: 14.16 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: 1730 * Number of variables: 1730 Notification: Performance of Generate backend data structure: time 0.2892/0.9916, allocations: 106 MB / 0.7098 GB, free: 12.31 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.9917, allocations: 8 kB / 0.7098 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0134/1.005, allocations: 2.505 MB / 0.7123 GB, free: 9.789 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01533/1.02, allocations: 6.057 MB / 0.7182 GB, free: 3.664 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001936/1.021, allocations: 156 kB / 0.7183 GB, free: 3.512 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001236/1.022, allocations: 299.8 kB / 0.7186 GB, free: 3.219 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01122/1.033, allocations: 7.641 MB / 0.7261 GB, free: 11.57 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01515/1.048, allocations: 11.23 MB / 0.737 GB, free: 15.12 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001707/1.049, allocations: 71.34 kB / 0.7371 GB, free: 15.05 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005716/1.049, allocations: 40 kB / 0.7372 GB, free: 15.02 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001992/1.051, allocations: 1.319 MB / 0.7384 GB, free: 13.69 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1833/1.234, allocations: 58.65 MB / 0.7957 GB, free: 151.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004079/1.239, allocations: 3.712 MB / 0.7993 GB, free: 150.6 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00287/1.241, allocations: 2.797 MB / 0.8021 GB, free: 150.5 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01323/1.255, allocations: 9.931 MB / 0.8118 GB, free: 146.9 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/1.255, allocations: 56.73 kB / 0.8118 GB, free: 146.9 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=214): time 4.459e-06/1.255, allocations: 0 / 0.8118 GB, free: 146.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=243): time 0.03991/1.295, allocations: 19.53 MB / 0.8309 GB, free: 143.2 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.78e-05/1.295, allocations: 204 kB / 0.8311 GB, free: 143 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004287/1.299, allocations: 3.516 MB / 0.8345 GB, free: 141.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0003458/1.299, allocations: 29.23 kB / 0.8345 GB, free: 141.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001215/1.301, allocations: 3.326 MB / 0.8378 GB, free: 139.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007202/1.301, allocations: 0.9479 MB / 0.8387 GB, free: 138.6 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003259/1.302, allocations: 0 / 0.8387 GB, free: 138.6 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002886/1.302, allocations: 0.6265 MB / 0.8393 GB, free: 138.2 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003534/1.306, allocations: 3.053 MB / 0.8423 GB, free: 137.2 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004686/1.31, allocations: 7.405 MB / 0.8495 GB, free: 130.3 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005592/1.316, allocations: 4.867 MB / 0.8543 GB, free: 128.9 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.673e-05/1.316, allocations: 45.53 kB / 0.8543 GB, free: 128.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=997) (initialization): time 0.02343/1.339, allocations: 12.15 MB / 0.8662 GB, free: 123 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/1.339, allocations: 4 kB / 0.8662 GB, free: 123 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01366/1.353, allocations: 6.389 MB / 0.8724 GB, free: 118.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0108/1.364, allocations: 3.099 MB / 0.8755 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006053/1.37, allocations: 1.718 MB / 0.8772 GB, free: 114.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01655/1.387, allocations: 15.31 MB / 0.8921 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007149/1.394, allocations: 493.9 kB / 0.8926 GB, free: 99.81 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009947/1.395, allocations: 470.8 kB / 0.893 GB, free: 99.37 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 708 * Number of states: 0 () * Number of discrete variables: 45 (fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (920): * Single equations (assignments): 900 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 11,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001015/1.396, allocations: 0.496 MB / 0.8935 GB, free: 98.87 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000601/1.396, allocations: 379.1 kB / 0.8939 GB, free: 98.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01441/1.411, allocations: 6.805 MB / 0.9005 GB, free: 93.29 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01303/1.424, allocations: 6.195 MB / 0.9066 GB, free: 88.54 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.213e-05/1.424, allocations: 11.52 kB / 0.9066 GB, free: 88.53 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.648e-05/1.424, allocations: 15.03 kB / 0.9066 GB, free: 88.52 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0263/1.45, allocations: 14.25 MB / 0.9205 GB, free: 75.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/1.45, allocations: 0 / 0.9205 GB, free: 75.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002063/1.452, allocations: 383.5 kB / 0.9209 GB, free: 75.12 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01085/1.463, allocations: 3.115 MB / 0.9239 GB, free: 71.97 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004497/1.464, allocations: 51.78 kB / 0.924 GB, free: 71.93 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01797/1.482, allocations: 16.42 MB / 0.94 GB, free: 54.86 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001826/1.484, allocations: 4.151 MB / 0.944 GB, free: 50.34 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01727/1.501, allocations: 10.7 MB / 0.9545 GB, free: 39.49 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01979/1.521, allocations: 14.21 MB / 0.9684 GB, free: 25.13 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009711/1.522, allocations: 444.2 kB / 0.9688 GB, free: 24.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006758/1.522, allocations: 31.97 kB / 0.9688 GB, free: 24.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002634/1.525, allocations: 199.7 kB / 0.969 GB, free: 24.45 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003481/1.525, allocations: 125.7 kB / 0.9691 GB, free: 24.32 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002848/1.526, allocations: 71.95 kB / 0.9692 GB, free: 24.25 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.003135/1.529, allocations: 2.339 MB / 0.9715 GB, free: 21.91 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006631/1.535, allocations: 1.395 MB / 0.9729 GB, free: 20.52 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 36 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (179): * Single equations (assignments): 165 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 10,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005391/1.536, allocations: 201.1 kB / 0.973 GB, free: 20.33 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01349/1.549, allocations: 8.868 MB / 0.9817 GB, free: 11.32 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/1.549, allocations: 0 / 0.9817 GB, free: 11.32 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00764/1.557, allocations: 4.274 MB / 0.9859 GB, free: 6.871 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002196/1.559, allocations: 404.7 kB / 0.9863 GB, free: 6.484 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1517/1.711, allocations: 11.42 MB / 0.9974 GB, free: 173.2 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004294/1.715, allocations: 4.201 MB / 1.002 GB, free: 172.4 MB / 0.5261 GB Notification: Performance of SimCode: time 5.91e-07/1.715, allocations: 0 / 1.002 GB, free: 172.4 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_Spring2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring2.pipe 2>&1)