Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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.SphericalSpherical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00718/0.00718, allocations: 99.81 kB / 15.73 MB, free: 6.062 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.001656/0.001656, allocations: 194.9 kB / 16.67 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.542/1.542, allocations: 205.1 MB / 222.6 MB, free: 4.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3168/0.3168, allocations: 38 MB / 307.9 MB, free: 10.09 MB / 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: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002431/0.002432, allocations: 76.56 kB / 433 MB, free: 5.422 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3533/0.3558, allocations: 56.46 MB / 489.4 MB, free: 19.95 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01165/0.3675, allocations: 12.1 MB / 0.4898 GB, free: 11.35 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01075/0.3782, allocations: 4.32 MB / 0.494 GB, free: 8.469 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004055/0.3823, allocations: 72.53 kB / 0.4941 GB, free: 8.457 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005831/0.3882, allocations: 2.738 MB / 0.4968 GB, free: 7.176 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008319/0.3966, allocations: 2.02 MB / 0.4987 GB, free: 6.238 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002913/0.3995, allocations: 0.9084 MB / 0.4996 GB, free: 5.734 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01048/0.41, allocations: 5.254 MB / 0.5047 GB, free: 2.895 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004819/0.4149, allocations: 3.365 MB / 0.508 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004239/0.4192, allocations: 1.737 MB / 0.5097 GB, free: 15.91 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004794/0.424, allocations: 2.53 MB / 0.5122 GB, free: 14.39 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001482/0.4255, allocations: 385.1 kB / 0.5126 GB, free: 14.39 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003503/0.429, allocations: 1.398 MB / 0.5139 GB, free: 13.85 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002644/0.4317, allocations: 2.194 MB / 0.5161 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003685/0.4354, allocations: 2.447 MB / 0.5185 GB, free: 9.965 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01208/0.4475, allocations: 7.944 MB / 0.5262 GB, free: 1.992 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.794e-06/0.4475, allocations: 0 / 0.5262 GB, free: 1.992 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4475, allocations: 4 kB / 0.5262 GB, free: 1.988 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002601/0.4478, allocations: 0 / 0.5262 GB, free: 1.988 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01659/0.4644, allocations: 5.664 MB / 0.5318 GB, free: 12.24 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/0.4645, allocations: 15.89 kB / 0.5318 GB, free: 12.22 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01141/0.4759, allocations: 2.509 MB / 0.5342 GB, free: 9.707 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01078/0.4867, allocations: 3.529 MB / 0.5377 GB, free: 6.121 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002689/0.487, allocations: 247.4 kB / 0.5379 GB, free: 5.879 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001777/0.4888, allocations: 331.7 kB / 0.5382 GB, free: 5.555 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02278/0.5116, allocations: 10.89 MB / 0.5489 GB, free: 9.926 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001998/0.5119, allocations: 47.64 kB / 0.5489 GB, free: 9.879 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007496/0.5126, allocations: 155.8 kB / 0.549 GB, free: 9.727 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003373/0.516, allocations: 1.99 MB / 0.551 GB, free: 7.73 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02056/0.5366, allocations: 9.452 MB / 0.5602 GB, free: 14.26 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06251/0.5991, allocations: 41.15 MB / 0.6004 GB, free: 3.895 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01156/0.6107, allocations: 4.27 MB / 0.6046 GB, free: 15.48 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002925/0.6137, allocations: 1.915 MB / 0.6064 GB, free: 13.56 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01369/0.6274, allocations: 7.643 MB / 0.6139 GB, free: 5.543 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.082e-05/0.6276, allocations: 51.56 kB / 0.614 GB, free: 5.484 MB / 494.1 MB Notification: Performance of pre-optimization done (n=180): time 7.634e-06/0.6276, allocations: 0 / 0.614 GB, free: 5.484 MB / 494.1 MB Notification: Performance of matching and sorting (n=236): time 0.4442/1.072, allocations: 41.21 MB / 0.6542 GB, free: 121.7 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/1.072, allocations: 206.5 kB / 0.6544 GB, free: 121.5 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006979/1.079, allocations: 4.341 MB / 0.6586 GB, free: 120 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0006616/1.08, allocations: 62.33 kB / 0.6587 GB, free: 120 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002235/1.082, allocations: 3.295 MB / 0.6619 GB, free: 117.8 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001426/1.083, allocations: 0.9281 MB / 0.6628 GB, free: 117.1 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002184/1.085, allocations: 1.355 MB / 0.6641 GB, free: 116.4 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.802e-05/1.086, allocations: 309 kB / 0.6644 GB, free: 116.1 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005089/1.091, allocations: 3.622 MB / 0.668 GB, free: 114.8 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007642/1.098, allocations: 7.299 MB / 0.6751 GB, free: 107.8 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01226/1.111, allocations: 11.63 MB / 0.6865 GB, free: 98.39 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001385/1.111, allocations: 34.38 kB / 0.6865 GB, free: 98.39 MB / 0.4981 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03597/1.147, allocations: 16.22 MB / 0.7023 GB, free: 85.6 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.734e-05/1.147, allocations: 63.44 kB / 0.7024 GB, free: 85.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001037/1.147, allocations: 128 kB / 0.7025 GB, free: 85.42 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02331/1.17, allocations: 6.221 MB / 0.7086 GB, free: 79.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005635/1.176, allocations: 1.493 MB / 0.71 GB, free: 77.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0298/1.206, allocations: 27.65 MB / 0.737 GB, free: 49.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00673/1.213, allocations: 407.5 kB / 0.7374 GB, free: 49.38 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009961/1.214, allocations: 387.9 kB / 0.7378 GB, free: 49 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.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 (779): * Single equations (assignments): 774 * Array equations: 3 * 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 {(3,51,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003708/1.217, allocations: 2.22 MB / 0.74 GB, free: 46.77 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001082/1.218, allocations: 417.2 kB / 0.7404 GB, free: 46.36 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02639/1.245, allocations: 11.29 MB / 0.7514 GB, free: 35.04 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.53e-05/1.245, allocations: 24 kB / 0.7514 GB, free: 35.01 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.076e-05/1.245, allocations: 12 kB / 0.7514 GB, free: 35 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-05/1.245, allocations: 7.969 kB / 0.7514 GB, free: 34.99 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03762/1.283, allocations: 20.68 MB / 0.7716 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.455e-05/1.283, allocations: 4 kB / 0.7716 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001948/1.285, allocations: 388 kB / 0.772 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01938/1.304, allocations: 5.316 MB / 0.7772 GB, free: 8.16 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007181/1.305, allocations: 47.28 kB / 0.7772 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03134/1.336, allocations: 22.7 MB / 0.7994 GB, free: 1.137 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/1.336, allocations: 7.938 kB / 0.7994 GB, free: 1.129 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03475/1.371, allocations: 14.62 MB / 0.8137 GB, free: 2.414 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003322/1.374, allocations: 0.998 MB / 0.8147 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001794/1.376, allocations: 44 kB / 0.8147 GB, free: 1.352 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003644/1.38, allocations: 187.5 kB / 0.8149 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008467/1.381, allocations: 156.9 kB / 0.815 GB, free: 1.02 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003731/1.381, allocations: 60 kB / 0.8151 GB, free: 0.9609 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005692/1.387, allocations: 2.725 MB / 0.8178 GB, free: 14.23 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.11e-07/1.387, allocations: 0 / 0.8178 GB, free: 14.23 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00964/1.396, allocations: 1.371 MB / 0.8191 GB, free: 12.86 MB / 0.545 GB 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 (167): * Single equations (assignments): 162 * Array equations: 3 * 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 {(3,45,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008624/1.397, allocations: 190.3 kB / 0.8193 GB, free: 12.67 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01434/1.412, allocations: 8.345 MB / 0.8274 GB, free: 4.332 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/1.412, allocations: 0 / 0.8274 GB, free: 4.332 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00522/1.417, allocations: 3.225 MB / 0.8306 GB, free: 1.098 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00525/1.422, allocations: 0.4954 MB / 0.8311 GB, free: 0.6055 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02225/1.445, allocations: 12.02 MB / 0.8428 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2579/1.702, allocations: 3.505 MB / 0.8462 GB, free: 174.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.006692/1.709, allocations: 1.961 MB / 0.8481 GB, free: 174.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001063/1.71, allocations: 271 kB / 0.8484 GB, free: 174.7 MB / 0.5606 GB Notification: Performance of SimCode: time 1.122e-06/1.71, allocations: 0 / 0.8484 GB, free: 174.7 MB / 0.5606 GB Notification: Performance of Templates: time 0.1057/1.816, allocations: 66.89 MB / 0.9137 GB, free: 138.3 MB / 0.5606 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1)