Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.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.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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.Joints.FreeMotionScalarInit2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") translateModel(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001052, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001113/0.001113, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.497/1.497, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3516/0.3516, allocations: 40 MB / 310.4 MB, free: 10.01 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.2. 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.0005159/0.0005161, allocations: 20 kB / 378.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1171, allocations: 57.95 MB / 436.8 MB, free: 2.609 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.2475/0.3646, allocations: 29.17 MB / 465.9 MB, free: 33.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01723/0.3819, allocations: 7.528 MB / 473.5 MB, free: 31.71 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006164/0.3881, allocations: 140.5 kB / 473.6 MB, free: 31.69 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004691/0.3928, allocations: 1.478 MB / 475.1 MB, free: 31.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01296/0.4058, allocations: 4.43 MB / 479.5 MB, free: 30.08 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00196/0.4078, allocations: 407.3 kB / 479.9 MB, free: 29.96 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00456/0.4124, allocations: 2.135 MB / 482 MB, free: 29.22 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005035/0.4174, allocations: 3.34 MB / 485.4 MB, free: 27.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00168/0.4191, allocations: 0.9472 MB / 486.3 MB, free: 27.58 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001993/0.4211, allocations: 1.294 MB / 487.6 MB, free: 27.17 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008031/0.422, allocations: 150.1 kB / 487.8 MB, free: 27.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002046/0.424, allocations: 0.8482 MB / 488.6 MB, free: 27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001831/0.4259, allocations: 1.555 MB / 490.2 MB, free: 26.49 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001136/0.427, allocations: 0.8483 MB / 491 MB, free: 25.87 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007472/0.4345, allocations: 5.649 MB / 496.7 MB, free: 24.74 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.4345, allocations: 5.219 kB / 496.7 MB, free: 24.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.557e-06/0.4346, allocations: 0 / 496.7 MB, free: 24.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003948/0.435, allocations: 0 / 496.7 MB, free: 24.73 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1720 * Number of variables: 1720 Notification: Performance of Generate backend data structure: time 0.01481/0.4498, allocations: 4.173 MB / 0.4891 GB, free: 22.49 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.4e-05/0.4499, allocations: 9.281 kB / 0.4891 GB, free: 22.49 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01491/0.4648, allocations: 3.813 MB / 0.4928 GB, free: 21.08 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006785/0.4716, allocations: 2.33 MB / 0.4951 GB, free: 19.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003006/0.4719, allocations: 229.6 kB / 0.4953 GB, free: 19.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001955/0.4739, allocations: 298.9 kB / 0.4956 GB, free: 19.44 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02609/0.5, allocations: 11.97 MB / 0.5073 GB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001354/0.5002, allocations: 22.97 kB / 0.5073 GB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001166/0.5014, allocations: 136.7 kB / 0.5075 GB, free: 12.78 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004139/0.5055, allocations: 2.71 MB / 0.5101 GB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02087/0.5264, allocations: 11.15 MB / 0.521 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06578/0.5922, allocations: 37.22 MB / 0.5573 GB, free: 10.95 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009513/0.6018, allocations: 4.697 MB / 0.5619 GB, free: 6.023 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001282/0.6031, allocations: 1.323 MB / 0.5632 GB, free: 4.48 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.95e-05/0.6032, allocations: 48.56 kB / 0.5633 GB, free: 4.426 MB / 430.1 MB Notification: Performance of pre-optimization done (n=244): time 5.541e-06/0.6032, allocations: 0 / 0.5633 GB, free: 4.426 MB / 430.1 MB Notification: Performance of matching and sorting (n=256): time 0.04186/0.6451, allocations: 14.1 MB / 0.577 GB, free: 6.129 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.191e-05/0.6452, allocations: 77.39 kB / 0.5771 GB, free: 6.043 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005329/0.6505, allocations: 2.946 MB / 0.58 GB, free: 3.074 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004566/0.651, allocations: 57.7 kB / 0.58 GB, free: 3.012 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002264/0.6533, allocations: 2.969 MB / 0.5829 GB, free: 0 / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001406/0.6547, allocations: 0.9483 MB / 0.5839 GB, free: 15.04 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006346/0.6553, allocations: 108 kB / 0.584 GB, free: 14.93 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000522/0.6559, allocations: 0.554 MB / 0.5845 GB, free: 14.37 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004012/0.6599, allocations: 2.283 MB / 0.5867 GB, free: 12.08 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006348/0.6663, allocations: 5.423 MB / 0.592 GB, free: 5.105 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0057/0.672, allocations: 3.528 MB / 0.5955 GB, free: 1.582 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.112e-05/0.6721, allocations: 32 kB / 0.5955 GB, free: 1.551 MB / 462.1 MB Notification: Performance of matching and sorting (n=767) (initialization): time 0.0174/0.6895, allocations: 8.409 MB / 0.6037 GB, free: 9.125 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001089/0.6897, allocations: 52 kB / 0.6038 GB, free: 9.074 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001598/0.6899, allocations: 120.1 kB / 0.6039 GB, free: 8.957 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003581/0.6934, allocations: 1.028 MB / 0.6049 GB, free: 7.918 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004596/0.6981, allocations: 1.326 MB / 0.6062 GB, free: 6.59 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002873/0.701, allocations: 2.494 MB / 0.6086 GB, free: 3.953 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00434/0.7053, allocations: 315.7 kB / 0.6089 GB, free: 3.645 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001244/0.7066, allocations: 336 kB / 0.6092 GB, free: 3.316 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 502 * Number of states: 0 () * Number of discrete variables: 24 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (714): * Single equations (assignments): 705 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006733/0.7134, allocations: 2.282 MB / 0.6115 GB, free: 1.023 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008107/0.7142, allocations: 284.2 kB / 0.6117 GB, free: 0.7422 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01035/0.7245, allocations: 4.912 MB / 0.6165 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.034e-05/0.7246, allocations: 47.98 kB / 0.6166 GB, free: 11.71 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/0.7247, allocations: 4 kB / 0.6166 GB, free: 11.71 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-05/0.7247, allocations: 11.95 kB / 0.6166 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02573/0.7504, allocations: 11.46 MB / 0.6278 GB, free: 36 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.908e-05/0.7505, allocations: 8 kB / 0.6278 GB, free: 28 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2307/0.9812, allocations: 410 kB / 0.6282 GB, free: 141.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003087/0.9844, allocations: 0.6142 MB / 0.6288 GB, free: 141.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007045/0.9851, allocations: 54.19 kB / 0.6289 GB, free: 141.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00224/0.9874, allocations: 2.088 MB / 0.6309 GB, free: 140.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.548e-05/0.9874, allocations: 13.53 kB / 0.6309 GB, free: 140.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01274/1, allocations: 7.737 MB / 0.6385 GB, free: 138.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/1.001, allocations: 332.7 kB / 0.6388 GB, free: 138.3 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006259/1.002, allocations: 52.41 kB / 0.6388 GB, free: 138.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001364/1.003, allocations: 126.2 kB / 0.6389 GB, free: 138.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000339/1.004, allocations: 160.2 kB / 0.6391 GB, free: 138.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001659/1.004, allocations: 78.48 kB / 0.6392 GB, free: 138.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002687/1.007, allocations: 1.807 MB / 0.6409 GB, free: 138.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/1.007, allocations: 0 / 0.6409 GB, free: 138.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004472/1.011, allocations: 1.01 MB / 0.6419 GB, free: 138.1 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.w_rel_b_1,freeMotionScalarInit.w_rel_b_2,freeMotionScalarInit.w_rel_b_3) * 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 (207): * Single equations (assignments): 198 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005705/1.012, allocations: 216 kB / 0.6421 GB, free: 138 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1916:5-1918:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Joints.mo:1913:5-1915:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.008665/1.02, allocations: 5.969 MB / 0.648 GB, free: 136 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/1.02, allocations: 5 kB / 0.648 GB, free: 136 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004123/1.024, allocations: 2.372 MB / 0.6503 GB, free: 135 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002347/1.027, allocations: 404.7 kB / 0.6507 GB, free: 134.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02107/1.048, allocations: 12.94 MB / 0.6633 GB, free: 128.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004138/1.052, allocations: 3.614 MB / 0.6668 GB, free: 126.7 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005178/1.057, allocations: 2.079 MB / 0.6689 GB, free: 126.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008946/1.058, allocations: 235.4 kB / 0.6691 GB, free: 126.5 MB / 494.1 MB Notification: Performance of SimCode: time 1.453e-06/1.058, allocations: 0 / 0.6691 GB, free: 126.5 MB / 494.1 MB Notification: Performance of Templates: time 0.05117/1.109, allocations: 31.29 MB / 0.6996 GB, free: 107.8 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.sim & ./ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.pipe 2>&1) Environment - environmentSimulation: