Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR") translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009512/0.0009513, allocations: 200.7 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 226.6 MB / 243.1 MB, free: 14.29 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007907/0.0007907, allocations: 103.3 kB / 295.1 MB, free: 10.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1922/0.1922, allocations: 44.84 MB / 392 MB, free: 9.309 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000249/0.000249, allocations: 8 kB / 464.7 MB, free: 49.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1004, allocations: 62.95 MB / 0.5153 GB, free: 2.758 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.2302/0.3307, allocations: 57.17 MB / 0.5711 GB, free: 4.262 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02723/0.358, allocations: 12.61 MB / 0.5835 GB, free: 7.727 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01024/0.3683, allocations: 271.3 kB / 0.5837 GB, free: 7.461 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008591/0.3769, allocations: 2.97 MB / 0.5866 GB, free: 4.477 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02085/0.3978, allocations: 8.976 MB / 0.5954 GB, free: 11.47 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004355/0.4021, allocations: 1.283 MB / 0.5966 GB, free: 10.18 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.04261/0.4448, allocations: 37.44 MB / 0.6332 GB, free: 4.699 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01102/0.4558, allocations: 7.834 MB / 0.6409 GB, free: 12.79 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003837/0.4597, allocations: 2.421 MB / 0.6432 GB, free: 10.36 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004378/0.4641, allocations: 3.969 MB / 0.6471 GB, free: 6.379 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008289/0.4649, allocations: 292 kB / 0.6474 GB, free: 6.094 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002389/0.4673, allocations: 1.315 MB / 0.6487 GB, free: 4.777 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002474/0.4698, allocations: 3.257 MB / 0.6518 GB, free: 1.512 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001392/0.4712, allocations: 1.509 MB / 0.6533 GB, free: 15.99 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008828/0.4801, allocations: 10.45 MB / 0.6635 GB, free: 5.516 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.4801, allocations: 0 / 0.6635 GB, free: 5.516 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.195e-06/0.4801, allocations: 4 kB / 0.6635 GB, free: 5.512 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003295/0.4804, allocations: 0 / 0.6635 GB, free: 5.512 MB / 474.7 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.01494/0.4954, allocations: 7.536 MB / 0.6709 GB, free: 13.89 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.4954, allocations: 8.031 kB / 0.6709 GB, free: 13.88 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01673/0.5122, allocations: 4.205 MB / 0.675 GB, free: 9.66 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01043/0.5226, allocations: 4.897 MB / 0.6798 GB, free: 4.68 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003582/0.523, allocations: 438.9 kB / 0.6802 GB, free: 4.25 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002084/0.5251, allocations: 0.5971 MB / 0.6808 GB, free: 3.652 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03521/0.5603, allocations: 20.64 MB / 0.7009 GB, free: 13.87 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002589/0.5607, allocations: 79.25 kB / 0.701 GB, free: 13.79 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009669/0.5616, allocations: 271.7 kB / 0.7013 GB, free: 13.53 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00506/0.5667, allocations: 3.714 MB / 0.7049 GB, free: 9.805 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4459/1.013, allocations: 18.17 MB / 0.7226 GB, free: 155.8 MB / 0.5105 GB 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.07953/1.092, allocations: 74.51 MB / 0.7954 GB, free: 99.45 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01477/1.107, allocations: 7.439 MB / 0.8027 GB, free: 91.77 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004532/1.112, allocations: 4.101 MB / 0.8067 GB, free: 87.64 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02191/1.134, allocations: 18.17 MB / 0.8244 GB, free: 68.91 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.312e-05/1.134, allocations: 64.59 kB / 0.8245 GB, free: 68.83 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=335): time 6.573e-06/1.134, allocations: 0 / 0.8245 GB, free: 68.83 MB / 0.5105 GB Notification: Performance of matching and sorting (n=419): time 0.09954/1.233, allocations: 36.16 MB / 0.8598 GB, free: 32.55 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.943e-05/1.233, allocations: 192.9 kB / 0.86 GB, free: 32.32 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0074/1.241, allocations: 6.439 MB / 0.8663 GB, free: 25.88 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007537/1.241, allocations: 90.66 kB / 0.8663 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002501/1.244, allocations: 5.367 MB / 0.8716 GB, free: 20.42 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001427/1.245, allocations: 1.543 MB / 0.8731 GB, free: 18.89 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005125/1.246, allocations: 214.3 kB / 0.8733 GB, free: 18.68 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000391/1.246, allocations: 0.7687 MB / 0.874 GB, free: 17.91 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005182/1.252, allocations: 4.292 MB / 0.8782 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007292/1.259, allocations: 10.24 MB / 0.8882 GB, free: 496 kB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01024/1.269, allocations: 6.483 MB / 0.8946 GB, free: 9.992 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001409/1.269, allocations: 60 kB / 0.8946 GB, free: 9.934 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1417) (initialization): time 0.03281/1.302, allocations: 16.26 MB / 0.9105 GB, free: 9.637 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001217/1.302, allocations: 92 kB / 0.9106 GB, free: 9.547 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002102/1.302, allocations: 216.1 kB / 0.9108 GB, free: 9.336 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007307/1.31, allocations: 2.4 MB / 0.9131 GB, free: 6.934 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007905/1.318, allocations: 2.46 MB / 0.9155 GB, free: 4.469 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2211/1.539, allocations: 11.9 MB / 0.9272 GB, free: 167 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007183/1.546, allocations: 0.5851 MB / 0.9277 GB, free: 166.9 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001658/1.548, allocations: 0.6002 MB / 0.9283 GB, free: 166.8 MB / 0.5418 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006359/1.554, allocations: 3.774 MB / 0.932 GB, free: 165.4 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00102/1.555, allocations: 0.5929 MB / 0.9326 GB, free: 165.4 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01657/1.572, allocations: 8.302 MB / 0.9407 GB, free: 162.4 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.075e-05/1.572, allocations: 64.25 kB / 0.9407 GB, free: 162.4 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.982e-05/1.572, allocations: 12.89 kB / 0.9408 GB, free: 162.4 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.904e-05/1.572, allocations: 19.7 kB / 0.9408 GB, free: 162.4 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03038/1.602, allocations: 18.93 MB / 0.9593 GB, free: 155.2 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-05/1.602, allocations: 13.12 kB / 0.9593 GB, free: 155.2 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00244/1.605, allocations: 0.6267 MB / 0.9599 GB, free: 155.1 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005799/1.611, allocations: 1.808 MB / 0.9617 GB, free: 154.8 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003389/1.611, allocations: 84.36 kB / 0.9617 GB, free: 154.8 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01293/1.624, allocations: 10 MB / 0.9715 GB, free: 150.1 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.185e-06/1.624, allocations: 15.38 kB / 0.9715 GB, free: 150.1 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01719/1.641, allocations: 12.44 MB / 0.9837 GB, free: 140.8 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001347/1.643, allocations: 0.6374 MB / 0.9843 GB, free: 140.2 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000693/1.643, allocations: 75.98 kB / 0.9844 GB, free: 140.1 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002291/1.646, allocations: 204.6 kB / 0.9846 GB, free: 139.9 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004355/1.646, allocations: 270.5 kB / 0.9848 GB, free: 139.7 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002211/1.646, allocations: 113.5 kB / 0.9849 GB, free: 139.6 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.004588/1.651, allocations: 3.989 MB / 0.9888 GB, free: 135.6 MB / 0.5418 GB Notification: Performance of sort global known variables: time 2.51e-07/1.651, allocations: 0 / 0.9888 GB, free: 135.6 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.006819/1.658, allocations: 1.95 MB / 0.9907 GB, free: 133.7 MB / 0.5418 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005787/1.658, allocations: 278.9 kB / 0.991 GB, free: 133.4 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.01225/1.671, allocations: 10.07 MB / 1.001 GB, free: 123.4 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 9.447e-06/1.671, allocations: 1.203 kB / 1.001 GB, free: 123.4 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.004044/1.675, allocations: 3.379 MB / 1.004 GB, free: 120 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004065/1.679, allocations: 0.7646 MB / 1.005 GB, free: 119.3 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02637/1.705, allocations: 21.69 MB / 1.026 GB, free: 97.47 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005248/1.71, allocations: 5.565 MB / 1.031 GB, free: 91.87 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001819/1.712, allocations: 491.4 kB / 1.032 GB, free: 91.39 MB / 0.5418 GB Notification: Performance of SimCode: time 8.72e-07/1.712, allocations: 0 / 1.032 GB, free: 91.39 MB / 0.5418 GB Notification: Performance of Templates: time 0.3648/2.077, allocations: 140.4 MB / 1.169 GB, free: 163.6 MB / 0.5574 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1)