Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.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.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001921/0.00192, 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.002286/0.002286, 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.499/1.499, allocations: 227.4 MB / 246.8 MB, free: 10.61 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.2288/0.2288, allocations: 46.12 MB / 344.2 MB, free: 11.59 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.002594/0.002594, allocations: 82.3 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1311, allocations: 62.44 MB / 480.2 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.01621/0.1474, allocations: 13.96 MB / 494.2 MB, free: 7.145 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009567/0.157, allocations: 4.431 MB / 498.6 MB, free: 2.703 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002679/0.1597, allocations: 79.75 kB / 498.7 MB, free: 2.625 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004789/0.1645, allocations: 2.347 MB / 0.4893 GB, free: 276 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004941/0.1695, allocations: 1.898 MB / 0.4911 GB, free: 14.37 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001418/0.1709, allocations: 0.5848 MB / 0.4917 GB, free: 13.78 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006495/0.1774, allocations: 4.147 MB / 0.4958 GB, free: 9.625 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004557/0.182, allocations: 3.571 MB / 0.4992 GB, free: 6.008 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002452/0.1845, allocations: 1.573 MB / 0.5008 GB, free: 4.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003132/0.1876, allocations: 2.149 MB / 0.5029 GB, free: 2.273 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007519/0.1884, allocations: 348 kB / 0.5032 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002565/0.1909, allocations: 1.198 MB / 0.5044 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2228/0.4138, allocations: 2.002 MB / 0.5063 GB, free: 16.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006374/0.4202, allocations: 2.378 MB / 0.5087 GB, free: 16.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01272/0.4329, allocations: 7.494 MB / 0.516 GB, free: 15.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.433, allocations: 0 / 0.516 GB, free: 15.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.433, allocations: 0 / 0.516 GB, free: 15.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003002/0.4333, allocations: 0 / 0.516 GB, free: 15.23 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: 1811 * Number of variables: 1811 Notification: Performance of Generate backend data structure: time 0.01575/0.449, allocations: 5.353 MB / 0.5212 GB, free: 13.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.4491, allocations: 9.781 kB / 0.5212 GB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002024/0.4511, allocations: 0.8563 MB / 0.522 GB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01157/0.4627, allocations: 3.178 MB / 0.5252 GB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005979/0.4687, allocations: 2.464 MB / 0.5276 GB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003119/0.4691, allocations: 258.5 kB / 0.5278 GB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002012/0.4711, allocations: 353.6 kB / 0.5281 GB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02287/0.494, allocations: 12.18 MB / 0.54 GB, free: 5.008 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001476/0.4942, allocations: 33.62 kB / 0.5401 GB, free: 5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006968/0.4949, allocations: 156.1 kB / 0.5402 GB, free: 4.934 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003984/0.4989, allocations: 2.639 MB / 0.5428 GB, free: 3.918 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02136/0.5202, allocations: 11.21 MB / 0.5537 GB, free: 9.309 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06647/0.5868, allocations: 39.11 MB / 0.5919 GB, free: 1.941 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01214/0.5989, allocations: 4.981 MB / 0.5968 GB, free: 12.74 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004392/0.6034, allocations: 2.374 MB / 0.5991 GB, free: 10.36 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01411/0.6176, allocations: 6.802 MB / 0.6058 GB, free: 3.203 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.696e-05/0.6177, allocations: 48.56 kB / 0.6058 GB, free: 3.148 MB / 446.1 MB Notification: Performance of pre-optimization done (n=226): time 7.183e-06/0.6177, allocations: 4 kB / 0.6058 GB, free: 3.145 MB / 446.1 MB Notification: Performance of matching and sorting (n=235): time 0.0773/0.695, allocations: 16.18 MB / 0.6216 GB, free: 2.836 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.419e-05/0.6951, allocations: 73.34 kB / 0.6217 GB, free: 2.754 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00836/0.7035, allocations: 3.125 MB / 0.6247 GB, free: 15.61 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006576/0.7042, allocations: 61.7 kB / 0.6248 GB, free: 15.55 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004534/0.7088, allocations: 3.189 MB / 0.6279 GB, free: 12.36 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002212/0.711, allocations: 0.8824 MB / 0.6288 GB, free: 11.48 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003603/0.7146, allocations: 1.201 MB / 0.6299 GB, free: 10.27 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.7149, allocations: 302.1 kB / 0.6302 GB, free: 9.973 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006867/0.7217, allocations: 2.366 MB / 0.6325 GB, free: 7.602 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0119/0.7337, allocations: 5.692 MB / 0.6381 GB, free: 340 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0189/0.7526, allocations: 8.744 MB / 0.6466 GB, free: 6.441 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001392/0.7528, allocations: 32 kB / 0.6467 GB, free: 6.41 MB / 494.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.03196/0.7848, allocations: 8.821 MB / 0.6553 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001821/0.785, allocations: 60.22 kB / 0.6553 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002878/0.7853, allocations: 116 kB / 0.6554 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006618/0.792, allocations: 1.141 MB / 0.6566 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008254/0.8003, allocations: 1.345 MB / 0.6579 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01547/0.8158, allocations: 6.947 MB / 0.6647 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004613/0.8204, allocations: 319.7 kB / 0.665 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001321/0.8218, allocations: 344 kB / 0.6653 GB, free: 3.512 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 527 * Number of states: 0 () * Number of discrete variables: 32 (freeMotionScalarInit.arrow.arrow.twoHeadedArrow,freeMotionScalarInit.arrow.headAtOrigin,spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[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],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 (730): * Single equations (assignments): 722 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,5)} Notification: Performance of prepare postOptimizeDAE: time 0.005843/0.8276, allocations: 2.352 MB / 0.6676 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007149/0.8284, allocations: 296.2 kB / 0.6679 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009068/0.8374, allocations: 4.392 MB / 0.6722 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.332e-05/0.8376, allocations: 43.98 kB / 0.6722 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.205e-05/0.8376, allocations: 4 kB / 0.6722 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.935e-05/0.8376, allocations: 7.969 kB / 0.6722 GB, free: 12.39 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02609/0.8637, allocations: 10.3 MB / 0.6823 GB, free: 2 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.026e-05/0.8638, allocations: 11.94 kB / 0.6823 GB, free: 1.988 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001928/0.8657, allocations: 383.4 kB / 0.6827 GB, free: 1.613 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002232/0.868, allocations: 0.685 MB / 0.6833 GB, free: 0.918 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004758/0.8685, allocations: 50.33 kB / 0.6834 GB, free: 0.8711 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003477/0.872, allocations: 2.57 MB / 0.6859 GB, free: 14.16 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.05e-05/0.872, allocations: 7.938 kB / 0.6859 GB, free: 14.15 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01228/0.8843, allocations: 6.731 MB / 0.6925 GB, free: 7.332 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00116/0.8855, allocations: 345.2 kB / 0.6928 GB, free: 6.973 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004877/0.886, allocations: 40 kB / 0.6928 GB, free: 6.934 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001302/0.8873, allocations: 135.8 kB / 0.693 GB, free: 6.801 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003465/0.8877, allocations: 133.6 kB / 0.6931 GB, free: 6.668 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001818/0.8879, allocations: 70.33 kB / 0.6932 GB, free: 6.602 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00344/0.8913, allocations: 1.899 MB / 0.695 GB, free: 4.703 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.31e-07/0.8913, allocations: 0 / 0.695 GB, free: 4.703 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005756/0.8971, allocations: 1.034 MB / 0.696 GB, free: 3.672 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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,body.w_a[1],body.w_a[2],body.w_a[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 (187): * Single equations (assignments): 178 * 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.01199/0.9091, allocations: 7.388 MB / 0.7032 GB, free: 12.18 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01829/0.9274, allocations: 9.384 MB / 0.7124 GB, free: 2.801 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.588e-05/0.9275, allocations: 0 / 0.7124 GB, free: 2.801 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005076/0.9326, allocations: 2.4 MB / 0.7147 GB, free: 356 kB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2041/1.137, allocations: 483.3 kB / 0.7152 GB, free: 203.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06383/1.201, allocations: 48.68 MB / 0.7627 GB, free: 167.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004307/1.205, allocations: 3.634 MB / 0.7663 GB, free: 164.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004034/1.209, allocations: 2.016 MB / 0.7683 GB, free: 162.1 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00296/1.212, allocations: 2.042 MB / 0.7702 GB, free: 160.1 MB / 0.545 GB Notification: Performance of SimCode: time 7.71e-07/1.212, allocations: 11.94 kB / 0.7703 GB, free: 160.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1073/1.319, allocations: 67.85 MB / 0.8365 GB, free: 92.52 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.3/15.62, allocations: 7.328 kB / 0.8365 GB, free: 92.51 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_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_FreeMotionScalarInit3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1)