Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",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 3.2.3+maint.om/package.mo): time 0.001409/0.00141, allocations: 179.1 kB / 8.474 MB, free: 1.879 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.159/1.159, allocations: 205.2 MB / 214.1 MB, free: 5.098 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008452/0.0008452, allocations: 86.31 kB / 262.1 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1655/0.1664, allocations: 52.97 MB / 315.1 MB, free: 41.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06342/0.2298, allocations: 47.58 MB / 362.6 MB, free: 9.805 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2241/0.454, allocations: 93.52 MB / 456.2 MB, free: 7.875 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002076/0.4542, allocations: 86.67 kB / 456.2 MB, free: 7.863 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.3391/0.7933, allocations: 125.8 MB / 0.5684 GB, free: 8.355 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.7934, allocations: 8 kB / 0.5684 GB, free: 8.348 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1533/0.9466, allocations: 9.005 MB / 0.5772 GB, free: 119.7 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01949/0.9662, allocations: 8.656 MB / 0.5857 GB, free: 119.2 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002629/0.9665, allocations: 193.6 kB / 0.5859 GB, free: 119.2 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002565/0.9691, allocations: 348.2 kB / 0.5862 GB, free: 119.2 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01357/0.9826, allocations: 9.197 MB / 0.5952 GB, free: 119.2 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02161/1.004, allocations: 13.33 MB / 0.6082 GB, free: 116.1 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002345/1.005, allocations: 92.02 kB / 0.6083 GB, free: 116.1 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008654/1.005, allocations: 34.62 kB / 0.6083 GB, free: 116.1 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001678/1.007, allocations: 1.546 MB / 0.6098 GB, free: 116 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06351/1.071, allocations: 64.6 MB / 0.6729 GB, free: 76.18 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007663/1.078, allocations: 7.179 MB / 0.6799 GB, free: 73.05 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005428/1.084, allocations: 5.507 MB / 0.6853 GB, free: 70.81 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01925/1.103, allocations: 14.16 MB / 0.6991 GB, free: 60.09 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.407e-05/1.103, allocations: 67.5 kB / 0.6992 GB, free: 60.02 MB / 426.7 MB Notification: Performance of pre-optimization done (n=340): time 6.002e-06/1.103, allocations: 0 / 0.6992 GB, free: 60.02 MB / 426.7 MB Notification: Performance of matching and sorting (n=604): time 0.2973/1.401, allocations: 72.71 MB / 0.7702 GB, free: 103.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.047e-05/1.401, allocations: 267.8 kB / 0.7705 GB, free: 102.8 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005841/1.406, allocations: 4.059 MB / 0.7744 GB, free: 102.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001488/1.408, allocations: 25.7 kB / 0.7744 GB, free: 102.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00182/1.41, allocations: 3.572 MB / 0.7779 GB, free: 101.7 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00246/1.412, allocations: 2.033 MB / 0.7799 GB, free: 100.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001074/1.413, allocations: 0 / 0.7799 GB, free: 100.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000408/1.414, allocations: 0.7253 MB / 0.7806 GB, free: 100.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01098/1.425, allocations: 8.574 MB / 0.789 GB, free: 100.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01242/1.437, allocations: 12.77 MB / 0.8015 GB, free: 94.96 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01335/1.451, allocations: 10.59 MB / 0.8118 GB, free: 94.86 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001231/1.451, allocations: 40.28 kB / 0.8118 GB, free: 94.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=1260) (initialization): time 0.09114/1.542, allocations: 38.57 MB / 0.8495 GB, free: 85.12 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/1.542, allocations: 11.52 kB / 0.8495 GB, free: 85.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002502/1.542, allocations: 140.9 kB / 0.8497 GB, free: 85.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06795/1.61, allocations: 20.87 MB / 0.87 GB, free: 80.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005232/1.616, allocations: 1.476 MB / 0.8715 GB, free: 80.72 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3188/1.934, allocations: 126.3 MB / 0.9948 GB, free: 82.33 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01111/1.946, allocations: 411.2 kB / 0.9952 GB, free: 82.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002625/1.948, allocations: 0.5399 MB / 0.9957 GB, free: 82.25 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: b2.frame_b.R.T[1,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[1,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 652 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.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 (799): * Single equations (assignments): 792 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.003006/1.951, allocations: 487.5 kB / 0.9962 GB, free: 82.11 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001603/1.953, allocations: 0.55 MB / 0.9968 GB, free: 82.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07708/2.03, allocations: 35.09 MB / 1.031 GB, free: 71.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001321/2.03, allocations: 58.62 kB / 1.031 GB, free: 71.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001078/2.03, allocations: 66.25 kB / 1.031 GB, free: 71.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001068/2.03, allocations: 28.64 kB / 1.031 GB, free: 71.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2334/2.264, allocations: 55.1 MB / 1.085 GB, free: 87.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.147e-05/2.264, allocations: 3.906 kB / 1.085 GB, free: 87.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001623/2.265, allocations: 262.4 kB / 1.085 GB, free: 87.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06147/2.327, allocations: 20.12 MB / 1.105 GB, free: 87.57 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001794/2.329, allocations: 10.33 kB / 1.105 GB, free: 87.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1627/2.491, allocations: 116.9 MB / 1.219 GB, free: 37.96 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.253e-06/2.492, allocations: 7.75 kB / 1.219 GB, free: 37.96 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2234/2.715, allocations: 48.16 MB / 1.266 GB, free: 86.79 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.135/2.85, allocations: 89.16 MB / 1.353 GB, free: 53.47 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00564/2.856, allocations: 2.347 MB / 1.355 GB, free: 51.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002556/2.858, allocations: 3.906 kB / 1.355 GB, free: 51.35 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006643/2.865, allocations: 269.1 kB / 1.356 GB, free: 51.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00133/2.866, allocations: 271.4 kB / 1.356 GB, free: 51.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008579/2.867, allocations: 139.2 kB / 1.356 GB, free: 50.91 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003853/2.871, allocations: 2.794 MB / 1.359 GB, free: 48.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0124/2.883, allocations: 2.84 MB / 1.362 GB, free: 45.65 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 141 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.001444/2.885, allocations: 148.1 kB / 1.362 GB, free: 45.54 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.1574/3.042, allocations: 22.88 MB / 1.384 GB, free: 93.29 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/3.042, allocations: 0 / 1.384 GB, free: 93.29 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02151/3.064, allocations: 12.44 MB / 1.396 GB, free: 92.64 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003919/3.068, allocations: 0.5264 MB / 1.397 GB, free: 92.62 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0442/3.112, allocations: 21.44 MB / 1.418 GB, free: 90.19 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007872/3.12, allocations: 5.361 MB / 1.423 GB, free: 89.31 MB / 426.7 MB Notification: Performance of SimCode: time 1.032e-06/3.12, allocations: 0 / 1.423 GB, free: 89.31 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1)