Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR") translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_4.0.0_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.001222/0.001222, allocations: 107.7 kB / 18.45 MB, free: 4.621 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.001222/0.001222, allocations: 184.1 kB / 19.38 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 222.9 MB / 243.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2085/0.2085, allocations: 44.18 MB / 337.4 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 67.89 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3211/0.3222, allocations: 60.82 MB / 0.5196 GB, free: 3.859 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.01893/0.3412, allocations: 17.68 MB / 0.5368 GB, free: 6.828 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01326/0.3545, allocations: 5.69 MB / 0.5424 GB, free: 2.348 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003824/0.3584, allocations: 111.8 kB / 0.5425 GB, free: 2.328 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008851/0.3672, allocations: 4.579 MB / 0.547 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008139/0.3755, allocations: 3.017 MB / 0.5499 GB, free: 13.03 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003459/0.3789, allocations: 1.486 MB / 0.5514 GB, free: 11.54 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01146/0.3904, allocations: 8.759 MB / 0.5599 GB, free: 2.773 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008215/0.3987, allocations: 6.447 MB / 0.5662 GB, free: 12.25 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004784/0.4035, allocations: 3.014 MB / 0.5692 GB, free: 9.23 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006003/0.4095, allocations: 4.265 MB / 0.5733 GB, free: 4.953 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001936/0.4114, allocations: 0.6641 MB / 0.574 GB, free: 4.289 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00453/0.416, allocations: 1.857 MB / 0.5758 GB, free: 2.43 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004547/0.4205, allocations: 3.749 MB / 0.5794 GB, free: 14.67 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006742/0.4273, allocations: 4.211 MB / 0.5836 GB, free: 10.44 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01554/0.4429, allocations: 13.58 MB / 0.5968 GB, free: 12.81 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/0.4429, allocations: 0 / 0.5968 GB, free: 12.81 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4429, allocations: 4 kB / 0.5968 GB, free: 12.8 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004427/0.4434, allocations: 0 / 0.5968 GB, free: 12.8 MB / 462.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.02089/0.4643, allocations: 9.01 MB / 0.6056 GB, free: 3.707 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.4643, allocations: 12.03 kB / 0.6056 GB, free: 3.695 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01687/0.4812, allocations: 4.104 MB / 0.6096 GB, free: 15.57 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01077/0.492, allocations: 5.181 MB / 0.6147 GB, free: 10.31 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004158/0.4925, allocations: 434.9 kB / 0.6151 GB, free: 9.883 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002286/0.4948, allocations: 0.5971 MB / 0.6157 GB, free: 9.285 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03687/0.5316, allocations: 20.62 MB / 0.6358 GB, free: 3.523 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002724/0.5319, allocations: 83.23 kB / 0.6359 GB, free: 3.441 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00154/0.5335, allocations: 267.7 kB / 0.6362 GB, free: 3.18 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005515/0.539, allocations: 3.722 MB / 0.6398 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03536/0.5744, allocations: 18.19 MB / 0.6576 GB, free: 13.24 MB / 0.5137 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.5975/1.172, allocations: 74.29 MB / 0.7301 GB, free: 120.4 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01708/1.189, allocations: 7.446 MB / 0.7374 GB, free: 119.1 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005274/1.194, allocations: 4.114 MB / 0.7414 GB, free: 118.5 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02305/1.217, allocations: 18.21 MB / 0.7592 GB, free: 109.5 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/1.218, allocations: 64.06 kB / 0.7592 GB, free: 109.4 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=335): time 7.224e-06/1.218, allocations: 3.719 kB / 0.7592 GB, free: 109.4 MB / 0.5607 GB Notification: Performance of matching and sorting (n=419): time 0.1094/1.327, allocations: 35.03 MB / 0.7934 GB, free: 81.46 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.202e-05/1.327, allocations: 192.9 kB / 0.7936 GB, free: 81.23 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009134/1.336, allocations: 6.466 MB / 0.7999 GB, free: 74.77 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0007404/1.337, allocations: 84.98 kB / 0.8 GB, free: 74.68 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002854/1.34, allocations: 5.363 MB / 0.8053 GB, free: 69.32 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.00167/1.342, allocations: 1.545 MB / 0.8068 GB, free: 67.79 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004438/1.346, allocations: 2.142 MB / 0.8089 GB, free: 65.64 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 3.96e-05/1.346, allocations: 301.1 kB / 0.8092 GB, free: 65.34 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006043/1.352, allocations: 4.327 MB / 0.8134 GB, free: 61.01 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008921/1.361, allocations: 10.29 MB / 0.8234 GB, free: 47.92 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01504/1.376, allocations: 15.67 MB / 0.8387 GB, free: 29.52 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001797/1.376, allocations: 60 kB / 0.8388 GB, free: 29.46 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1417) (initialization): time 0.02972/1.406, allocations: 16.36 MB / 0.8548 GB, free: 13.07 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002179/1.406, allocations: 92 kB / 0.8549 GB, free: 12.98 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003205/1.407, allocations: 208.9 kB / 0.8551 GB, free: 12.78 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007182/1.414, allocations: 2.368 MB / 0.8574 GB, free: 10.41 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007785/1.422, allocations: 2.456 MB / 0.8598 GB, free: 7.953 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01848/1.44, allocations: 12.75 MB / 0.8722 GB, free: 11.05 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008122/1.448, allocations: 0.5929 MB / 0.8728 GB, free: 10.45 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002/1.45, allocations: 0.5937 MB / 0.8734 GB, free: 9.859 MB / 0.5763 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.007507/1.458, allocations: 3.769 MB / 0.8771 GB, free: 6.078 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001543/1.459, allocations: 0.5901 MB / 0.8776 GB, free: 5.48 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01911/1.479, allocations: 8.328 MB / 0.8858 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001095/1.479, allocations: 63.42 kB / 0.8858 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-05/1.479, allocations: 15.94 kB / 0.8858 GB, free: 13.03 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.719e-05/1.479, allocations: 19.92 kB / 0.8859 GB, free: 13.01 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0443/1.523, allocations: 18.84 MB / 0.9043 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.628e-05/1.523, allocations: 12 kB / 0.9043 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003052/1.526, allocations: 0.6259 MB / 0.9049 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006807/1.533, allocations: 1.803 MB / 0.9066 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007155/1.534, allocations: 86.09 kB / 0.9067 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01746/1.551, allocations: 10.83 MB / 0.9173 GB, free: 12.39 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.596e-05/1.551, allocations: 23.88 kB / 0.9173 GB, free: 12.36 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02458/1.576, allocations: 12.46 MB / 0.9295 GB, free: 15.62 MB / 0.6388 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001736/1.578, allocations: 0.6262 MB / 0.9301 GB, free: 14.97 MB / 0.6388 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001725/1.58, allocations: 75.98 kB / 0.9302 GB, free: 14.9 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004597/1.584, allocations: 203.7 kB / 0.9304 GB, free: 14.7 MB / 0.6388 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001212/1.585, allocations: 268.1 kB / 0.9306 GB, free: 14.44 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006577/1.586, allocations: 112 kB / 0.9307 GB, free: 14.33 MB / 0.6388 GB Notification: Performance of sorting global known variables: time 0.008393/1.594, allocations: 4.024 MB / 0.9347 GB, free: 10.31 MB / 0.6388 GB Notification: Performance of sort global known variables: time 4e-07/1.595, allocations: 0 / 0.9347 GB, free: 10.31 MB / 0.6388 GB Notification: Performance of remove unused functions: time 0.01117/1.606, allocations: 1.951 MB / 0.9366 GB, free: 8.371 MB / 0.6388 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.001414/1.607, allocations: 291.4 kB / 0.9368 GB, free: 8.09 MB / 0.6388 GB Notification: Performance of simCode: created initialization part: time 0.01741/1.625, allocations: 10.17 MB / 0.9468 GB, free: 13.94 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.338e-05/1.625, allocations: 4 kB / 0.9468 GB, free: 13.93 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.006156/1.631, allocations: 3.397 MB / 0.9501 GB, free: 10.52 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006932/1.638, allocations: 0.795 MB / 0.9509 GB, free: 9.727 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3137/1.952, allocations: 18.44 MB / 0.9689 GB, free: 236.3 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009911/1.961, allocations: 5.564 MB / 0.9743 GB, free: 235.4 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003206/1.965, allocations: 496.3 kB / 0.9748 GB, free: 235.4 MB / 0.6544 GB Notification: Performance of SimCode: time 1.383e-06/1.965, allocations: 0 / 0.9748 GB, free: 235.4 MB / 0.6544 GB Notification: Performance of Templates: time 0.1673/2.132, allocations: 142.5 MB / 1.114 GB, free: 112.5 MB / 0.6544 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1)