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.001482/0.001482, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001827/0.001826, allocations: 191.5 kB / 16.53 MB, free: 6.391 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.623/1.623, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.4428/0.4428, allocations: 39.94 MB / 309.7 MB, free: 9.258 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.002082/0.002082, allocations: 70.97 kB / 377.6 MB, free: 12.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1485/0.1506, allocations: 56.88 MB / 434.5 MB, free: 3.691 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.01447/0.1652, allocations: 13.18 MB / 447.7 MB, free: 6.449 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01028/0.1755, allocations: 4.169 MB / 451.8 MB, free: 2.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003805/0.1794, allocations: 71.81 kB / 451.9 MB, free: 2.199 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004739/0.1842, allocations: 1.864 MB / 453.8 MB, free: 336 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.3372/0.5215, allocations: 1.866 MB / 455.6 MB, free: 36.36 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001614/0.5231, allocations: 0.4984 MB / 456.1 MB, free: 36.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005826/0.5289, allocations: 3.918 MB / 460.1 MB, free: 36.33 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003722/0.5327, allocations: 2.91 MB / 463 MB, free: 36 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002843/0.5355, allocations: 1.4 MB / 464.4 MB, free: 35.85 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003499/0.5391, allocations: 1.982 MB / 466.3 MB, free: 35.61 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009344/0.54, allocations: 303.4 kB / 466.6 MB, free: 35.61 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00286/0.5429, allocations: 1.143 MB / 467.8 MB, free: 35.6 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001982/0.5449, allocations: 1.873 MB / 469.7 MB, free: 35.06 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002884/0.5478, allocations: 2.203 MB / 471.9 MB, free: 33.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009752/0.5575, allocations: 7.09 MB / 478.9 MB, free: 31.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.195e-06/0.5576, allocations: 2.859 kB / 479 MB, free: 31.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.5576, allocations: 0 / 479 MB, free: 31.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003581/0.558, allocations: 0 / 479 MB, free: 31.16 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.01826/0.5763, allocations: 4.918 MB / 483.9 MB, free: 28.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.859e-05/0.5763, allocations: 17.16 kB / 483.9 MB, free: 28.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01332/0.5897, allocations: 3.139 MB / 487 MB, free: 28.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007333/0.597, allocations: 2.169 MB / 489.2 MB, free: 27.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002746/0.5974, allocations: 223.1 kB / 489.4 MB, free: 27.12 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001229/0.5986, allocations: 300.2 kB / 489.7 MB, free: 27.06 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03007/0.6287, allocations: 11.9 MB / 0.4899 GB, free: 22.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003251/0.6291, allocations: 30.41 kB / 0.4899 GB, free: 22.42 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001917/0.631, allocations: 141.1 kB / 0.49 GB, free: 22.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005461/0.6365, allocations: 2.71 MB / 0.4927 GB, free: 21.76 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02862/0.6651, allocations: 11.09 MB / 0.5035 GB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06888/0.7341, allocations: 37.13 MB / 0.5397 GB, free: 8.738 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01254/0.7467, allocations: 4.711 MB / 0.5444 GB, free: 3.809 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003948/0.7507, allocations: 2.246 MB / 0.5465 GB, free: 1.562 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001506/0.7522, allocations: 1.322 MB / 0.5478 GB, free: 28 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.425e-05/0.7523, allocations: 56.56 kB / 0.5479 GB, free: 15.96 MB / 430.1 MB Notification: Performance of pre-optimization done (n=244): time 8.456e-06/0.7524, allocations: 0 / 0.5479 GB, free: 15.96 MB / 430.1 MB Notification: Performance of matching and sorting (n=256): time 0.04149/0.7938, allocations: 13.53 MB / 0.5611 GB, free: 2.367 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.622e-05/0.794, allocations: 73.41 kB / 0.5612 GB, free: 2.281 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005889/0.7999, allocations: 2.836 MB / 0.5639 GB, free: 15.43 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004585/0.8003, allocations: 61.7 kB / 0.564 GB, free: 15.37 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002633/0.803, allocations: 2.96 MB / 0.5669 GB, free: 12.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001444/0.8045, allocations: 0.9421 MB / 0.5678 GB, free: 11.47 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002804/0.8073, allocations: 1.154 MB / 0.5689 GB, free: 10.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.8074, allocations: 305.1 kB / 0.5692 GB, free: 10 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004112/0.8116, allocations: 2.315 MB / 0.5715 GB, free: 7.684 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007179/0.8188, allocations: 5.48 MB / 0.5768 GB, free: 0.668 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01255/0.8313, allocations: 8.554 MB / 0.5852 GB, free: 6.586 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001797/0.8316, allocations: 32 kB / 0.5852 GB, free: 6.555 MB / 462.1 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.02179/0.8534, allocations: 8.478 MB / 0.5935 GB, free: 14.07 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003075/0.8538, allocations: 52.19 kB / 0.5936 GB, free: 14.02 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003773/0.8542, allocations: 112 kB / 0.5937 GB, free: 13.91 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004268/0.8585, allocations: 1.022 MB / 0.5947 GB, free: 12.88 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005232/0.8637, allocations: 1.322 MB / 0.596 GB, free: 11.55 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003372/0.8671, allocations: 2.62 MB / 0.5985 GB, free: 8.785 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004715/0.8719, allocations: 311.7 kB / 0.5988 GB, free: 8.48 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001363/0.8733, allocations: 338.6 kB / 0.5991 GB, free: 8.152 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 (718): * Single equations (assignments): 709 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(3,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006147/0.8794, allocations: 2.272 MB / 0.6014 GB, free: 5.867 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009163/0.8804, allocations: 284.3 kB / 0.6016 GB, free: 5.586 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01114/0.8915, allocations: 4.916 MB / 0.6064 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.19e-05/0.8916, allocations: 50.09 kB / 0.6065 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-05/0.8917, allocations: 0 / 0.6065 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.131e-05/0.8917, allocations: 7.969 kB / 0.6065 GB, free: 0.543 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0301/0.9218, allocations: 11.49 MB / 0.6177 GB, free: 4.91 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.195e-05/0.9219, allocations: 8 kB / 0.6177 GB, free: 4.902 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002126/0.924, allocations: 415.3 kB / 0.6181 GB, free: 4.496 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003099/0.9272, allocations: 0.6113 MB / 0.6187 GB, free: 3.875 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004608/0.9276, allocations: 51.98 kB / 0.6188 GB, free: 3.824 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002673/0.9303, allocations: 2.201 MB / 0.6209 GB, free: 1.484 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.646e-05/0.9304, allocations: 11.94 kB / 0.6209 GB, free: 1.473 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01438/0.9448, allocations: 6.98 MB / 0.6277 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001274/0.9461, allocations: 325.4 kB / 0.628 GB, free: 9.961 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001005/0.9471, allocations: 54.09 kB / 0.6281 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001881/0.949, allocations: 123.8 kB / 0.6282 GB, free: 9.789 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004521/0.9495, allocations: 165.7 kB / 0.6284 GB, free: 9.625 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002397/0.9497, allocations: 74.95 kB / 0.6284 GB, free: 9.555 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00371/0.9535, allocations: 1.746 MB / 0.6301 GB, free: 7.805 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.51e-07/0.9535, allocations: 0 / 0.6301 GB, free: 7.805 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00618/0.9597, allocations: 0.9922 MB / 0.6311 GB, free: 6.812 MB / 0.4981 GB 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 (not torn): 2 * 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): 2 systems {(2,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007905/0.9605, allocations: 198.6 kB / 0.6313 GB, free: 6.613 MB / 0.4981 GB [/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. [/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. Notification: Performance of simCode: created initialization part: time 0.2884/1.249, allocations: 9.763 MB / 0.6408 GB, free: 164.4 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.081e-05/1.249, allocations: 3.938 kB / 0.6408 GB, free: 164.4 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004243/1.253, allocations: 2.398 MB / 0.6432 GB, free: 164.1 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002827/1.256, allocations: 458.8 kB / 0.6436 GB, free: 164.1 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02016/1.276, allocations: 10.9 MB / 0.6543 GB, free: 159.4 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005965/1.282, allocations: 3.52 MB / 0.6577 GB, free: 158.1 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00729/1.29, allocations: 2.07 MB / 0.6597 GB, free: 157.9 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001348/1.291, allocations: 228.5 kB / 0.6599 GB, free: 157.9 MB / 0.4981 GB Notification: Performance of SimCode: time 2.945e-06/1.291, allocations: 0 / 0.6599 GB, free: 157.9 MB / 0.4981 GB Notification: Performance of Templates: time 0.08511/1.376, allocations: 32.98 MB / 0.6922 GB, free: 144.3 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.makefile (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)