Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [: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/Modelica 3.1.0+maint.om/package.mo): time 0.725/0.725, allocations: 110.8 MB / 118 MB, free: 14.53 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001985/0.001985, allocations: 152 kB / 143.7 MB, free: 4.863 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 7.423e-06/7.454e-06, allocations: 0 / 173.5 MB, free: 23.02 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05149/0.05152, allocations: 25.16 MB / 198.6 MB, free: 13.92 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.173/0.2246, allocations: 52.21 MB / 250.8 MB, free: 1.512 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002166/0.2249, allocations: 72.66 kB / 250.9 MB, free: 1.504 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.9008/1.126, allocations: 262.9 MB / 0.5018 GB, free: 8.805 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0005494/1.126, allocations: 164 kB / 0.5019 GB, free: 8.645 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3137 * Number of variables: 3137 Notification: Performance of Generate backend data structure: time 0.1649/1.291, allocations: 11.13 MB / 0.5128 GB, free: 38.5 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/1.291, allocations: 9.875 kB / 0.5128 GB, free: 38.5 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2104/1.502, allocations: 38.14 MB / 0.55 GB, free: 36.64 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03254/1.534, allocations: 10.53 MB / 0.5603 GB, free: 36.19 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007381/1.535, allocations: 292.7 kB / 0.5606 GB, free: 36.19 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007921/1.543, allocations: 488.5 kB / 0.5611 GB, free: 36.18 MB / 250.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04728/1.59, allocations: 27.07 MB / 0.5875 GB, free: 25.92 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.155/1.745, allocations: 29.02 MB / 0.6158 GB, free: 37.39 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004787/1.746, allocations: 44.97 kB / 0.6159 GB, free: 37.39 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007721/1.753, allocations: 26.38 kB / 0.6159 GB, free: 37.39 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.07102/1.825, allocations: 13.57 MB / 0.6292 GB, free: 37.29 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.862/2.687, allocations: 181.5 MB / 0.8064 GB, free: 28.04 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01238/2.699, allocations: 8.468 MB / 0.8146 GB, free: 23.6 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009296/2.708, allocations: 7.028 MB / 0.8215 GB, free: 18.37 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2933/3.002, allocations: 49 MB / 0.8694 GB, free: 50.94 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.169e-05/3.002, allocations: 80.41 kB / 0.8694 GB, free: 50.9 MB / 266.7 MB Notification: Performance of pre-optimization done (n=460): time 9.708e-06/3.002, allocations: 0 / 0.8694 GB, free: 50.9 MB / 266.7 MB Notification: Performance of matching and sorting (n=510): time 0.08379/3.086, allocations: 35.3 MB / 0.9039 GB, free: 44.84 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/3.086, allocations: 228.2 kB / 0.9041 GB, free: 44.62 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01016/3.096, allocations: 5.845 MB / 0.9098 GB, free: 42.53 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001718/3.098, allocations: 29.08 kB / 0.9099 GB, free: 42.5 MB / 266.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Mechanics/MultiBody/Joints.mo:2345:5-2348:81:writable] Warning: The parameter universalSpherical.rodLength has fixed = false and a binding equation universalSpherical.rodLength = 1.048808848170152, which is probably redundant. The binding equation will be ignored, as it is expected for Modelica 3.1. Notification: Performance of collectInitialEqns (initialization): time 0.003057/3.101, allocations: 5.632 MB / 0.9154 GB, free: 38.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002816/3.104, allocations: 1.802 MB / 0.9171 GB, free: 36.6 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00153/3.105, allocations: 3.969 kB / 0.9171 GB, free: 36.6 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0006718/3.106, allocations: 0.8552 MB / 0.918 GB, free: 35.89 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01159/3.117, allocations: 8.197 MB / 0.926 GB, free: 28.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.141/3.258, allocations: 14.61 MB / 0.9402 GB, free: 40.36 MB / 266.7 MB Notification: It was not possible to analyze the given system symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.1174/3.376, allocations: 27.59 MB / 0.9672 GB, free: 40.19 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001883/3.376, allocations: 73.22 kB / 0.9672 GB, free: 40.19 MB / 266.7 MB Notification: Performance of matching and sorting (n=1670) (initialization): time 0.06/3.436, allocations: 25.06 MB / 0.9917 GB, free: 38.99 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/3.436, allocations: 11.31 kB / 0.9917 GB, free: 38.99 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004838/3.437, allocations: 248.7 kB / 0.992 GB, free: 38.99 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02588/3.463, allocations: 6.173 MB / 0.998 GB, free: 38.85 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01316/3.476, allocations: 2.981 MB / 1.001 GB, free: 38.51 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03097/3.507, allocations: 24.26 MB / 1.025 GB, free: 24.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0244/3.531, allocations: 2.181 MB / 1.027 GB, free: 23.02 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004289/3.536, allocations: 1.035 MB / 1.028 GB, free: 21.98 MB / 266.7 MB Warning: Assuming fixed start value for the following 1 variables: universalSpherical.rodLength:VARIABLE(min = 0.0 start = 1.048808848170152 unit = "m" fixed = false final = true ) "Length of rod (distance between origin of frame_a and origin of frame_b)" type: Real Warning: Assuming redundant initial conditions for the following 1 initial equations: j1.phi = $START.j1.phi Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1134 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1534): * Single equations (assignments): 1511 * Array equations: 21 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 1 {1 15} Notification: Performance of prepare postOptimizeDAE: time 0.005066/3.541, allocations: 0.7083 MB / 1.028 GB, free: 21.27 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001838/3.542, allocations: 0.5988 MB / 1.029 GB, free: 21 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1448/3.687, allocations: 14.7 MB / 1.043 GB, free: 40.89 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01942/3.707, allocations: 3.354 MB / 1.047 GB, free: 40.89 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.891e-05/3.707, allocations: 6.531 kB / 1.047 GB, free: 40.89 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001583/3.707, allocations: 25.36 kB / 1.047 GB, free: 40.89 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1179/3.825, allocations: 38.84 MB / 1.085 GB, free: 37.05 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.181e-05/3.825, allocations: 3.719 kB / 1.085 GB, free: 37.05 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005343/3.83, allocations: 0.7577 MB / 1.085 GB, free: 37.03 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01826/3.849, allocations: 3.964 MB / 1.089 GB, free: 36.42 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00182/3.851, allocations: 133.7 kB / 1.089 GB, free: 36.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01941/3.87, allocations: 15.66 MB / 1.105 GB, free: 28.71 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.707e-06/3.87, allocations: 4.875 kB / 1.105 GB, free: 28.71 MB / 266.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1606/4.031, allocations: 25.66 MB / 1.13 GB, free: 37.88 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005139/4.036, allocations: 2.028 MB / 1.132 GB, free: 37.79 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002406/4.038, allocations: 7.562 kB / 1.132 GB, free: 37.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01553/4.054, allocations: 1.845 MB / 1.133 GB, free: 37.79 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001294/4.055, allocations: 223.1 kB / 1.134 GB, free: 37.78 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001028/4.056, allocations: 380.5 kB / 1.134 GB, free: 37.78 MB / 266.7 MB Notification: Performance of sort global known variables: time 0.006472/4.063, allocations: 3.906 MB / 1.138 GB, free: 37.57 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0147/4.077, allocations: 2.12 MB / 1.14 GB, free: 37.56 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * 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 (395): * Single equations (assignments): 372 * Array equations: 21 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00126/4.079, allocations: 177.1 kB / 1.14 GB, free: 37.47 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.05021/4.129, allocations: 21.28 MB / 1.161 GB, free: 37.18 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.042e-05/4.129, allocations: 0 / 1.161 GB, free: 37.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.03478/4.164, allocations: 10.96 MB / 1.172 GB, free: 35.42 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005143/4.169, allocations: 0.5028 MB / 1.172 GB, free: 35.18 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04951/4.218, allocations: 19.77 MB / 1.191 GB, free: 26.27 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01842/4.237, allocations: 7.668 MB / 1.199 GB, free: 20.8 MB / 266.7 MB Notification: Performance of SimCode: time 1.142e-06/4.237, allocations: 0 / 1.199 GB, free: 20.8 MB / 266.7 MB Notification: Performance of Templates: time 0.4449/4.682, allocations: 152.6 MB / 1.348 GB, free: 21.23 MB / 266.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1)