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.001715/0.001715, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00206/0.00206, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 247 MB, free: 10.42 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.2382/0.2382, allocations: 46.12 MB / 344.4 MB, free: 11.45 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.002331/0.002331, allocations: 79.88 kB / 480.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4091/0.4115, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit): time 0.0164/0.4279, allocations: 12.65 MB / 0.543 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01269/0.4407, allocations: 4.053 MB / 0.5469 GB, free: 328 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003605/0.4443, allocations: 68.53 kB / 0.547 GB, free: 316 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005136/0.4495, allocations: 1.844 MB / 0.5488 GB, free: 15.05 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006436/0.456, allocations: 1.763 MB / 0.5505 GB, free: 13.28 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002027/0.4581, allocations: 491 kB / 0.551 GB, free: 12.8 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006842/0.4649, allocations: 3.771 MB / 0.5547 GB, free: 9.023 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005243/0.4702, allocations: 2.863 MB / 0.5575 GB, free: 6.105 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003536/0.4738, allocations: 1.339 MB / 0.5588 GB, free: 4.762 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00401/0.4779, allocations: 1.865 MB / 0.5606 GB, free: 2.891 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001241/0.4791, allocations: 284 kB / 0.5609 GB, free: 2.613 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003439/0.4826, allocations: 1.1 MB / 0.5619 GB, free: 1.512 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00285/0.4855, allocations: 1.73 MB / 0.5636 GB, free: 15.78 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003565/0.4891, allocations: 2.069 MB / 0.5656 GB, free: 13.7 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009811/0.4989, allocations: 6.918 MB / 0.5724 GB, free: 6.75 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.185e-06/0.499, allocations: 0 / 0.5724 GB, free: 6.75 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.168e-06/0.499, allocations: 3.984 kB / 0.5724 GB, free: 6.746 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002171/0.4992, allocations: 0 / 0.5724 GB, free: 6.746 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: 1622 * Number of variables: 1622 Notification: Performance of Generate backend data structure: time 0.01356/0.5128, allocations: 4.91 MB / 0.5772 GB, free: 1.758 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.64e-05/0.5128, allocations: 11.97 kB / 0.5772 GB, free: 1.746 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001984/0.5148, allocations: 0.7575 MB / 0.5779 GB, free: 0.9766 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01147/0.5263, allocations: 3.149 MB / 0.581 GB, free: 13.82 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005212/0.5316, allocations: 2.275 MB / 0.5832 GB, free: 11.5 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000216/0.5318, allocations: 217.8 kB / 0.5835 GB, free: 11.28 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009267/0.5327, allocations: 295.7 kB / 0.5837 GB, free: 10.99 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02038/0.5531, allocations: 10.94 MB / 0.5944 GB, free: 15.61 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001062/0.5533, allocations: 27.77 kB / 0.5944 GB, free: 15.58 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005077/0.5538, allocations: 139.8 kB / 0.5946 GB, free: 15.44 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004404/0.5582, allocations: 2.499 MB / 0.597 GB, free: 12.94 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02123/0.5794, allocations: 10.28 MB / 0.6071 GB, free: 2.633 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05601/0.6355, allocations: 34.94 MB / 0.6412 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008239/0.6438, allocations: 4.296 MB / 0.6454 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00315/0.647, allocations: 2.119 MB / 0.6475 GB, free: 8.23 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001319/0.6483, allocations: 1.311 MB / 0.6487 GB, free: 6.699 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.788e-05/0.6484, allocations: 60.5 kB / 0.6488 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=235): time 5.04e-06/0.6484, allocations: 0 / 0.6488 GB, free: 6.629 MB / 0.4981 GB Notification: Performance of matching and sorting (n=256): time 0.04221/0.6906, allocations: 13.71 MB / 0.6622 GB, free: 8.867 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.432e-05/0.6907, allocations: 77.34 kB / 0.6623 GB, free: 8.781 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004867/0.6956, allocations: 2.763 MB / 0.665 GB, free: 6.004 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004032/0.696, allocations: 65.69 kB / 0.665 GB, free: 5.934 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002438/0.6985, allocations: 2.94 MB / 0.6679 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001374/0.6999, allocations: 0.9882 MB / 0.6688 GB, free: 1.969 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002284/0.7022, allocations: 1.132 MB / 0.67 GB, free: 0.8242 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001315/0.7023, allocations: 305.1 kB / 0.6702 GB, free: 0.5234 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004071/0.7064, allocations: 2.303 MB / 0.6725 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007186/0.7136, allocations: 5.383 MB / 0.6778 GB, free: 7.32 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01155/0.7252, allocations: 8.446 MB / 0.686 GB, free: 13.36 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001587/0.7254, allocations: 32 kB / 0.686 GB, free: 13.33 MB / 0.545 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02117/0.7466, allocations: 8.414 MB / 0.6942 GB, free: 4.902 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001622/0.7468, allocations: 58.34 kB / 0.6943 GB, free: 4.848 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002201/0.747, allocations: 111.9 kB / 0.6944 GB, free: 4.738 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004052/0.7511, allocations: 1.032 MB / 0.6954 GB, free: 3.695 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00472/0.7558, allocations: 1.291 MB / 0.6967 GB, free: 2.402 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003332/0.7592, allocations: 2.601 MB / 0.6992 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003688/0.7629, allocations: 303.8 kB / 0.6995 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009827/0.7639, allocations: 335.9 kB / 0.6998 GB, free: 15.03 MB / 0.5606 GB 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.005167/0.7691, allocations: 2.173 MB / 0.7019 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000866/0.77, allocations: 294 kB / 0.7022 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01083/0.7808, allocations: 4.963 MB / 0.7071 GB, free: 7.523 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.706e-05/0.781, allocations: 51.92 kB / 0.7071 GB, free: 7.473 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/0.781, allocations: 0 / 0.7071 GB, free: 7.473 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-05/0.781, allocations: 15.91 kB / 0.7071 GB, free: 7.457 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02297/0.804, allocations: 11.21 MB / 0.7181 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.723e-05/0.8041, allocations: 11.98 kB / 0.7181 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001948/0.806, allocations: 407.4 kB / 0.7185 GB, free: 11.66 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003549/0.8096, allocations: 0.9038 MB / 0.7194 GB, free: 10.74 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004195/0.81, allocations: 59.92 kB / 0.7194 GB, free: 10.68 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002973/0.813, allocations: 2.414 MB / 0.7218 GB, free: 8.129 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.625e-05/0.8131, allocations: 19.98 kB / 0.7218 GB, free: 8.109 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01434/0.8274, allocations: 7.391 MB / 0.729 GB, free: 0.5508 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007711/0.8282, allocations: 331.1 kB / 0.7293 GB, free: 212 kB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007775/0.829, allocations: 55.92 kB / 0.7294 GB, free: 156 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001652/0.8307, allocations: 131.8 kB / 0.7295 GB, free: 24 kB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.2992/1.13, allocations: 149 kB / 0.7297 GB, free: 176.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002758/1.13, allocations: 77.64 kB / 0.7297 GB, free: 176.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004099/1.134, allocations: 1.69 MB / 0.7314 GB, free: 176.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.924e-06/1.134, allocations: 0 / 0.7314 GB, free: 176.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005518/1.14, allocations: 0.9533 MB / 0.7323 GB, free: 176.5 MB / 0.5762 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.01282/1.153, allocations: 8.053 MB / 0.7402 GB, free: 173.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.008478/1.161, allocations: 6.089 MB / 0.7461 GB, free: 171.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.481e-05/1.161, allocations: 0 / 0.7461 GB, free: 171.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003943/1.165, allocations: 2.561 MB / 0.7486 GB, free: 170.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002961/1.168, allocations: 463 kB / 0.7491 GB, free: 170.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05358/1.222, allocations: 42.84 MB / 0.7909 GB, free: 127.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003088/1.225, allocations: 3.386 MB / 0.7942 GB, free: 123.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003675/1.229, allocations: 2.041 MB / 0.7962 GB, free: 121.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002469/1.231, allocations: 1.85 MB / 0.798 GB, free: 119.9 MB / 0.5762 GB Notification: Performance of SimCode: time 1.212e-06/1.231, allocations: 7.938 kB / 0.798 GB, free: 119.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09528/1.326, allocations: 58.39 MB / 0.855 GB, free: 61.81 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.02/18.35, allocations: 15.73 kB / 0.855 GB, free: 61.79 MB / 0.5762 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)