Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.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.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001671/0.001671, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001985/0.001985, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.514/1.514, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2464/0.2464, allocations: 46.1 MB / 344.2 MB, free: 11.61 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.002226/0.002226, allocations: 89.62 kB / 417.8 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1354, allocations: 62.45 MB / 480.2 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit): time 0.01754/0.153, allocations: 12.65 MB / 492.9 MB, free: 8.453 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008963/0.162, allocations: 4.067 MB / 496.9 MB, free: 4.379 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001909/0.1639, allocations: 67.81 kB / 497 MB, free: 4.312 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003815/0.1678, allocations: 1.837 MB / 498.8 MB, free: 2.469 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004562/0.1724, allocations: 1.747 MB / 0.4888 GB, free: 0.7148 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001252/0.1737, allocations: 0.4912 MB / 0.4893 GB, free: 228 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004871/0.1785, allocations: 3.775 MB / 0.493 GB, free: 12.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003802/0.1824, allocations: 2.856 MB / 0.4958 GB, free: 9.523 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002187/0.1846, allocations: 1.331 MB / 0.4971 GB, free: 8.188 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00288/0.1875, allocations: 1.873 MB / 0.4989 GB, free: 6.309 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000671/0.1882, allocations: 280 kB / 0.4992 GB, free: 6.035 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002281/0.1905, allocations: 1.092 MB / 0.5003 GB, free: 4.941 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001949/0.1924, allocations: 1.737 MB / 0.502 GB, free: 3.199 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002706/0.1951, allocations: 2.069 MB / 0.504 GB, free: 1.117 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2448/0.4399, allocations: 6.584 MB / 0.5104 GB, free: 17.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.44, allocations: 0.6562 kB / 0.5104 GB, free: 17.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.44, allocations: 1.125 kB / 0.5104 GB, free: 17.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003267/0.4403, allocations: 0 / 0.5104 GB, free: 17.02 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: 1622 * Number of variables: 1622 Notification: Performance of Generate backend data structure: time 0.02422/0.4646, allocations: 4.793 MB / 0.5151 GB, free: 15.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.523e-05/0.4646, allocations: 11.78 kB / 0.5151 GB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00351/0.4681, allocations: 0.7564 MB / 0.5158 GB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01703/0.4852, allocations: 3.116 MB / 0.5189 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007122/0.4924, allocations: 2.257 MB / 0.5211 GB, free: 14.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003426/0.4927, allocations: 215.3 kB / 0.5213 GB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002127/0.4949, allocations: 284.7 kB / 0.5216 GB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02973/0.5246, allocations: 10.95 MB / 0.5323 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002299/0.5249, allocations: 36.05 kB / 0.5323 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001745/0.5267, allocations: 131.5 kB / 0.5324 GB, free: 9.984 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005684/0.5324, allocations: 2.505 MB / 0.5349 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01991/0.5523, allocations: 10.28 MB / 0.5449 GB, free: 1.566 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06362/0.616, allocations: 35.1 MB / 0.5792 GB, free: 14.26 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009172/0.6252, allocations: 4.282 MB / 0.5834 GB, free: 9.758 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00372/0.6289, allocations: 2.119 MB / 0.5854 GB, free: 7.641 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001499/0.6305, allocations: 1.313 MB / 0.5867 GB, free: 6.113 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.26e-05/0.6305, allocations: 52.56 kB / 0.5868 GB, free: 6.055 MB / 430.1 MB Notification: Performance of pre-optimization done (n=235): time 5.761e-06/0.6306, allocations: 0 / 0.5868 GB, free: 6.055 MB / 430.1 MB Notification: Performance of matching and sorting (n=256): time 0.04516/0.6757, allocations: 13.64 MB / 0.6001 GB, free: 8.395 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.337e-05/0.6758, allocations: 75.94 kB / 0.6002 GB, free: 8.309 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005085/0.6809, allocations: 2.758 MB / 0.6028 GB, free: 5.539 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004528/0.6814, allocations: 53.7 kB / 0.6029 GB, free: 5.48 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002515/0.6839, allocations: 2.825 MB / 0.6057 GB, free: 2.668 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001434/0.6854, allocations: 0.944 MB / 0.6066 GB, free: 1.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002427/0.6878, allocations: 1.126 MB / 0.6077 GB, free: 0.5938 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.688, allocations: 309 kB / 0.608 GB, free: 296 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003824/0.6919, allocations: 2.303 MB / 0.6102 GB, free: 13.98 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006892/0.6988, allocations: 5.392 MB / 0.6155 GB, free: 7.137 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01183/0.7106, allocations: 8.443 MB / 0.6237 GB, free: 13.63 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.973e-05/0.7108, allocations: 32 kB / 0.6238 GB, free: 13.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=754) (initialization): time 0.0181/0.7289, allocations: 8.398 MB / 0.632 GB, free: 5.629 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.206e-05/0.729, allocations: 54.81 kB / 0.632 GB, free: 5.578 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000143/0.7291, allocations: 108 kB / 0.6321 GB, free: 5.473 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004059/0.7332, allocations: 1.036 MB / 0.6331 GB, free: 4.426 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004562/0.7378, allocations: 1.291 MB / 0.6344 GB, free: 3.133 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003254/0.7411, allocations: 2.608 MB / 0.6369 GB, free: 392 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003638/0.7447, allocations: 307.8 kB / 0.6372 GB, free: 84 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009099/0.7457, allocations: 324 kB / 0.6375 GB, free: 15.77 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 489 * Number of states: 0 () * Number of discrete variables: 26 (freeMotionScalarInit.arrow.arrow.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,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 (701): * Single equations (assignments): 692 * 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.004313/0.75, allocations: 2.172 MB / 0.6397 GB, free: 13.59 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000539/0.7505, allocations: 288.4 kB / 0.6399 GB, free: 13.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01008/0.7606, allocations: 4.957 MB / 0.6448 GB, free: 8.277 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.81e-05/0.7608, allocations: 47.97 kB / 0.6448 GB, free: 8.23 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.366e-05/0.7608, allocations: 6.625 kB / 0.6448 GB, free: 8.227 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.291e-05/0.7608, allocations: 11.95 kB / 0.6448 GB, free: 8.215 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.024/0.7848, allocations: 11.25 MB / 0.6558 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.852e-05/0.7849, allocations: 8 kB / 0.6558 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00186/0.7867, allocations: 407.5 kB / 0.6562 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003731/0.7905, allocations: 0.915 MB / 0.6571 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002773/0.7908, allocations: 55.98 kB / 0.6572 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002972/0.7938, allocations: 2.421 MB / 0.6595 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.005e-05/0.7938, allocations: 11.94 kB / 0.6596 GB, free: 8.883 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01365/0.8074, allocations: 7.371 MB / 0.6668 GB, free: 1.348 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008601/0.8083, allocations: 317.4 kB / 0.6671 GB, free: 1.016 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005157/0.8089, allocations: 59.12 kB / 0.6671 GB, free: 0.9609 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001287/0.8102, allocations: 131.8 kB / 0.6672 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003841/0.8106, allocations: 149.6 kB / 0.6674 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002056/0.8108, allocations: 79.97 kB / 0.6675 GB, free: 0.6094 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002928/0.8137, allocations: 1.685 MB / 0.6691 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.11e-07/0.8137, allocations: 2.625 kB / 0.6691 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004851/0.8186, allocations: 0.9555 MB / 0.67 GB, free: 13.96 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.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.01369/0.8323, allocations: 8.038 MB / 0.6779 GB, free: 5.758 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01997/0.8523, allocations: 9.986 MB / 0.6876 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.151e-05/0.8523, allocations: 4 kB / 0.6876 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005518/0.8579, allocations: 2.575 MB / 0.6902 GB, free: 9.105 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002703/0.8606, allocations: 452.3 kB / 0.6906 GB, free: 8.684 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.264/1.125, allocations: 45.83 MB / 0.7353 GB, free: 187.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004459/1.129, allocations: 3.367 MB / 0.7386 GB, free: 186.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004123/1.133, allocations: 2.044 MB / 0.7406 GB, free: 185.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002847/1.136, allocations: 1.852 MB / 0.7424 GB, free: 183.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.864e-06/1.136, allocations: 4 kB / 0.7424 GB, free: 183.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1288/1.265, allocations: 61.43 MB / 0.8024 GB, free: 126 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/12.76, allocations: 17.81 kB / 0.8024 GB, free: 126 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit.pipe 2>&1)