Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001212/0.001212, allocations: 189.9 kB / 8.484 MB, free: 1.785 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.118/1.118, allocations: 205.2 MB / 214.1 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008636/0.0008636, allocations: 83.28 kB / 262.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09408/0.09497, allocations: 52.98 MB / 315.1 MB, free: 8.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1934/0.2884, allocations: 47.56 MB / 362.6 MB, free: 45.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1118/0.4002, allocations: 102.1 MB / 464.7 MB, free: 15.74 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002868/0.4006, allocations: 90.36 kB / 464.8 MB, free: 15.65 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: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.4511/0.8517, allocations: 142.6 MB / 0.5932 GB, free: 47.96 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.8517, allocations: 12 kB / 0.5932 GB, free: 47.95 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04127/0.893, allocations: 11.31 MB / 0.6042 GB, free: 36.61 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02229/0.9154, allocations: 10.63 MB / 0.6146 GB, free: 26 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002332/0.9156, allocations: 228 kB / 0.6148 GB, free: 25.78 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002083/0.9177, allocations: 427.8 kB / 0.6152 GB, free: 25.36 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01442/0.9322, allocations: 10.24 MB / 0.6252 GB, free: 15.12 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02024/0.9524, allocations: 14.99 MB / 0.6399 GB, free: 14.82 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002694/0.9527, allocations: 103.1 kB / 0.64 GB, free: 14.72 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007861/0.9535, allocations: 40 kB / 0.64 GB, free: 14.68 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002136/0.9557, allocations: 1.567 MB / 0.6415 GB, free: 13.12 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2045/1.16, allocations: 73.9 MB / 0.7137 GB, free: 68.85 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00635/1.167, allocations: 6.074 MB / 0.7196 GB, free: 68.19 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004748/1.171, allocations: 5.035 MB / 0.7245 GB, free: 67.41 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01869/1.19, allocations: 14.65 MB / 0.7389 GB, free: 60.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.369e-05/1.19, allocations: 72 kB / 0.7389 GB, free: 60.04 MB / 410.7 MB Notification: Performance of pre-optimization done (n=275): time 5.06e-06/1.19, allocations: 0 / 0.7389 GB, free: 60.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=368): time 0.1099/1.3, allocations: 44.28 MB / 0.7822 GB, free: 37.49 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.32e-05/1.3, allocations: 374.6 kB / 0.7825 GB, free: 37.04 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006721/1.307, allocations: 4.972 MB / 0.7874 GB, free: 32.76 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007985/1.308, allocations: 25.7 kB / 0.7874 GB, free: 32.73 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001701/1.309, allocations: 4.356 MB / 0.7917 GB, free: 28.83 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001259/1.311, allocations: 1.312 MB / 0.7929 GB, free: 27.64 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005249/1.311, allocations: 0 / 0.7929 GB, free: 27.64 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003698/1.312, allocations: 0.6883 MB / 0.7936 GB, free: 27.06 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005936/1.318, allocations: 5.409 MB / 0.7989 GB, free: 22.15 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007916/1.326, allocations: 10.46 MB / 0.8091 GB, free: 9.898 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009012/1.335, allocations: 7.435 MB / 0.8164 GB, free: 3.57 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-05/1.335, allocations: 48 kB / 0.8164 GB, free: 3.523 MB / 410.7 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.1701/1.505, allocations: 19.91 MB / 0.8359 GB, free: 99.26 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/1.505, allocations: 7.625 kB / 0.8359 GB, free: 99.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002291/1.505, allocations: 177.9 kB / 0.836 GB, free: 99.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02003/1.525, allocations: 5.954 MB / 0.8418 GB, free: 99.22 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007888/1.533, allocations: 2.02 MB / 0.8438 GB, free: 99.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03754/1.571, allocations: 28.91 MB / 0.8721 GB, free: 93.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008296/1.579, allocations: 401.3 kB / 0.8724 GB, free: 93.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001452/1.58, allocations: 0.5223 MB / 0.8729 GB, free: 93.38 MB / 410.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.00141/1.582, allocations: 0.5459 MB / 0.8735 GB, free: 93.05 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009032/1.583, allocations: 0.5587 MB / 0.874 GB, free: 93.05 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03/1.613, allocations: 14.72 MB / 0.8884 GB, free: 88.24 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001002/1.613, allocations: 45.55 kB / 0.8884 GB, free: 88.24 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.407e-05/1.613, allocations: 21.47 kB / 0.8885 GB, free: 88.23 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.395e-05/1.613, allocations: 22.92 kB / 0.8885 GB, free: 88.23 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0463/1.659, allocations: 28.5 MB / 0.9163 GB, free: 68.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.471e-05/1.659, allocations: 0 / 0.9163 GB, free: 68.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00336/1.663, allocations: 0.4957 MB / 0.9168 GB, free: 68.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01872/1.681, allocations: 5.635 MB / 0.9223 GB, free: 64.75 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007859/1.682, allocations: 4 kB / 0.9223 GB, free: 64.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03337/1.716, allocations: 27.48 MB / 0.9491 GB, free: 38.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/1.716, allocations: 0 / 0.9491 GB, free: 38.34 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1674/1.883, allocations: 22.29 MB / 0.9709 GB, free: 94.35 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04497/1.928, allocations: 30.18 MB / 1 GB, free: 90.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004299/1.933, allocations: 1.53 MB / 1.002 GB, free: 90.24 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001819/1.934, allocations: 3.625 kB / 1.002 GB, free: 90.24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004073/1.938, allocations: 212.2 kB / 1.002 GB, free: 90.24 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007343/1.939, allocations: 169 kB / 1.002 GB, free: 90.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004432/1.94, allocations: 88.66 kB / 1.002 GB, free: 90.19 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.005837/1.946, allocations: 3.424 MB / 1.006 GB, free: 88.96 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01064/1.956, allocations: 1.885 MB / 1.008 GB, free: 88.95 MB / 410.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.001139/1.957, allocations: 219.9 kB / 1.008 GB, free: 88.86 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01948/1.977, allocations: 13.21 MB / 1.021 GB, free: 84.12 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/1.977, allocations: 1.125 kB / 1.021 GB, free: 84.12 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008734/1.986, allocations: 5.908 MB / 1.026 GB, free: 81.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003814/1.989, allocations: 0.6966 MB / 1.027 GB, free: 81.34 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02819/2.018, allocations: 16.91 MB / 1.044 GB, free: 70.76 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007407/2.025, allocations: 5.782 MB / 1.049 GB, free: 66.41 MB / 410.7 MB Notification: Performance of SimCode: time 7.82e-07/2.025, allocations: 3.562 kB / 1.049 GB, free: 66.41 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarFourbar.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1)