Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_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.001086/0.001086, 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.17/1.17, allocations: 225.5 MB / 234.4 MB, free: 3.379 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009353/0.0009353, allocations: 97.14 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09417/0.09514, allocations: 56.9 MB / 343.2 MB, free: 8.621 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08262/0.1778, allocations: 51.48 MB / 394.7 MB, free: 5.094 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2349/0.4128, allocations: 104.8 MB / 499.5 MB, free: 4.586 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002113/0.413, allocations: 91.67 kB / 499.6 MB, free: 4.543 MB / 362.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.5096/0.9226, allocations: 145.6 MB / 0.63 GB, free: 71.79 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.9226, allocations: 8.75 kB / 0.63 GB, free: 71.79 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02618/0.9488, allocations: 6.985 MB / 0.6369 GB, free: 71.29 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02095/0.9698, allocations: 8.22 MB / 0.6449 GB, free: 68.57 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002928/0.9702, allocations: 208.3 kB / 0.6451 GB, free: 68.57 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002238/0.9724, allocations: 404.1 kB / 0.6455 GB, free: 68.55 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01653/0.9889, allocations: 10.08 MB / 0.6553 GB, free: 65.19 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02242/1.011, allocations: 14.62 MB / 0.6696 GB, free: 57.43 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003142/1.012, allocations: 104.2 kB / 0.6697 GB, free: 57.38 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001201/1.013, allocations: 42.94 kB / 0.6697 GB, free: 57.38 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002012/1.015, allocations: 1.705 MB / 0.6714 GB, free: 57.08 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07179/1.087, allocations: 75.91 MB / 0.7455 GB, free: 4.359 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1279/1.215, allocations: 5.335 MB / 0.7507 GB, free: 128 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00459/1.219, allocations: 4.344 MB / 0.755 GB, free: 128 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01798/1.237, allocations: 14.28 MB / 0.7689 GB, free: 123.8 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.564e-05/1.237, allocations: 61.69 kB / 0.769 GB, free: 123.7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=287): time 5.671e-06/1.237, allocations: 0 / 0.769 GB, free: 123.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=369): time 0.08804/1.326, allocations: 38.41 MB / 0.8065 GB, free: 114.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.115e-05/1.326, allocations: 265.1 kB / 0.8068 GB, free: 114.5 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005652/1.331, allocations: 4.703 MB / 0.8113 GB, free: 112.9 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000386/1.332, allocations: 35.98 kB / 0.8114 GB, free: 112.9 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001598/1.333, allocations: 4.314 MB / 0.8156 GB, free: 109.6 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001012/1.334, allocations: 1.31 MB / 0.8169 GB, free: 108.6 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004045/1.335, allocations: 0 / 0.8169 GB, free: 108.6 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003793/1.335, allocations: 0.7072 MB / 0.8176 GB, free: 108.1 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005069/1.34, allocations: 3.682 MB / 0.8212 GB, free: 106.8 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006373/1.347, allocations: 9.025 MB / 0.83 GB, free: 98.36 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007336/1.354, allocations: 6.012 MB / 0.8358 GB, free: 96.59 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-05/1.354, allocations: 59.66 kB / 0.8359 GB, free: 96.59 MB / 458.7 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.02816/1.382, allocations: 15.13 MB / 0.8507 GB, free: 92.25 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/1.382, allocations: 6.25 kB / 0.8507 GB, free: 92.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001573/1.382, allocations: 188.6 kB / 0.8509 GB, free: 92.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01292/1.395, allocations: 3.79 MB / 0.8546 GB, free: 91.63 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006761/1.402, allocations: 2.083 MB / 0.8566 GB, free: 90.38 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02922/1.431, allocations: 19.93 MB / 0.8761 GB, free: 73.26 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006858/1.438, allocations: 327.5 kB / 0.8764 GB, free: 72.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000824/1.439, allocations: 0.5502 MB / 0.8769 GB, free: 72.45 MB / 458.7 MB 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.001107/1.44, allocations: 0.5818 MB / 0.8775 GB, free: 71.86 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000752/1.441, allocations: 0.5399 MB / 0.878 GB, free: 71.32 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02076/1.462, allocations: 9.463 MB / 0.8872 GB, free: 63.96 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.002e-05/1.462, allocations: 32 kB / 0.8873 GB, free: 63.93 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.983e-05/1.462, allocations: 20 kB / 0.8873 GB, free: 63.91 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-05/1.462, allocations: 20.83 kB / 0.8873 GB, free: 63.9 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0332/1.495, allocations: 17.95 MB / 0.9048 GB, free: 49.56 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.639e-05/1.495, allocations: 0 / 0.9048 GB, free: 49.56 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002627/1.498, allocations: 478.8 kB / 0.9053 GB, free: 49.16 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01207/1.51, allocations: 3.415 MB / 0.9086 GB, free: 46.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005113/1.51, allocations: 15.19 kB / 0.9086 GB, free: 46.79 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02736/1.538, allocations: 18.37 MB / 0.9266 GB, free: 29.12 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/1.538, allocations: 7.922 kB / 0.9266 GB, free: 29.12 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1543/1.692, allocations: 14.25 MB / 0.9405 GB, free: 114.9 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02956/1.722, allocations: 19.05 MB / 0.9591 GB, free: 113.9 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001251/1.723, allocations: 0.5378 MB / 0.9596 GB, free: 113.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008807/1.724, allocations: 13.66 kB / 0.9597 GB, free: 113.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002754/1.727, allocations: 115.5 kB / 0.9598 GB, free: 113.8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004599/1.727, allocations: 165.1 kB / 0.9599 GB, free: 113.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003574/1.727, allocations: 106 kB / 0.96 GB, free: 113.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.004514/1.732, allocations: 3.176 MB / 0.9631 GB, free: 113.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007929/1.74, allocations: 1.58 MB / 0.9647 GB, free: 113.1 MB / 458.7 MB 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.0006265/1.741, allocations: 192 kB / 0.9648 GB, free: 113 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01197/1.753, allocations: 9.218 MB / 0.9738 GB, free: 110.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.062e-06/1.753, allocations: 0 / 0.9738 GB, free: 110.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004777/1.757, allocations: 3.589 MB / 0.9774 GB, free: 108.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003191/1.761, allocations: 0.5679 MB / 0.9779 GB, free: 108.5 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02471/1.785, allocations: 13.36 MB / 0.991 GB, free: 104.1 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006717/1.792, allocations: 5.384 MB / 0.9962 GB, free: 102.5 MB / 458.7 MB Notification: Performance of SimCode: time 7.21e-07/1.792, allocations: 0 / 0.9962 GB, free: 102.5 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_LineForceWithTwoMasses.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.LineForceWithTwoMasses.pipe 2>&1)