Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json 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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008034/0.008033, allocations: 94.06 kB / 15.73 MB, free: 6.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00166/0.00166, allocations: 195.1 kB / 16.68 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.463/1.463, allocations: 205.1 MB / 222.6 MB, free: 4.402 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 50.55 kB / 326.6 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09155/0.09275, allocations: 46.62 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01518/0.108, allocations: 15.07 MB / 388.2 MB, free: 2.188 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01185/0.1199, allocations: 4.82 MB / 393.1 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002815/0.1227, allocations: 91.75 kB / 393.1 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007017/0.1298, allocations: 3.169 MB / 396.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007459/0.1373, allocations: 2.56 MB / 398.9 MB, free: 7.512 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002644/0.14, allocations: 0.9866 MB / 399.9 MB, free: 6.523 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01091/0.1509, allocations: 6.643 MB / 406.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007225/0.1582, allocations: 4.35 MB / 410.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004101/0.1623, allocations: 2.231 MB / 413.1 MB, free: 9.207 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004839/0.1672, allocations: 3.244 MB / 416.3 MB, free: 5.953 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001688/0.1689, allocations: 488 kB / 416.8 MB, free: 5.477 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003834/0.1728, allocations: 1.486 MB / 418.3 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004084/0.1769, allocations: 2.871 MB / 421.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006855/0.1838, allocations: 3.258 MB / 424.4 MB, free: 13.83 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01436/0.1982, allocations: 10.48 MB / 434.9 MB, free: 3.309 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.1982, allocations: 0 / 434.9 MB, free: 3.309 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1982, allocations: 0 / 434.9 MB, free: 3.309 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003645/0.1986, allocations: 0 / 434.9 MB, free: 3.309 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01819/0.2168, allocations: 7.487 MB / 442.4 MB, free: 11.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.2168, allocations: 8.031 kB / 442.4 MB, free: 11.72 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01691/0.2338, allocations: 3.978 MB / 446.4 MB, free: 7.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01089/0.2447, allocations: 4.288 MB / 450.7 MB, free: 3.383 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002954/0.245, allocations: 316.4 kB / 451 MB, free: 3.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001777/0.2468, allocations: 431.6 kB / 451.4 MB, free: 2.648 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.263/0.5098, allocations: 15.71 MB / 467.1 MB, free: 59.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001833/0.5101, allocations: 58.28 kB / 467.2 MB, free: 59.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006275/0.5107, allocations: 207.7 kB / 467.4 MB, free: 59.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004688/0.5154, allocations: 3.215 MB / 470.6 MB, free: 59.24 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02424/0.5397, allocations: 14.12 MB / 484.7 MB, free: 49.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07009/0.6098, allocations: 57.6 MB / 0.5296 GB, free: 7.266 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01457/0.6244, allocations: 6.567 MB / 0.536 GB, free: 456 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005374/0.6298, allocations: 3.685 MB / 0.5396 GB, free: 12.74 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02414/0.654, allocations: 14.67 MB / 0.5539 GB, free: 13.53 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.02e-05/0.6541, allocations: 64.55 kB / 0.554 GB, free: 13.46 MB / 430.1 MB Notification: Performance of pre-optimization done (n=289): time 6.562e-06/0.6541, allocations: 4 kB / 0.554 GB, free: 13.45 MB / 430.1 MB Notification: Performance of matching and sorting (n=339): time 0.1531/0.8072, allocations: 42.71 MB / 0.5957 GB, free: 2.699 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001331/0.8074, allocations: 217.9 kB / 0.5959 GB, free: 2.441 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008078/0.8155, allocations: 5.519 MB / 0.6013 GB, free: 12.94 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001046/0.8166, allocations: 73.7 kB / 0.6014 GB, free: 12.86 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00381/0.8204, allocations: 4.533 MB / 0.6058 GB, free: 8.285 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002174/0.8226, allocations: 1.314 MB / 0.6071 GB, free: 6.961 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003081/0.8257, allocations: 1.87 MB / 0.6089 GB, free: 5.078 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.8258, allocations: 305.1 kB / 0.6092 GB, free: 4.777 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006782/0.8326, allocations: 4.804 MB / 0.6139 GB, free: 15.96 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01088/0.8435, allocations: 9.814 MB / 0.6235 GB, free: 3.703 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2718/1.115, allocations: 15.56 MB / 0.6387 GB, free: 144.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001736/1.116, allocations: 49.81 kB / 0.6387 GB, free: 144.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04588/1.161, allocations: 19.58 MB / 0.6578 GB, free: 138.6 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001054/1.162, allocations: 82.69 kB / 0.6579 GB, free: 138.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002002/1.162, allocations: 174.6 kB / 0.6581 GB, free: 138.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02227/1.184, allocations: 5.945 MB / 0.6639 GB, free: 137.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007422/1.191, allocations: 2.105 MB / 0.6659 GB, free: 136.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02736/1.219, allocations: 26.16 MB / 0.6915 GB, free: 113.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00788/1.227, allocations: 0.5536 MB / 0.692 GB, free: 112.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001895/1.229, allocations: 0.5181 MB / 0.6925 GB, free: 112.2 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (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.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1098): * Single equations (assignments): 1090 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006694/1.235, allocations: 3.098 MB / 0.6956 GB, free: 109.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001646/1.237, allocations: 0.5182 MB / 0.6961 GB, free: 109 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03118/1.268, allocations: 12.93 MB / 0.7087 GB, free: 96.01 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.984e-05/1.268, allocations: 61.64 kB / 0.7088 GB, free: 95.95 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.313e-05/1.269, allocations: 13.09 kB / 0.7088 GB, free: 95.94 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.044e-05/1.269, allocations: 15.95 kB / 0.7088 GB, free: 95.92 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05178/1.32, allocations: 24.51 MB / 0.7327 GB, free: 71.01 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.889e-05/1.321, allocations: 8 kB / 0.7327 GB, free: 71 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003282/1.324, allocations: 0.5778 MB / 0.7333 GB, free: 70.43 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01876/1.343, allocations: 4.973 MB / 0.7382 GB, free: 65.45 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009089/1.344, allocations: 56 kB / 0.7382 GB, free: 65.39 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02373/1.367, allocations: 21.36 MB / 0.7591 GB, free: 43.84 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.042e-06/1.367, allocations: 11.94 kB / 0.7591 GB, free: 43.82 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03446/1.402, allocations: 17.49 MB / 0.7762 GB, free: 26.27 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003768/1.406, allocations: 1.267 MB / 0.7774 GB, free: 24.98 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001678/1.407, allocations: 52 kB / 0.7774 GB, free: 24.93 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004128/1.411, allocations: 263.5 kB / 0.7777 GB, free: 24.67 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001138/1.413, allocations: 204.8 kB / 0.7779 GB, free: 24.47 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005255/1.413, allocations: 83.83 kB / 0.778 GB, free: 24.39 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006381/1.42, allocations: 3.418 MB / 0.7813 GB, free: 20.99 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.4e-07/1.42, allocations: 0 / 0.7813 GB, free: 20.99 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.009002/1.429, allocations: 1.758 MB / 0.783 GB, free: 19.23 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009799/1.43, allocations: 210 kB / 0.7832 GB, free: 19.02 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01625/1.446, allocations: 10.97 MB / 0.7939 GB, free: 8.059 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.36e-05/1.446, allocations: 4 kB / 0.7939 GB, free: 8.055 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005858/1.452, allocations: 4.115 MB / 0.798 GB, free: 3.926 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005706/1.458, allocations: 0.6071 MB / 0.7986 GB, free: 3.336 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2967/1.754, allocations: 16.26 MB / 0.8144 GB, free: 163.6 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01136/1.766, allocations: 4.631 MB / 0.819 GB, free: 162.8 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.009404/1.775, allocations: 2.968 MB / 0.8219 GB, free: 162.7 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001977/1.777, allocations: 356.3 kB / 0.8222 GB, free: 162.7 MB / 0.4981 GB Notification: Performance of SimCode: time 1.784e-06/1.777, allocations: 0 / 0.8222 GB, free: 162.7 MB / 0.4981 GB Notification: Performance of Templates: time 0.1271/1.904, allocations: 76.94 MB / 0.8973 GB, free: 104 MB / 0.4981 GB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1)