Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001281/0.001281, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001341/0.001341, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2326/0.2326, allocations: 46.11 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002265/0.002265, allocations: 79.69 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1207, allocations: 62.45 MB / 480.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5): time 0.01694/0.1377, allocations: 13.8 MB / 494 MB, free: 7.266 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009885/0.1476, allocations: 4.388 MB / 498.4 MB, free: 2.863 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002567/0.1502, allocations: 87.69 kB / 498.5 MB, free: 2.777 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005103/0.1554, allocations: 2.371 MB / 0.4891 GB, free: 408 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006002/0.1614, allocations: 1.816 MB / 0.4909 GB, free: 14.58 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003569/0.165, allocations: 0.8846 MB / 0.4917 GB, free: 13.69 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006736/0.1718, allocations: 3.994 MB / 0.4956 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005508/0.1773, allocations: 3.425 MB / 0.499 GB, free: 6.215 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002767/0.1801, allocations: 1.468 MB / 0.5004 GB, free: 4.742 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003207/0.1833, allocations: 2.029 MB / 0.5024 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001202/0.1846, allocations: 324 kB / 0.5027 GB, free: 2.391 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00322/0.1878, allocations: 1.135 MB / 0.5038 GB, free: 1.254 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2354/0.4233, allocations: 1.878 MB / 0.5057 GB, free: 16.63 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002724/0.426, allocations: 2.243 MB / 0.5078 GB, free: 16.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008758/0.4348, allocations: 7.126 MB / 0.5148 GB, free: 15.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.4348, allocations: 2.031 kB / 0.5148 GB, free: 15.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4349, allocations: 0.625 kB / 0.5148 GB, free: 15.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002614/0.4351, allocations: 0 / 0.5148 GB, free: 15.14 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: 1710 * Number of variables: 1710 Notification: Performance of Generate backend data structure: time 0.01493/0.4501, allocations: 5.124 MB / 0.5198 GB, free: 13.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.4501, allocations: 9.5 kB / 0.5198 GB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002011/0.4521, allocations: 0.8029 MB / 0.5206 GB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01187/0.464, allocations: 3.153 MB / 0.5237 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006475/0.4705, allocations: 2.409 MB / 0.526 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002443/0.4708, allocations: 240.5 kB / 0.5263 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001739/0.4726, allocations: 313.2 kB / 0.5266 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02354/0.4961, allocations: 11.4 MB / 0.5377 GB, free: 6.062 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001659/0.4963, allocations: 25.06 kB / 0.5377 GB, free: 6.059 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001629/0.498, allocations: 148.6 kB / 0.5379 GB, free: 5.996 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004103/0.5021, allocations: 2.518 MB / 0.5403 GB, free: 5.031 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02324/0.5254, allocations: 10.58 MB / 0.5506 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06998/0.5954, allocations: 36.21 MB / 0.586 GB, free: 7.758 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009819/0.6052, allocations: 4.284 MB / 0.5902 GB, free: 3.258 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003666/0.609, allocations: 2.123 MB / 0.5923 GB, free: 1.137 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001446/0.6104, allocations: 1.317 MB / 0.5936 GB, free: 15.61 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.214e-05/0.6105, allocations: 52.56 kB / 0.5936 GB, free: 15.55 MB / 446.1 MB Notification: Performance of pre-optimization done (n=235): time 5.37e-06/0.6105, allocations: 0 / 0.5936 GB, free: 15.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=256): time 0.04634/0.6569, allocations: 13.69 MB / 0.607 GB, free: 1.809 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.512e-05/0.657, allocations: 73.41 kB / 0.607 GB, free: 1.723 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005925/0.6629, allocations: 2.907 MB / 0.6099 GB, free: 14.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004533/0.6634, allocations: 53.7 kB / 0.6099 GB, free: 14.74 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002638/0.6661, allocations: 2.997 MB / 0.6129 GB, free: 11.74 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001383/0.6674, allocations: 0.9449 MB / 0.6138 GB, free: 10.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002793/0.6703, allocations: 1.17 MB / 0.6149 GB, free: 9.625 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.6704, allocations: 305.1 kB / 0.6152 GB, free: 9.324 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004462/0.6749, allocations: 2.33 MB / 0.6175 GB, free: 6.988 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007344/0.6823, allocations: 5.555 MB / 0.6229 GB, free: 15.92 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01265/0.6949, allocations: 8.66 MB / 0.6314 GB, free: 6.156 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001296/0.6951, allocations: 32 kB / 0.6314 GB, free: 6.125 MB / 478.1 MB Notification: Performance of matching and sorting (n=775) (initialization): time 0.01955/0.7147, allocations: 8.591 MB / 0.6398 GB, free: 14.06 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001412/0.7149, allocations: 52 kB / 0.6399 GB, free: 14.01 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000196/0.7151, allocations: 116 kB / 0.64 GB, free: 13.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004178/0.7192, allocations: 1.037 MB / 0.641 GB, free: 12.85 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005002/0.7243, allocations: 1.33 MB / 0.6423 GB, free: 11.52 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003351/0.7277, allocations: 2.611 MB / 0.6448 GB, free: 8.773 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004078/0.7318, allocations: 307.8 kB / 0.6451 GB, free: 8.473 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001597/0.7334, allocations: 336 kB / 0.6454 GB, free: 8.145 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 510 * Number of states: 0 () * Number of discrete variables: 29 (freeMotionScalarInit1.arrow.arrow.twoHeadedArrow,freeMotionScalarInit1.arrow.headAtOrigin,freeMotionScalarInit2.arrowColor[3],freeMotionScalarInit2.arrowColor[2],freeMotionScalarInit2.arrowColor[1],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],freeMotionScalarInit1.arrowColor[3],freeMotionScalarInit1.arrowColor[2],freeMotionScalarInit1.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 (722): * Single equations (assignments): 713 * 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 prepare postOptimizeDAE: time 0.006831/0.7402, allocations: 2.281 MB / 0.6477 GB, free: 5.852 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008718/0.7411, allocations: 296.1 kB / 0.6479 GB, free: 5.559 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01161/0.7527, allocations: 4.979 MB / 0.6528 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.042e-05/0.7529, allocations: 47.98 kB / 0.6529 GB, free: 480 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.53e-05/0.7529, allocations: 0 / 0.6529 GB, free: 480 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-05/0.7529, allocations: 7.969 kB / 0.6529 GB, free: 472 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02593/0.7789, allocations: 11.47 MB / 0.6641 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.678e-05/0.7789, allocations: 8 kB / 0.6641 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001951/0.7809, allocations: 403.4 kB / 0.6645 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003778/0.7847, allocations: 0.9114 MB / 0.6653 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000354/0.7851, allocations: 54.33 kB / 0.6654 GB, free: 3.484 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00298/0.788, allocations: 2.425 MB / 0.6678 GB, free: 0.9219 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.126e-05/0.7881, allocations: 11.94 kB / 0.6678 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01349/0.8016, allocations: 7.384 MB / 0.675 GB, free: 9.359 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008856/0.8025, allocations: 341.1 kB / 0.6753 GB, free: 9.004 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008184/0.8033, allocations: 48 kB / 0.6754 GB, free: 8.957 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001946/0.8053, allocations: 135.8 kB / 0.6755 GB, free: 8.824 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000587/0.8059, allocations: 153.6 kB / 0.6756 GB, free: 8.676 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003605/0.8063, allocations: 78.8 kB / 0.6757 GB, free: 8.602 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003757/0.8101, allocations: 1.779 MB / 0.6774 GB, free: 6.82 MB / 0.5137 GB Notification: Performance of sort global known variables: time 5.01e-07/0.8101, allocations: 0 / 0.6774 GB, free: 6.82 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006066/0.8162, allocations: 0.9844 MB / 0.6784 GB, free: 5.836 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 12 (freeMotionScalarInit1.r_rel_a_1,freeMotionScalarInit1.r_rel_a_2,freeMotionScalarInit1.r_rel_a_3,freeMotionScalarInit1.v_rel_a_1,freeMotionScalarInit1.v_rel_a_2,freeMotionScalarInit1.v_rel_a_3,freeMotionScalarInit2.angle_1,freeMotionScalarInit2.angle_2,freeMotionScalarInit2.angle_3,freeMotionScalarInit2.angle_d_1,freeMotionScalarInit2.angle_d_2,freeMotionScalarInit2.angle_d_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 (206): * Single equations (assignments): 197 * 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.01474/0.8309, allocations: 8.059 MB / 0.6863 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01911/0.85, allocations: 10.07 MB / 0.6961 GB, free: 3.504 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.015e-05/0.8501, allocations: 1.5 kB / 0.6961 GB, free: 3.504 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005547/0.8557, allocations: 2.561 MB / 0.6986 GB, free: 0.8906 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003461/0.8591, allocations: 0.5329 MB / 0.6991 GB, free: 400 kB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2705/1.13, allocations: 47.65 MB / 0.7457 GB, free: 176.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005836/1.136, allocations: 3.532 MB / 0.7491 GB, free: 174.7 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00502/1.141, allocations: 2.102 MB / 0.7512 GB, free: 173.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003473/1.144, allocations: 1.964 MB / 0.7531 GB, free: 171.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.152e-06/1.144, allocations: 0 / 0.7531 GB, free: 171.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1008/1.245, allocations: 64.94 MB / 0.8165 GB, free: 107.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/12.81, allocations: 12.03 kB / 0.8165 GB, free: 107.1 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit5.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5.pipe 2>&1)