Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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 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(ModelicaTest.MultiBody.FourbarVariants.JointUSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR") translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00173/0.00173, allocations: 116.4 kB / 17.08 MB, free: 5.832 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.002203/0.002203, allocations: 193.3 kB / 18.01 MB, free: 4.961 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.411/1.411, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.27/0.27, allocations: 43.53 MB / 314.8 MB, free: 472 kB / 254.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.002323/0.002323, allocations: 67.91 kB / 442.5 MB, free: 5.695 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.161/0.1634, allocations: 57.79 MB / 0.4885 GB, free: 11.83 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.021/0.1844, allocations: 17.8 MB / 0.5059 GB, free: 9.953 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01585/0.2004, allocations: 5.66 MB / 0.5114 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004864/0.2053, allocations: 107.8 kB / 0.5115 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01033/0.2157, allocations: 4.583 MB / 0.516 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01047/0.2262, allocations: 3.023 MB / 0.519 GB, free: 12.53 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00431/0.2306, allocations: 1.501 MB / 0.5204 GB, free: 11.03 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01492/0.2455, allocations: 8.616 MB / 0.5288 GB, free: 2.398 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3403/0.5858, allocations: 6.446 MB / 0.5351 GB, free: 6.68 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00731/0.5932, allocations: 3.036 MB / 0.5381 GB, free: 6.508 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009394/0.6026, allocations: 4.287 MB / 0.5423 GB, free: 6.09 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004111/0.6068, allocations: 0.6636 MB / 0.5429 GB, free: 6.09 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007734/0.6145, allocations: 1.845 MB / 0.5447 GB, free: 6.086 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007797/0.6224, allocations: 3.756 MB / 0.5484 GB, free: 5.727 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01066/0.6331, allocations: 4.222 MB / 0.5525 GB, free: 4.281 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02345/0.6565, allocations: 13.6 MB / 0.5658 GB, free: 14.95 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.247e-06/0.6566, allocations: 0 / 0.5658 GB, free: 14.95 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.6566, allocations: 0 / 0.5658 GB, free: 14.95 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006392/0.6573, allocations: 0 / 0.5658 GB, free: 14.95 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.03056/0.6878, allocations: 9.029 MB / 0.5746 GB, free: 9.074 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.6879, allocations: 12.73 kB / 0.5746 GB, free: 9.07 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0193/0.7072, allocations: 4.101 MB / 0.5786 GB, free: 6.973 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01625/0.7235, allocations: 5.38 MB / 0.5839 GB, free: 3.004 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008206/0.7244, allocations: 438.4 kB / 0.5843 GB, free: 2.641 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00486/0.7293, allocations: 0.5982 MB / 0.5849 GB, free: 2.113 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05458/0.7839, allocations: 20.63 MB / 0.605 GB, free: 12.69 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004858/0.7844, allocations: 77.38 kB / 0.6051 GB, free: 12.64 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003527/0.788, allocations: 272.6 kB / 0.6054 GB, free: 12.45 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006907/0.7949, allocations: 3.71 MB / 0.609 GB, free: 8.785 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04546/0.8404, allocations: 18.2 MB / 0.6268 GB, free: 6.883 MB / 478.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1269/0.9674, allocations: 74.29 MB / 0.6993 GB, free: 11.51 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02133/0.9888, allocations: 7.472 MB / 0.7066 GB, free: 3.793 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006959/0.9958, allocations: 4.105 MB / 0.7106 GB, free: 15.67 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03806/1.034, allocations: 18.21 MB / 0.7284 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.771e-05/1.034, allocations: 67.22 kB / 0.7285 GB, free: 12.81 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=335): time 9.187e-06/1.034, allocations: 0 / 0.7285 GB, free: 12.81 MB / 0.5762 GB Notification: Performance of matching and sorting (n=419): time 0.4542/1.488, allocations: 35.11 MB / 0.7628 GB, free: 200.7 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/1.488, allocations: 198.1 kB / 0.763 GB, free: 200.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01423/1.503, allocations: 6.511 MB / 0.7693 GB, free: 199.2 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.00102/1.504, allocations: 85.09 kB / 0.7694 GB, free: 199.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.004496/1.508, allocations: 5.373 MB / 0.7746 GB, free: 195 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.002739/1.511, allocations: 1.546 MB / 0.7762 GB, free: 193.9 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003972/1.515, allocations: 2.134 MB / 0.7782 GB, free: 192.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.904e-05/1.515, allocations: 303.1 kB / 0.7785 GB, free: 192.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007432/1.522, allocations: 4.334 MB / 0.7828 GB, free: 191.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01036/1.533, allocations: 10.28 MB / 0.7928 GB, free: 181.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01824/1.551, allocations: 15.68 MB / 0.8081 GB, free: 169.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003037/1.551, allocations: 58.12 kB / 0.8082 GB, free: 169.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1417) (initialization): time 0.03478/1.586, allocations: 16.35 MB / 0.8241 GB, free: 161.2 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003163/1.587, allocations: 103.8 kB / 0.8242 GB, free: 161.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004343/1.587, allocations: 208.3 kB / 0.8244 GB, free: 160.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007343/1.594, allocations: 2.369 MB / 0.8267 GB, free: 159.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008083/1.602, allocations: 2.466 MB / 0.8292 GB, free: 157.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01702/1.62, allocations: 12.74 MB / 0.8416 GB, free: 145.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008622/1.628, allocations: 0.5912 MB / 0.8422 GB, free: 145.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001816/1.63, allocations: 0.6031 MB / 0.8428 GB, free: 144.5 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 943 * Number of states: 0 () * Number of discrete variables: 49 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1316): * Single equations (assignments): 1309 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,52,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008191/1.638, allocations: 3.771 MB / 0.8464 GB, free: 140.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001825/1.64, allocations: 0.5862 MB / 0.847 GB, free: 140.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01668/1.657, allocations: 8.331 MB / 0.8551 GB, free: 131.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.985e-05/1.657, allocations: 60 kB / 0.8552 GB, free: 131.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.041e-05/1.657, allocations: 16 kB / 0.8552 GB, free: 131.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.114e-05/1.657, allocations: 19.92 kB / 0.8552 GB, free: 131.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0368/1.694, allocations: 18.85 MB / 0.8736 GB, free: 112.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.564e-05/1.694, allocations: 19.92 kB / 0.8737 GB, free: 112.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002805/1.697, allocations: 0.6275 MB / 0.8743 GB, free: 111.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006147/1.703, allocations: 1.803 MB / 0.876 GB, free: 110.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006192/1.703, allocations: 80 kB / 0.8761 GB, free: 110 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01465/1.718, allocations: 10.83 MB / 0.8867 GB, free: 99.05 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.248e-06/1.718, allocations: 19.94 kB / 0.8867 GB, free: 99.03 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02063/1.739, allocations: 12.47 MB / 0.8989 GB, free: 86.28 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0033/1.742, allocations: 1.157 MB / 0.9 GB, free: 85.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002012/1.744, allocations: 79.98 kB / 0.9001 GB, free: 85.02 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003809/1.748, allocations: 199.8 kB / 0.9003 GB, free: 84.82 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007663/1.749, allocations: 265.7 kB / 0.9005 GB, free: 84.56 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000342/1.749, allocations: 120.5 kB / 0.9007 GB, free: 84.45 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00835/1.758, allocations: 4.052 MB / 0.9046 GB, free: 80.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.7e-07/1.758, allocations: 0 / 0.9046 GB, free: 80.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01272/1.77, allocations: 1.957 MB / 0.9065 GB, free: 78.46 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 55 * Number of states: 2 (j2.s,j2.v) * 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 (331): * Single equations (assignments): 324 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 Backend phase and start with SimCode phase: time 0.001398/1.772, allocations: 285.8 kB / 0.9068 GB, free: 78.18 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01688/1.789, allocations: 10.17 MB / 0.9167 GB, free: 68.03 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.601e-05/1.789, allocations: 448 / 0.9167 GB, free: 68.03 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.005274/1.794, allocations: 3.394 MB / 0.92 GB, free: 64.62 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008188/1.802, allocations: 0.7985 MB / 0.9208 GB, free: 63.85 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0343/1.836, allocations: 18.49 MB / 0.9389 GB, free: 45.16 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007406/1.844, allocations: 5.573 MB / 0.9443 GB, free: 39.56 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00224/1.846, allocations: 499.4 kB / 0.9448 GB, free: 39.07 MB / 0.5919 GB Notification: Performance of SimCode: time 6.42e-07/1.846, allocations: 0 / 0.9448 GB, free: 39.07 MB / 0.5919 GB Notification: Performance of Templates: time 0.5543/2.401, allocations: 142.7 MB / 1.084 GB, free: 96.22 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1)