Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.Loops.PlanarFourbar,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",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.001761/0.001761, allocations: 196.1 kB / 8.539 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.273/1.273, allocations: 225.5 MB / 234.4 MB, free: 3.344 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008932/0.0008933, allocations: 89.59 kB / 286.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1141/0.115, allocations: 56.91 MB / 343.2 MB, free: 8.641 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.2245, allocations: 51.47 MB / 394.7 MB, free: 5.113 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3284/0.553, allocations: 103.8 MB / 498.5 MB, free: 5.562 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002058/0.5532, allocations: 91.12 kB / 498.6 MB, free: 5.516 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: 2348 * Number of variables: 2348 Notification: Performance of Generate backend data structure: time 0.5597/1.113, allocations: 149.5 MB / 0.6329 GB, free: 69.62 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/1.113, allocations: 7.75 kB / 0.6329 GB, free: 69.62 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04373/1.157, allocations: 11.31 MB / 0.644 GB, free: 67.82 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02392/1.181, allocations: 9.065 MB / 0.6528 GB, free: 64.58 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008956/1.182, allocations: 227.3 kB / 0.653 GB, free: 64.58 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00492/1.187, allocations: 430.6 kB / 0.6534 GB, free: 64.56 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01879/1.205, allocations: 10.24 MB / 0.6634 GB, free: 60.95 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02933/1.235, allocations: 14.98 MB / 0.6781 GB, free: 53.21 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003206/1.235, allocations: 98.59 kB / 0.6782 GB, free: 53.16 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001289/1.236, allocations: 38.28 kB / 0.6782 GB, free: 53.16 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001974/1.238, allocations: 1.578 MB / 0.6797 GB, free: 52.88 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2422/1.481, allocations: 73.7 MB / 0.7517 GB, free: 120 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006452/1.487, allocations: 6.076 MB / 0.7576 GB, free: 119.4 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00625/1.494, allocations: 5.043 MB / 0.7626 GB, free: 119.3 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02504/1.519, allocations: 14.59 MB / 0.7768 GB, free: 116.6 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.16e-05/1.519, allocations: 60.94 kB / 0.7769 GB, free: 116.6 MB / 458.7 MB Notification: Performance of pre-optimization done (n=275): time 7.504e-06/1.519, allocations: 0 / 0.7769 GB, free: 116.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=368): time 0.1158/1.634, allocations: 44.04 MB / 0.8199 GB, free: 105.1 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/1.635, allocations: 374.1 kB / 0.8202 GB, free: 104.7 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008198/1.643, allocations: 4.907 MB / 0.825 GB, free: 102.9 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001009/1.644, allocations: 25.7 kB / 0.8251 GB, free: 102.9 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002614/1.647, allocations: 4.357 MB / 0.8293 GB, free: 99.63 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001679/1.648, allocations: 1.304 MB / 0.8306 GB, free: 98.65 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005464/1.649, allocations: 0 / 0.8306 GB, free: 98.65 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000404/1.649, allocations: 0.6875 MB / 0.8313 GB, free: 98.18 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006527/1.656, allocations: 5.415 MB / 0.8366 GB, free: 96.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009566/1.665, allocations: 10.46 MB / 0.8468 GB, free: 87.23 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01024/1.676, allocations: 7.428 MB / 0.854 GB, free: 84.51 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001751/1.676, allocations: 56.88 kB / 0.8541 GB, free: 84.51 MB / 458.7 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04255/1.718, allocations: 19.85 MB / 0.8735 GB, free: 69.04 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.671e-05/1.718, allocations: 4 kB / 0.8735 GB, free: 69.04 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003325/1.719, allocations: 180 kB / 0.8736 GB, free: 68.86 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02059/1.739, allocations: 5.953 MB / 0.8794 GB, free: 64.66 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008325/1.748, allocations: 2.015 MB / 0.8814 GB, free: 62.92 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03759/1.785, allocations: 28.91 MB / 0.9096 GB, free: 37.61 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00891/1.794, allocations: 404 kB / 0.91 GB, free: 37.31 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002054/1.796, allocations: 0.5243 MB / 0.9105 GB, free: 36.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 811 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1047): * Single equations (assignments): 1040 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 68,(2,100.0%) 18} * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.002052/1.798, allocations: 0.5529 MB / 0.9111 GB, free: 36.25 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00149/1.8, allocations: 0.5476 MB / 0.9116 GB, free: 35.69 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1982/1.998, allocations: 14.86 MB / 0.9261 GB, free: 111.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001283/1.998, allocations: 45.12 kB / 0.9262 GB, free: 111.4 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.735e-05/1.998, allocations: 20.59 kB / 0.9262 GB, free: 111.4 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.738e-05/1.998, allocations: 16.55 kB / 0.9262 GB, free: 111.4 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04908/2.048, allocations: 28.47 MB / 0.954 GB, free: 108.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.029e-05/2.048, allocations: 3.562 kB / 0.954 GB, free: 108.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005498/2.053, allocations: 0.4978 MB / 0.9545 GB, free: 108.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01946/2.073, allocations: 5.626 MB / 0.96 GB, free: 108.7 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009773/2.074, allocations: 7.719 kB / 0.96 GB, free: 108.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03473/2.108, allocations: 27.48 MB / 0.9868 GB, free: 96.66 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/2.108, allocations: 3.938 kB / 0.9868 GB, free: 96.66 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03717/2.146, allocations: 22.29 MB / 1.009 GB, free: 88.7 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04627/2.192, allocations: 30.17 MB / 1.038 GB, free: 76.41 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001808/2.194, allocations: 0.5532 MB / 1.039 GB, free: 75.85 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001826/2.196, allocations: 5.172 kB / 1.039 GB, free: 75.85 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003914/2.2, allocations: 212.7 kB / 1.039 GB, free: 75.73 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007058/2.2, allocations: 169.6 kB / 1.039 GB, free: 75.63 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004879/2.201, allocations: 91.42 kB / 1.039 GB, free: 75.54 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.005194/2.206, allocations: 3.38 MB / 1.042 GB, free: 72.59 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009848/2.216, allocations: 1.901 MB / 1.044 GB, free: 70.72 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (237): * Single equations (assignments): 230 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,84.0%) 62,(2,100.0%) 15} * Non-linear torn systems: 1 {2 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.001089/2.217, allocations: 234.5 kB / 1.044 GB, free: 70.56 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01742/2.234, allocations: 13.22 MB / 1.057 GB, free: 58.93 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.163e-06/2.234, allocations: 3.375 kB / 1.057 GB, free: 58.93 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008272/2.243, allocations: 5.9 MB / 1.063 GB, free: 53.59 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004368/2.247, allocations: 0.6963 MB / 1.064 GB, free: 53.03 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02869/2.276, allocations: 16.86 MB / 1.08 GB, free: 37.98 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007618/2.283, allocations: 5.769 MB / 1.086 GB, free: 33.64 MB / 458.7 MB Notification: Performance of SimCode: time 6.71e-07/2.283, allocations: 0 / 1.086 GB, free: 33.64 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1)