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.001217/0.001217, allocations: 113.6 kB / 17.08 MB, free: 6.016 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.001203/0.001203, allocations: 198.3 kB / 18.01 MB, free: 5.094 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.307/1.307, 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.1904/0.1904, allocations: 43.52 MB / 314.8 MB, free: 460 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.00131/0.00131, allocations: 67.88 kB / 442.5 MB, free: 5.688 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1047, allocations: 57.78 MB / 0.4885 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.01592/0.1206, allocations: 17.8 MB / 0.5059 GB, free: 9.941 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01027/0.1309, allocations: 5.652 MB / 0.5114 GB, free: 4.27 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002474/0.1334, allocations: 111.7 kB / 0.5115 GB, free: 4.16 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008491/0.142, allocations: 4.579 MB / 0.516 GB, free: 15.56 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007124/0.1491, allocations: 3.035 MB / 0.519 GB, free: 12.52 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003125/0.1523, allocations: 1.497 MB / 0.5204 GB, free: 11.02 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01031/0.1626, allocations: 8.62 MB / 0.5288 GB, free: 2.383 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2431/0.4057, allocations: 6.444 MB / 0.5351 GB, free: 6.609 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005513/0.4113, allocations: 3.031 MB / 0.5381 GB, free: 6.441 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007996/0.4193, allocations: 4.291 MB / 0.5423 GB, free: 6.02 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003364/0.4227, allocations: 0.6633 MB / 0.5429 GB, free: 6.02 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006708/0.4294, allocations: 1.843 MB / 0.5447 GB, free: 6.016 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00675/0.4362, allocations: 3.76 MB / 0.5484 GB, free: 5.652 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009688/0.4459, allocations: 4.214 MB / 0.5525 GB, free: 4.211 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01804/0.464, allocations: 13.59 MB / 0.5658 GB, free: 14.89 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.464, allocations: 0 / 0.5658 GB, free: 14.89 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.464, allocations: 0 / 0.5658 GB, free: 14.89 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005339/0.4646, allocations: 0 / 0.5658 GB, free: 14.89 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.02397/0.4885, allocations: 9.031 MB / 0.5746 GB, free: 9.02 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.4886, allocations: 14.2 kB / 0.5746 GB, free: 9.016 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01629/0.5049, allocations: 4.103 MB / 0.5786 GB, free: 6.918 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01221/0.5171, allocations: 5.379 MB / 0.5839 GB, free: 2.949 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004438/0.5176, allocations: 440.8 kB / 0.5843 GB, free: 2.586 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003003/0.5206, allocations: 0.5956 MB / 0.5849 GB, free: 2.059 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04145/0.5621, allocations: 20.63 MB / 0.605 GB, free: 12.63 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002744/0.5624, allocations: 73.91 kB / 0.6051 GB, free: 12.59 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001715/0.5642, allocations: 269.5 kB / 0.6054 GB, free: 12.39 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005562/0.5697, allocations: 3.716 MB / 0.609 GB, free: 8.727 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0376/0.6074, allocations: 18.2 MB / 0.6268 GB, free: 6.836 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.0996/0.707, allocations: 74.31 MB / 0.6993 GB, free: 11.44 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01813/0.7252, allocations: 7.459 MB / 0.7066 GB, free: 3.734 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005747/0.731, allocations: 4.108 MB / 0.7106 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02868/0.7597, allocations: 18.21 MB / 0.7284 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.282e-05/0.7598, allocations: 68.58 kB / 0.7285 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=335): time 6.782e-06/0.7598, allocations: 0 / 0.7285 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of matching and sorting (n=419): time 0.3658/1.126, allocations: 35.1 MB / 0.7628 GB, free: 200.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.407e-05/1.126, allocations: 197 kB / 0.763 GB, free: 200.6 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01111/1.137, allocations: 6.507 MB / 0.7693 GB, free: 199.2 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0008265/1.138, allocations: 86.91 kB / 0.7694 GB, free: 199.2 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.005179/1.143, allocations: 5.369 MB / 0.7746 GB, free: 195.1 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.002233/1.145, allocations: 1.54 MB / 0.7761 GB, free: 193.9 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003506/1.149, allocations: 2.136 MB / 0.7782 GB, free: 192.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.527e-05/1.149, allocations: 304.7 kB / 0.7785 GB, free: 192.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006612/1.155, allocations: 4.337 MB / 0.7828 GB, free: 191.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009103/1.164, allocations: 10.28 MB / 0.7928 GB, free: 181.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0145/1.179, allocations: 15.67 MB / 0.8081 GB, free: 169.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001608/1.179, allocations: 58.66 kB / 0.8082 GB, free: 169.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1417) (initialization): time 0.02933/1.209, allocations: 16.36 MB / 0.8241 GB, free: 161.2 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002284/1.209, allocations: 95.28 kB / 0.8242 GB, free: 161.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003017/1.209, allocations: 208.1 kB / 0.8244 GB, free: 160.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006858/1.216, allocations: 2.372 MB / 0.8267 GB, free: 159.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007646/1.224, allocations: 2.467 MB / 0.8291 GB, free: 157.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01655/1.24, allocations: 12.74 MB / 0.8416 GB, free: 145.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00885/1.249, allocations: 0.5871 MB / 0.8422 GB, free: 145.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001942/1.251, allocations: 0.5976 MB / 0.8427 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.008304/1.259, allocations: 3.774 MB / 0.8464 GB, free: 140.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001822/1.261, allocations: 0.5879 MB / 0.847 GB, free: 140.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0172/1.278, allocations: 8.329 MB / 0.8551 GB, free: 131.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.39e-05/1.279, allocations: 66.03 kB / 0.8552 GB, free: 131.6 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.985e-05/1.279, allocations: 12 kB / 0.8552 GB, free: 131.6 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.608e-05/1.279, allocations: 15.94 kB / 0.8552 GB, free: 131.6 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03759/1.316, allocations: 18.85 MB / 0.8736 GB, free: 112.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.098e-05/1.316, allocations: 16.03 kB / 0.8737 GB, free: 112.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002701/1.319, allocations: 0.624 MB / 0.8743 GB, free: 111.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005801/1.325, allocations: 1.809 MB / 0.876 GB, free: 110 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006487/1.326, allocations: 83.98 kB / 0.8761 GB, free: 109.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01343/1.339, allocations: 10.83 MB / 0.8867 GB, free: 98.99 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.658e-06/1.339, allocations: 23.88 kB / 0.8867 GB, free: 98.97 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01776/1.357, allocations: 12.46 MB / 0.8989 GB, free: 86.22 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003111/1.36, allocations: 1.161 MB / 0.9 GB, free: 85.04 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001376/1.361, allocations: 79.36 kB / 0.9001 GB, free: 84.96 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002985/1.364, allocations: 203.7 kB / 0.9003 GB, free: 84.76 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005104/1.365, allocations: 269.7 kB / 0.9005 GB, free: 84.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002362/1.365, allocations: 112 kB / 0.9006 GB, free: 84.39 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.005466/1.371, allocations: 4.052 MB / 0.9046 GB, free: 80.34 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.4e-07/1.371, allocations: 1.594 kB / 0.9046 GB, free: 80.34 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008935/1.38, allocations: 1.955 MB / 0.9065 GB, free: 78.4 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.0008329/1.38, allocations: 294.5 kB / 0.9068 GB, free: 78.12 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01364/1.394, allocations: 10.17 MB / 0.9167 GB, free: 67.96 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.33e-05/1.394, allocations: 0.6875 kB / 0.9167 GB, free: 67.96 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004263/1.398, allocations: 3.387 MB / 0.92 GB, free: 64.56 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00501/1.403, allocations: 0.8099 MB / 0.9208 GB, free: 63.77 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02498/1.428, allocations: 18.47 MB / 0.9389 GB, free: 45.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004993/1.433, allocations: 5.581 MB / 0.9443 GB, free: 39.49 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00184/1.435, allocations: 495.4 kB / 0.9448 GB, free: 39 MB / 0.5919 GB Notification: Performance of SimCode: time 7.81e-07/1.435, allocations: 0 / 0.9448 GB, free: 39 MB / 0.5919 GB Notification: Performance of Templates: time 0.3874/1.823, allocations: 143.9 MB / 1.085 GB, free: 94.99 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)