Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",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.001593/0.001593, allocations: 198.8 kB / 8.538 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.232/1.232, allocations: 225.5 MB / 234.4 MB, free: 3.316 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009011/0.0009011, allocations: 93.91 kB / 286.3 MB, free: 5.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1648/0.1648, allocations: 45.14 MB / 383.3 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1867/0.3515, allocations: 69.37 MB / 452.7 MB, free: 76.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07978/0.4313, allocations: 63.24 MB / 0.5039 GB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2717/0.7031, allocations: 108.7 MB / 0.61 GB, free: 10.27 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001847/0.7033, allocations: 72.14 kB / 0.6101 GB, free: 10.23 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: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.2075/0.9108, allocations: 79.63 MB / 0.6878 GB, free: 2.887 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.9109, allocations: 11.94 kB / 0.6879 GB, free: 2.875 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01597/0.9269, allocations: 3.926 MB / 0.6917 GB, free: 14.94 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009134/0.936, allocations: 3.836 MB / 0.6954 GB, free: 11.04 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.9362, allocations: 123.9 kB / 0.6956 GB, free: 10.92 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007246/0.9369, allocations: 211.9 kB / 0.6958 GB, free: 10.71 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007658/0.9446, allocations: 5.304 MB / 0.7009 GB, free: 5.402 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0106/0.9552, allocations: 8.381 MB / 0.7091 GB, free: 12 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001476/0.9553, allocations: 63.45 kB / 0.7092 GB, free: 11.94 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005014/0.9559, allocations: 32 kB / 0.7092 GB, free: 11.91 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001223/0.9571, allocations: 0.9425 MB / 0.7101 GB, free: 10.96 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2225/1.18, allocations: 44.27 MB / 0.7534 GB, free: 92.6 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002432/1.182, allocations: 2.596 MB / 0.7559 GB, free: 91.95 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001584/1.184, allocations: 1.652 MB / 0.7575 GB, free: 91.91 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006776/1.19, allocations: 5.53 MB / 0.7629 GB, free: 90.19 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/1.19, allocations: 50.78 kB / 0.763 GB, free: 90.15 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=151): time 3.357e-06/1.19, allocations: 0 / 0.763 GB, free: 90.15 MB / 0.5261 GB Notification: Performance of matching and sorting (n=188): time 0.03828/1.229, allocations: 17.06 MB / 0.7796 GB, free: 87.78 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/1.229, allocations: 199.1 kB / 0.7798 GB, free: 87.56 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003359/1.232, allocations: 2.937 MB / 0.7827 GB, free: 87.25 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001472/1.232, allocations: 25.7 kB / 0.7827 GB, free: 87.21 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000951/1.233, allocations: 2.692 MB / 0.7853 GB, free: 85.64 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004455/1.234, allocations: 0.6914 MB / 0.786 GB, free: 85.24 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000216/1.234, allocations: 1.219 kB / 0.786 GB, free: 85.24 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002385/1.234, allocations: 0.5656 MB / 0.7866 GB, free: 84.92 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002295/1.237, allocations: 1.953 MB / 0.7885 GB, free: 84.91 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003453/1.24, allocations: 5.628 MB / 0.794 GB, free: 80.13 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004667/1.245, allocations: 3.657 MB / 0.7975 GB, free: 80.1 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.634e-05/1.245, allocations: 38.22 kB / 0.7976 GB, free: 80.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=792) (initialization): time 0.01484/1.26, allocations: 8.214 MB / 0.8056 GB, free: 79.69 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/1.26, allocations: 6.812 kB / 0.8056 GB, free: 79.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.552e-05/1.26, allocations: 129.9 kB / 0.8057 GB, free: 79.69 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005511/1.265, allocations: 1.466 MB / 0.8072 GB, free: 79.67 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003763/1.269, allocations: 1.327 MB / 0.8085 GB, free: 79.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01443/1.284, allocations: 8.439 MB / 0.8167 GB, free: 76.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00419/1.288, allocations: 175.4 kB / 0.8169 GB, free: 76.62 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006251/1.288, allocations: 381.2 kB / 0.8172 GB, free: 76.57 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (724): * Single equations (assignments): 720 * 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 {(2,100.0%) 43} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007249/1.289, allocations: 433.8 kB / 0.8176 GB, free: 76.21 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004537/1.29, allocations: 314.6 kB / 0.8179 GB, free: 76.04 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009715/1.299, allocations: 3.893 MB / 0.8217 GB, free: 74.87 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.227e-05/1.299, allocations: 21.17 kB / 0.8218 GB, free: 74.87 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/1.299, allocations: 8.156 kB / 0.8218 GB, free: 74.87 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.475e-05/1.299, allocations: 7.5 kB / 0.8218 GB, free: 74.87 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01602/1.315, allocations: 7.643 MB / 0.8292 GB, free: 72.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/1.315, allocations: 2.25 kB / 0.8292 GB, free: 72.28 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001307/1.317, allocations: 224 kB / 0.8295 GB, free: 72.26 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005246/1.322, allocations: 1.243 MB / 0.8307 GB, free: 72.04 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001939/1.322, allocations: 13.91 kB / 0.8307 GB, free: 72.04 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01302/1.335, allocations: 7.97 MB / 0.8385 GB, free: 66.01 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/1.335, allocations: 0 / 0.8385 GB, free: 66.01 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01133/1.347, allocations: 6.475 MB / 0.8448 GB, free: 60.49 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01305/1.36, allocations: 8.76 MB / 0.8533 GB, free: 52.87 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006288/1.36, allocations: 352.2 kB / 0.8537 GB, free: 52.51 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004507/1.361, allocations: 0 / 0.8537 GB, free: 52.51 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001346/1.362, allocations: 46.34 kB / 0.8537 GB, free: 52.48 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002147/1.362, allocations: 83.3 kB / 0.8538 GB, free: 52.43 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001706/1.363, allocations: 59.14 kB / 0.8539 GB, free: 52.38 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.002506/1.365, allocations: 1.96 MB / 0.8558 GB, free: 50.68 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00474/1.37, allocations: 0.8384 MB / 0.8566 GB, free: 49.85 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 122 * 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%) 40} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003855/1.37, allocations: 164.2 kB / 0.8568 GB, free: 49.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005869/1.376, allocations: 4.805 MB / 0.8614 GB, free: 45.33 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/1.376, allocations: 0 / 0.8614 GB, free: 45.33 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001764/1.378, allocations: 1.57 MB / 0.863 GB, free: 43.88 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001391/1.379, allocations: 293.9 kB / 0.8633 GB, free: 43.62 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01125/1.391, allocations: 6.972 MB / 0.8701 GB, free: 37.38 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003302/1.394, allocations: 3.281 MB / 0.8733 GB, free: 34.81 MB / 0.5261 GB Notification: Performance of SimCode: time 5.41e-07/1.394, allocations: 0 / 0.8733 GB, free: 34.81 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1)