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.001735/0.001735, allocations: 121.7 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001839/0.001839, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 247 MB, free: 10.4 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.2236/0.2236, allocations: 46.12 MB / 344.4 MB, free: 11.43 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.002266/0.002266, allocations: 83.81 kB / 480.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3595/0.3617, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3): time 0.01599/0.3778, allocations: 13.96 MB / 0.5442 GB, free: 2.398 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01039/0.3882, allocations: 4.43 MB / 0.5486 GB, free: 14.96 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003134/0.3914, allocations: 75.59 kB / 0.5486 GB, free: 14.95 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005357/0.3968, allocations: 2.355 MB / 0.5509 GB, free: 12.83 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007743/0.4046, allocations: 1.891 MB / 0.5528 GB, free: 10.93 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002199/0.4068, allocations: 0.5848 MB / 0.5534 GB, free: 10.35 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.007589/0.4144, allocations: 4.156 MB / 0.5574 GB, free: 6.18 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006123/0.4206, allocations: 3.574 MB / 0.5609 GB, free: 2.559 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003263/0.4239, allocations: 1.573 MB / 0.5624 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003838/0.4278, allocations: 2.157 MB / 0.5646 GB, free: 14.81 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001332/0.4291, allocations: 348 kB / 0.5649 GB, free: 14.47 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003251/0.4324, allocations: 1.194 MB / 0.5661 GB, free: 13.28 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003096/0.4355, allocations: 2.003 MB / 0.568 GB, free: 11.27 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004579/0.4401, allocations: 2.384 MB / 0.5703 GB, free: 8.875 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01413/0.4543, allocations: 7.843 MB / 0.578 GB, free: 1 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.676e-06/0.4543, allocations: 0 / 0.578 GB, free: 1 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4544, allocations: 0 / 0.578 GB, free: 1 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003517/0.4547, allocations: 0 / 0.578 GB, free: 1 MB / 430.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.01649/0.4712, allocations: 5.49 MB / 0.5834 GB, free: 11.43 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.808e-05/0.4713, allocations: 8.031 kB / 0.5834 GB, free: 11.42 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002866/0.4742, allocations: 0.8521 MB / 0.5842 GB, free: 10.56 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01211/0.4863, allocations: 3.215 MB / 0.5873 GB, free: 7.34 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00725/0.4936, allocations: 2.482 MB / 0.5898 GB, free: 4.812 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003392/0.494, allocations: 266.7 kB / 0.59 GB, free: 4.551 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00193/0.4959, allocations: 343.8 kB / 0.5903 GB, free: 4.215 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02573/0.5217, allocations: 12.19 MB / 0.6022 GB, free: 7.551 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000111/0.5218, allocations: 23.81 kB / 0.6023 GB, free: 7.527 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005371/0.5224, allocations: 159.8 kB / 0.6024 GB, free: 7.371 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00449/0.5269, allocations: 2.637 MB / 0.605 GB, free: 4.73 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02487/0.5518, allocations: 11.21 MB / 0.6159 GB, free: 9.5 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06522/0.617, allocations: 38.97 MB / 0.654 GB, free: 1.656 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01103/0.6281, allocations: 4.965 MB / 0.6588 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003703/0.6318, allocations: 2.365 MB / 0.6612 GB, free: 10.08 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01105/0.6429, allocations: 6.838 MB / 0.6678 GB, free: 2.855 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.625e-05/0.643, allocations: 52.56 kB / 0.6679 GB, free: 2.797 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=226): time 5.65e-06/0.643, allocations: 0 / 0.6679 GB, free: 2.797 MB / 0.5137 GB Notification: Performance of matching and sorting (n=235): time 0.04383/0.6869, allocations: 16.26 MB / 0.6838 GB, free: 2.387 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.903e-05/0.687, allocations: 81.41 kB / 0.6838 GB, free: 2.297 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005767/0.6928, allocations: 3.137 MB / 0.6869 GB, free: 15.14 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0003987/0.6932, allocations: 53.7 kB / 0.687 GB, free: 15.09 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003128/0.6963, allocations: 3.328 MB / 0.6902 GB, free: 11.73 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001476/0.6978, allocations: 0.9146 MB / 0.6911 GB, free: 10.8 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002421/0.7003, allocations: 1.207 MB / 0.6923 GB, free: 9.586 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001475/0.7004, allocations: 305.1 kB / 0.6926 GB, free: 9.285 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004107/0.7045, allocations: 2.37 MB / 0.6949 GB, free: 6.91 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007881/0.7124, allocations: 5.685 MB / 0.7004 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01324/0.7257, allocations: 8.752 MB / 0.709 GB, free: 5.207 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001248/0.7259, allocations: 32 kB / 0.709 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01973/0.7456, allocations: 8.843 MB / 0.7176 GB, free: 12.31 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.000165/0.7458, allocations: 56 kB / 0.7177 GB, free: 12.26 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002115/0.7461, allocations: 116 kB / 0.7178 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003729/0.7498, allocations: 1.133 MB / 0.7189 GB, free: 11 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004884/0.7547, allocations: 1.341 MB / 0.7202 GB, free: 9.66 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.011/0.7658, allocations: 6.956 MB / 0.727 GB, free: 2.426 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004541/0.7703, allocations: 315.8 kB / 0.7273 GB, free: 2.117 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00126/0.7716, allocations: 344 kB / 0.7277 GB, free: 1.781 MB / 0.5762 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.2719/1.044, allocations: 2.337 MB / 0.7299 GB, free: 174.9 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006789/1.044, allocations: 314.3 kB / 0.7302 GB, free: 174.9 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00733/1.052, allocations: 4.394 MB / 0.7345 GB, free: 174.1 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.949e-05/1.052, allocations: 45.42 kB / 0.7346 GB, free: 174.1 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.904e-06/1.052, allocations: 1.312 kB / 0.7346 GB, free: 174.1 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.391e-05/1.052, allocations: 16.5 kB / 0.7346 GB, free: 174.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0151/1.067, allocations: 10.29 MB / 0.7446 GB, free: 170.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.341e-05/1.067, allocations: 7.719 kB / 0.7446 GB, free: 170.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001513/1.068, allocations: 377.4 kB / 0.745 GB, free: 170.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001799/1.07, allocations: 0.6731 MB / 0.7457 GB, free: 170.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002004/1.07, allocations: 48.2 kB / 0.7457 GB, free: 170.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002218/1.073, allocations: 2.578 MB / 0.7482 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/1.073, allocations: 7.875 kB / 0.7482 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007897/1.081, allocations: 6.748 MB / 0.7548 GB, free: 166.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007303/1.081, allocations: 350.1 kB / 0.7551 GB, free: 166.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004098/1.082, allocations: 39.69 kB / 0.7552 GB, free: 166.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00118/1.083, allocations: 141.7 kB / 0.7553 GB, free: 166.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003085/1.083, allocations: 132.4 kB / 0.7554 GB, free: 166.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001463/1.083, allocations: 66.48 kB / 0.7555 GB, free: 166.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002467/1.086, allocations: 1.897 MB / 0.7574 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/1.086, allocations: 0 / 0.7574 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004317/1.09, allocations: 1.037 MB / 0.7584 GB, free: 163.7 MB / 0.5762 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.007844/1.098, allocations: 7.412 MB / 0.7656 GB, free: 156.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.008544/1.107, allocations: 5.947 MB / 0.7714 GB, free: 150.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.428e-05/1.107, allocations: 0 / 0.7714 GB, free: 150.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003575/1.11, allocations: 2.407 MB / 0.7738 GB, free: 147.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002947/1.113, allocations: 489.5 kB / 0.7742 GB, free: 147.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05259/1.166, allocations: 45.19 MB / 0.8184 GB, free: 97.26 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003203/1.169, allocations: 3.63 MB / 0.8219 GB, free: 93.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003482/1.173, allocations: 2.012 MB / 0.8239 GB, free: 91.58 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002209/1.175, allocations: 2.05 MB / 0.8259 GB, free: 89.53 MB / 0.5762 GB Notification: Performance of SimCode: time 6.31e-07/1.175, allocations: 0 / 0.8259 GB, free: 89.53 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09888/1.274, allocations: 64.6 MB / 0.889 GB, free: 25.31 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.43/20.71, allocations: 14.25 kB / 0.889 GB, free: 25.3 MB / 0.5762 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)