Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001889/0.001889, allocations: 187.3 kB / 8.52 MB, free: 484 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 221.4 MB / 230.3 MB, free: 13.66 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000905/0.0009049, allocations: 94.92 kB / 281.2 MB, free: 10.55 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1628/0.1628, allocations: 44.13 MB / 376.1 MB, free: 11.71 MB / 322.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1771/0.34, allocations: 68.04 MB / 444.1 MB, free: 54.32 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08472/0.4247, allocations: 61.9 MB / 0.4942 GB, free: 8.344 MB / 338.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.263/0.6877, allocations: 107.8 MB / 0.5994 GB, free: 6.918 MB / 418.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002192/0.688, allocations: 71.97 kB / 0.5995 GB, free: 6.848 MB / 418.8 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.2048/0.8928, allocations: 78.85 MB / 0.6765 GB, free: 7.402 MB / 498.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.8929, allocations: 11.94 kB / 0.6765 GB, free: 7.391 MB / 498.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01565/0.9086, allocations: 3.926 MB / 0.6803 GB, free: 3.453 MB / 498.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01049/0.9191, allocations: 4.378 MB / 0.6846 GB, free: 15.01 MB / 0.5027 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/0.9192, allocations: 120 kB / 0.6847 GB, free: 14.89 MB / 0.5027 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007846/0.92, allocations: 215.9 kB / 0.6849 GB, free: 14.68 MB / 0.5027 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007234/0.9272, allocations: 5.304 MB / 0.6901 GB, free: 9.371 MB / 0.5027 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.144/1.071, allocations: 8.377 MB / 0.6983 GB, free: 182.9 MB / 0.5027 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001947/1.072, allocations: 56.56 kB / 0.6984 GB, free: 182.9 MB / 0.5027 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001189/1.073, allocations: 29.41 kB / 0.6984 GB, free: 182.9 MB / 0.5027 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009542/1.074, allocations: 0.9488 MB / 0.6993 GB, free: 182.9 MB / 0.5027 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03027/1.104, allocations: 44.28 MB / 0.7426 GB, free: 154.1 MB / 0.5027 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002548/1.107, allocations: 2.591 MB / 0.7451 GB, free: 153.4 MB / 0.5027 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001547/1.108, allocations: 1.646 MB / 0.7467 GB, free: 153.4 MB / 0.5027 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006948/1.115, allocations: 5.513 MB / 0.7521 GB, free: 151.2 MB / 0.5027 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.277e-05/1.115, allocations: 49.62 kB / 0.7521 GB, free: 151.2 MB / 0.5027 GB Notification: Performance of pre-optimization done (n=151): time 3.727e-06/1.115, allocations: 0 / 0.7521 GB, free: 151.2 MB / 0.5027 GB Notification: Performance of matching and sorting (n=188): time 0.04367/1.159, allocations: 17.08 MB / 0.7688 GB, free: 144.9 MB / 0.5027 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.976e-05/1.159, allocations: 198.8 kB / 0.769 GB, free: 144.7 MB / 0.5027 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003781/1.163, allocations: 2.939 MB / 0.7719 GB, free: 143.6 MB / 0.5027 GB Notification: Performance of collectPreVariables (initialization): time 0.0002184/1.163, allocations: 25.7 kB / 0.7719 GB, free: 143.6 MB / 0.5027 GB Notification: Performance of collectInitialEqns (initialization): time 0.001388/1.164, allocations: 2.685 MB / 0.7745 GB, free: 141.6 MB / 0.5027 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007078/1.165, allocations: 0.7051 MB / 0.7752 GB, free: 141 MB / 0.5027 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003076/1.165, allocations: 0 / 0.7752 GB, free: 141 MB / 0.5027 GB Notification: Performance of setup shared object (initialization): time 0.0003339/1.166, allocations: 0.56 MB / 0.7757 GB, free: 140.6 MB / 0.5027 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003517/1.169, allocations: 1.954 MB / 0.7777 GB, free: 139.9 MB / 0.5027 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005056/1.174, allocations: 5.622 MB / 0.7831 GB, free: 134.3 MB / 0.5027 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006869/1.181, allocations: 3.656 MB / 0.7867 GB, free: 133.2 MB / 0.5027 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001201/1.181, allocations: 37.09 kB / 0.7868 GB, free: 133.2 MB / 0.5027 GB Notification: Performance of matching and sorting (n=792) (initialization): time 0.01646/1.198, allocations: 8.228 MB / 0.7948 GB, free: 130.6 MB / 0.5027 GB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/1.198, allocations: 6.062 kB / 0.7948 GB, free: 130.6 MB / 0.5027 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002682/1.198, allocations: 135.7 kB / 0.7949 GB, free: 130.6 MB / 0.5027 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005481/1.204, allocations: 1.464 MB / 0.7964 GB, free: 129.7 MB / 0.5027 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003927/1.208, allocations: 1.326 MB / 0.7976 GB, free: 128.5 MB / 0.5027 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01324/1.221, allocations: 8.443 MB / 0.8059 GB, free: 121.3 MB / 0.5027 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004101/1.225, allocations: 174.3 kB / 0.8061 GB, free: 121.2 MB / 0.5027 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008023/1.226, allocations: 379.1 kB / 0.8064 GB, free: 120.8 MB / 0.5027 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.00119/1.227, allocations: 439.5 kB / 0.8068 GB, free: 120.4 MB / 0.5027 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005608/1.228, allocations: 308 kB / 0.8071 GB, free: 120.1 MB / 0.5027 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009197/1.237, allocations: 3.894 MB / 0.8109 GB, free: 117.1 MB / 0.5027 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.985e-05/1.237, allocations: 20 kB / 0.811 GB, free: 117 MB / 0.5027 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-05/1.237, allocations: 11.44 kB / 0.811 GB, free: 117 MB / 0.5027 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.721e-05/1.237, allocations: 6.422 kB / 0.811 GB, free: 117 MB / 0.5027 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01564/1.253, allocations: 7.641 MB / 0.8184 GB, free: 111 MB / 0.5027 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.666e-06/1.253, allocations: 7.609 kB / 0.8184 GB, free: 110.9 MB / 0.5027 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00121/1.254, allocations: 217 kB / 0.8186 GB, free: 110.8 MB / 0.5027 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005115/1.259, allocations: 1.249 MB / 0.8199 GB, free: 109.9 MB / 0.5027 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001593/1.259, allocations: 15.91 kB / 0.8199 GB, free: 109.9 MB / 0.5027 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0135/1.273, allocations: 7.973 MB / 0.8277 GB, free: 103.1 MB / 0.5027 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/1.273, allocations: 0 / 0.8277 GB, free: 103.1 MB / 0.5027 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0113/1.284, allocations: 6.462 MB / 0.834 GB, free: 97.11 MB / 0.5027 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01323/1.297, allocations: 8.769 MB / 0.8425 GB, free: 88.3 MB / 0.5027 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006586/1.298, allocations: 345 kB / 0.8429 GB, free: 87.94 MB / 0.5027 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006153/1.298, allocations: 7.906 kB / 0.8429 GB, free: 87.93 MB / 0.5027 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001493/1.3, allocations: 44 kB / 0.8429 GB, free: 87.89 MB / 0.5027 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002163/1.3, allocations: 81.19 kB / 0.843 GB, free: 87.81 MB / 0.5027 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001491/1.3, allocations: 59.98 kB / 0.8431 GB, free: 87.75 MB / 0.5027 GB Notification: Performance of sort global known variables: time 0.00281/1.303, allocations: 1.959 MB / 0.845 GB, free: 85.8 MB / 0.5027 GB Notification: Performance of remove unused functions: time 0.004852/1.308, allocations: 0.8334 MB / 0.8458 GB, free: 84.98 MB / 0.5027 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.0004567/1.308, allocations: 166.6 kB / 0.8459 GB, free: 84.82 MB / 0.5027 GB Notification: Performance of simCode: created initialization part: time 0.005875/1.314, allocations: 4.8 MB / 0.8506 GB, free: 80.04 MB / 0.5027 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/1.314, allocations: 4.125 kB / 0.8506 GB, free: 80.04 MB / 0.5027 GB Notification: Performance of simCode: created simulation system equations: time 0.001712/1.316, allocations: 1.565 MB / 0.8522 GB, free: 78.46 MB / 0.5027 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001272/1.317, allocations: 294.6 kB / 0.8524 GB, free: 78.18 MB / 0.5027 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01126/1.329, allocations: 6.966 MB / 0.8592 GB, free: 71.15 MB / 0.5027 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003487/1.332, allocations: 3.283 MB / 0.8625 GB, free: 67.86 MB / 0.5027 GB Notification: Performance of SimCode: time 5.81e-07/1.332, allocations: 0 / 0.8625 GB, free: 67.86 MB / 0.5027 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1)