Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.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.DifferentiationOfForces,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",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.001576/0.001576, allocations: 197.2 kB / 8.538 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 225.5 MB / 234.4 MB, free: 3.434 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001036/0.001036, allocations: 91.72 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2062/0.2062, allocations: 45.14 MB / 383.3 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2701/0.4764, allocations: 69.36 MB / 452.7 MB, free: 76.15 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.5872, allocations: 63.24 MB / 0.5039 GB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.391/0.9782, allocations: 110.5 MB / 0.6117 GB, free: 8.723 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002313/0.9785, allocations: 79.45 kB / 0.6118 GB, free: 8.684 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: 1454 * Number of variables: 1454 Notification: Performance of Generate backend data structure: time 0.222/1.201, allocations: 85.47 MB / 0.6953 GB, free: 11.46 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.605e-05/1.201, allocations: 8 kB / 0.6953 GB, free: 11.45 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01798/1.219, allocations: 4.073 MB / 0.6993 GB, free: 7.367 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01045/1.229, allocations: 3.898 MB / 0.7031 GB, free: 3.402 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001478/1.229, allocations: 132 kB / 0.7032 GB, free: 3.273 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001139/1.23, allocations: 247.9 kB / 0.7034 GB, free: 3.031 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0101/1.241, allocations: 5.693 MB / 0.709 GB, free: 13.33 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01434/1.255, allocations: 8.898 MB / 0.7177 GB, free: 3.461 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001476/1.255, allocations: 59.41 kB / 0.7177 GB, free: 3.402 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004795/1.256, allocations: 32 kB / 0.7178 GB, free: 3.371 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001047/1.257, allocations: 0.9044 MB / 0.7186 GB, free: 2.461 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2554/1.512, allocations: 42.14 MB / 0.7598 GB, free: 171.2 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00244/1.515, allocations: 2.186 MB / 0.7619 GB, free: 170.6 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001356/1.516, allocations: 1.249 MB / 0.7632 GB, free: 170.5 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006608/1.523, allocations: 4.362 MB / 0.7674 GB, free: 169.1 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.509e-05/1.523, allocations: 46.38 kB / 0.7675 GB, free: 169 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=116): time 4.098e-06/1.523, allocations: 0 / 0.7675 GB, free: 169 MB / 0.5261 GB Notification: Performance of matching and sorting (n=134): time 0.01748/1.54, allocations: 9.674 MB / 0.7769 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.821e-05/1.54, allocations: 197.3 kB / 0.7771 GB, free: 166.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003666/1.544, allocations: 2.844 MB / 0.7799 GB, free: 166 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001399/1.544, allocations: 25.7 kB / 0.7799 GB, free: 166 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0012/1.545, allocations: 2.839 MB / 0.7827 GB, free: 164.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004162/1.546, allocations: 0.5251 MB / 0.7832 GB, free: 164 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001663/1.546, allocations: 0 / 0.7832 GB, free: 164 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002339/1.546, allocations: 0.5417 MB / 0.7837 GB, free: 163.7 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001916/1.548, allocations: 1.546 MB / 0.7852 GB, free: 163.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003506/1.552, allocations: 5.075 MB / 0.7902 GB, free: 159.1 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003561/1.555, allocations: 2.808 MB / 0.7929 GB, free: 159 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.074e-05/1.555, allocations: 35.41 kB / 0.7929 GB, free: 159 MB / 0.5261 GB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01002/1.565, allocations: 5.907 MB / 0.7987 GB, free: 158.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/1.565, allocations: 5.562 kB / 0.7987 GB, free: 158.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001575/1.566, allocations: 128.7 kB / 0.7988 GB, free: 158.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007935/1.566, allocations: 383.2 kB / 0.7992 GB, free: 158.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003828/1.57, allocations: 1.272 MB / 0.8005 GB, free: 158.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002737/1.573, allocations: 2.818 MB / 0.8032 GB, free: 157.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003921/1.577, allocations: 195.9 kB / 0.8034 GB, free: 157.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007286/1.578, allocations: 346.2 kB / 0.8037 GB, free: 157.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 579 * Number of states: 0 () * Number of discrete variables: 36 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],cutForce.forceArrow.arrowLine.twoHeadedArrow,cutForce.forceArrow.headAtOrigin,cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (673): * Single equations (assignments): 669 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006979/1.578, allocations: 421.4 kB / 0.8041 GB, free: 156.9 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004825/1.579, allocations: 285.6 kB / 0.8044 GB, free: 156.7 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002485/1.581, allocations: 1.601 MB / 0.806 GB, free: 156.6 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.11e-05/1.581, allocations: 18.09 kB / 0.806 GB, free: 156.6 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/1.581, allocations: 3.906 kB / 0.806 GB, free: 156.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/1.581, allocations: 6.562 kB / 0.806 GB, free: 156.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008202/1.59, allocations: 4.537 MB / 0.8104 GB, free: 155.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/1.59, allocations: 1.875 kB / 0.8104 GB, free: 155.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001156/1.591, allocations: 218.7 kB / 0.8106 GB, free: 155.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005403/1.591, allocations: 196.2 kB / 0.8108 GB, free: 155.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001169/1.592, allocations: 7.656 kB / 0.8108 GB, free: 155.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002292/1.594, allocations: 2.402 MB / 0.8132 GB, free: 153.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/1.594, allocations: 0 / 0.8132 GB, free: 153.7 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004008/1.598, allocations: 3.6 MB / 0.8167 GB, free: 152.1 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005685/1.604, allocations: 5.189 MB / 0.8218 GB, free: 149.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008535/1.604, allocations: 326.3 kB / 0.8221 GB, free: 149.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004222/1.605, allocations: 1.719 kB / 0.8221 GB, free: 149.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001202/1.606, allocations: 60.05 kB / 0.8221 GB, free: 149.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002291/1.606, allocations: 80.62 kB / 0.8222 GB, free: 149.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001264/1.606, allocations: 45.42 kB / 0.8222 GB, free: 149.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.003303/1.61, allocations: 1.899 MB / 0.8241 GB, free: 148.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007003/1.617, allocations: 0.7327 MB / 0.8248 GB, free: 148.8 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 97 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004148/1.617, allocations: 139.8 kB / 0.8249 GB, free: 148.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005411/1.623, allocations: 3.712 MB / 0.8286 GB, free: 146 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/1.623, allocations: 0 / 0.8286 GB, free: 146 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00122/1.624, allocations: 1.016 MB / 0.8296 GB, free: 145.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001923/1.626, allocations: 309.3 kB / 0.8299 GB, free: 144.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01216/1.638, allocations: 6.563 MB / 0.8363 GB, free: 139 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004018/1.642, allocations: 3.483 MB / 0.8397 GB, free: 136.3 MB / 0.5261 GB Notification: Performance of SimCode: time 1.252e-06/1.642, allocations: 3.938 kB / 0.8397 GB, free: 136.3 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_DifferentiationOfForces_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_DifferentiationOfForces.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1)