Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.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.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",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.001952/0.001952, allocations: 195.1 kB / 8.537 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 225.5 MB / 234.4 MB, free: 3.328 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001027/0.001027, allocations: 90.09 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.1741/0.1741, allocations: 45.14 MB / 383.3 MB, free: 0.543 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.192/0.3661, allocations: 69.37 MB / 452.7 MB, free: 76.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08123/0.4474, allocations: 63.24 MB / 0.5039 GB, free: 12.94 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2766/0.724, allocations: 114.8 MB / 0.616 GB, free: 4.594 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001925/0.7242, allocations: 69.12 kB / 0.6161 GB, free: 4.562 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: 2303 * Number of variables: 2303 Notification: Performance of Generate backend data structure: time 0.5505/1.275, allocations: 145.6 MB / 0.7583 GB, free: 170.6 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/1.275, allocations: 11.69 kB / 0.7583 GB, free: 170.6 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02814/1.303, allocations: 6.987 MB / 0.7651 GB, free: 170.2 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01971/1.323, allocations: 8.323 MB / 0.7732 GB, free: 169.7 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002573/1.323, allocations: 214.6 kB / 0.7734 GB, free: 169.7 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002025/1.325, allocations: 399.2 kB / 0.7738 GB, free: 169.7 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01437/1.339, allocations: 10.08 MB / 0.7837 GB, free: 169.6 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01995/1.359, allocations: 14.63 MB / 0.7979 GB, free: 165.8 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000254/1.36, allocations: 104.4 kB / 0.798 GB, free: 165.8 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008342/1.361, allocations: 44.75 kB / 0.7981 GB, free: 165.8 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00193/1.362, allocations: 1.705 MB / 0.7997 GB, free: 165.7 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07322/1.436, allocations: 75.89 MB / 0.8739 GB, free: 114.7 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00597/1.442, allocations: 5.343 MB / 0.8791 GB, free: 109.6 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004581/1.446, allocations: 4.347 MB / 0.8833 GB, free: 105.6 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01993/1.466, allocations: 14.28 MB / 0.8973 GB, free: 92.82 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.362e-05/1.466, allocations: 65.06 kB / 0.8973 GB, free: 92.75 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=287): time 6.623e-06/1.466, allocations: 4 kB / 0.8973 GB, free: 92.75 MB / 0.5261 GB Notification: Performance of matching and sorting (n=369): time 0.09259/1.559, allocations: 38.4 MB / 0.9348 GB, free: 60.79 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.048e-05/1.559, allocations: 272.9 kB / 0.9351 GB, free: 60.47 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005864/1.565, allocations: 4.708 MB / 0.9397 GB, free: 56.36 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004399/1.565, allocations: 25.7 kB / 0.9397 GB, free: 56.33 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001752/1.567, allocations: 4.309 MB / 0.9439 GB, free: 52.46 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001086/1.568, allocations: 1.314 MB / 0.9452 GB, free: 51.27 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004155/1.569, allocations: 0 / 0.9452 GB, free: 51.27 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000419/1.569, allocations: 0.7038 MB / 0.9459 GB, free: 50.67 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004496/1.574, allocations: 3.686 MB / 0.9495 GB, free: 47.03 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006121/1.58, allocations: 9.024 MB / 0.9583 GB, free: 35.35 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007609/1.587, allocations: 6.019 MB / 0.9642 GB, free: 29.31 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.266e-05/1.587, allocations: 52 kB / 0.9642 GB, free: 29.26 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.02938/1.617, allocations: 15.13 MB / 0.979 GB, free: 14.11 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/1.617, allocations: 8 kB / 0.979 GB, free: 14.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001415/1.617, allocations: 188 kB / 0.9792 GB, free: 13.92 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01326/1.63, allocations: 3.788 MB / 0.9829 GB, free: 10.13 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00747/1.638, allocations: 2.086 MB / 0.9849 GB, free: 8.039 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1763/1.814, allocations: 19.93 MB / 1.004 GB, free: 148 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007338/1.822, allocations: 337.6 kB / 1.005 GB, free: 148 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001054/1.823, allocations: 0.5493 MB / 1.005 GB, free: 148 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 864 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (1120): * Single equations (assignments): 1115 * 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 {(2,100.0%) 44,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001158/1.824, allocations: 0.575 MB / 1.006 GB, free: 147.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007935/1.825, allocations: 0.5366 MB / 1.006 GB, free: 147.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02107/1.846, allocations: 9.468 MB / 1.016 GB, free: 147.6 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.151e-05/1.846, allocations: 34.34 kB / 1.016 GB, free: 147.6 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.064e-05/1.846, allocations: 17.41 kB / 1.016 GB, free: 147.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.027e-05/1.846, allocations: 20.44 kB / 1.016 GB, free: 147.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03838/1.884, allocations: 17.95 MB / 1.033 GB, free: 146.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.262e-05/1.884, allocations: 0 / 1.033 GB, free: 146.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002891/1.887, allocations: 481.4 kB / 1.034 GB, free: 146.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01279/1.9, allocations: 3.417 MB / 1.037 GB, free: 146.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005226/1.901, allocations: 10.5 kB / 1.037 GB, free: 146.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02807/1.929, allocations: 18.39 MB / 1.055 GB, free: 141.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/1.929, allocations: 3.844 kB / 1.055 GB, free: 141.6 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02553/1.954, allocations: 14.25 MB / 1.069 GB, free: 136.9 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03089/1.985, allocations: 19.06 MB / 1.087 GB, free: 129.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001212/1.986, allocations: 0.5351 MB / 1.088 GB, free: 128.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009795/1.987, allocations: 4 kB / 1.088 GB, free: 128.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002858/1.99, allocations: 116.5 kB / 1.088 GB, free: 128.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004769/1.991, allocations: 173.2 kB / 1.088 GB, free: 128.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003633/1.991, allocations: 98.86 kB / 1.088 GB, free: 128.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.004475/1.996, allocations: 3.181 MB / 1.091 GB, free: 125.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00858/2.004, allocations: 1.577 MB / 1.093 GB, free: 124 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (265): * Single equations (assignments): 260 * 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 {(1,100.0%) 40,(2,100.0%) 43} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007698/2.005, allocations: 192.2 kB / 1.093 GB, free: 123.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01236/2.017, allocations: 9.202 MB / 1.102 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/2.017, allocations: 0 / 1.102 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004744/2.022, allocations: 3.595 MB / 1.106 GB, free: 112.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003074/2.025, allocations: 0.5626 MB / 1.106 GB, free: 112.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02453/2.05, allocations: 13.37 MB / 1.119 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006785/2.057, allocations: 5.39 MB / 1.125 GB, free: 96.43 MB / 0.5261 GB Notification: Performance of SimCode: time 2.114e-06/2.057, allocations: 0 / 1.125 GB, free: 96.43 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses.pipe 2>&1)