Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.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.Spherical,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Spherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001698/0.001698, 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.001999/0.001999, 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.551/1.551, allocations: 227.4 MB / 246.8 MB, free: 10.58 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.2366/0.2366, allocations: 46.11 MB / 344.2 MB, free: 11.6 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.002311/0.002311, allocations: 82.55 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1244, allocations: 62.45 MB / 480.2 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Spherical): time 0.01419/0.1386, allocations: 11.76 MB / 492 MB, free: 9.348 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009617/0.1483, allocations: 4.061 MB / 496 MB, free: 5.273 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002096/0.1504, allocations: 59.88 kB / 496.1 MB, free: 5.215 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00282/0.1533, allocations: 1.179 MB / 497.3 MB, free: 4.031 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004292/0.1576, allocations: 1.72 MB / 499 MB, free: 2.309 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001498/0.1591, allocations: 0.5535 MB / 499.5 MB, free: 1.754 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005618/0.1648, allocations: 4.031 MB / 0.4918 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002258/0.167, allocations: 1.784 MB / 0.4935 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001674/0.1687, allocations: 1.152 MB / 0.4946 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001977/0.1707, allocations: 1.662 MB / 0.4963 GB, free: 9.082 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004545/0.1712, allocations: 220 kB / 0.4965 GB, free: 8.867 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002446/0.1736, allocations: 1.287 MB / 0.4977 GB, free: 7.578 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001723/0.1754, allocations: 1.566 MB / 0.4993 GB, free: 6.008 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002276/0.1777, allocations: 1.836 MB / 0.501 GB, free: 4.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2503/0.428, allocations: 5.901 MB / 0.5068 GB, free: 18.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.066e-06/0.428, allocations: 0 / 0.5068 GB, free: 18.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.4281, allocations: 0 / 0.5068 GB, free: 18.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000255/0.4283, allocations: 7.328 kB / 0.5068 GB, free: 18.75 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: 1482 * Number of variables: 1482 Notification: Performance of Generate backend data structure: time 0.01174/0.4401, allocations: 4.095 MB / 0.5108 GB, free: 17.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.4401, allocations: 9.344 kB / 0.5108 GB, free: 17.05 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001325/0.4415, allocations: 0.6861 MB / 0.5115 GB, free: 16.97 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02144/0.4629, allocations: 6.154 MB / 0.5175 GB, free: 16.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007457/0.4704, allocations: 2.602 MB / 0.52 GB, free: 16.21 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002505/0.4707, allocations: 185.9 kB / 0.5202 GB, free: 16.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001707/0.4724, allocations: 312.6 kB / 0.5205 GB, free: 16.19 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01841/0.4908, allocations: 10.71 MB / 0.531 GB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-05/0.491, allocations: 29.17 kB / 0.531 GB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005311/0.4915, allocations: 119.1 kB / 0.5311 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003712/0.4952, allocations: 2.458 MB / 0.5335 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01825/0.5135, allocations: 10.17 MB / 0.5435 GB, free: 3.152 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05464/0.5682, allocations: 35.69 MB / 0.5783 GB, free: 15.16 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01197/0.5802, allocations: 5.586 MB / 0.5838 GB, free: 9.355 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004143/0.5844, allocations: 2.331 MB / 0.586 GB, free: 7.023 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002305/0.5867, allocations: 1.875 MB / 0.5879 GB, free: 4.824 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.381e-05/0.5868, allocations: 56.5 kB / 0.5879 GB, free: 4.762 MB / 430.1 MB Notification: Performance of pre-optimization done (n=224): time 8.616e-06/0.5868, allocations: 3.984 kB / 0.5879 GB, free: 4.758 MB / 430.1 MB Notification: Performance of matching and sorting (n=231): time 0.04086/0.6277, allocations: 14.95 MB / 0.6025 GB, free: 5.727 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001735/0.6295, allocations: 1.606 MB / 0.6041 GB, free: 3.969 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005531/0.635, allocations: 2.808 MB / 0.6068 GB, free: 1.148 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005907/0.6357, allocations: 59.17 kB / 0.6069 GB, free: 1.09 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002309/0.638, allocations: 2.673 MB / 0.6095 GB, free: 14.42 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001319/0.6393, allocations: 0.8571 MB / 0.6103 GB, free: 13.57 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001973/0.6413, allocations: 1.094 MB / 0.6114 GB, free: 12.47 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.6414, allocations: 306.6 kB / 0.6117 GB, free: 12.17 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004075/0.6455, allocations: 2.63 MB / 0.6143 GB, free: 9.535 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006811/0.6523, allocations: 5.628 MB / 0.6198 GB, free: 2.488 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01221/0.6646, allocations: 8.936 MB / 0.6285 GB, free: 8.516 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.659e-05/0.6647, allocations: 31.94 kB / 0.6285 GB, free: 8.484 MB / 478.1 MB Notification: Performance of matching and sorting (n=725) (initialization): time 0.06888/0.7336, allocations: 17.13 MB / 0.6453 GB, free: 7.684 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.396e-05/0.7338, allocations: 48 kB / 0.6453 GB, free: 7.637 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04798/0.7817, allocations: 10.64 MB / 0.6557 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05032/0.8321, allocations: 8.639 MB / 0.6641 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004735/0.8369, allocations: 1.302 MB / 0.6654 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03327/0.8702, allocations: 17.81 MB / 0.6828 GB, free: 0.9258 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00495/0.8752, allocations: 423.5 kB / 0.6832 GB, free: 0.5117 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001229/0.8764, allocations: 318.3 kB / 0.6835 GB, free: 208 kB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 476 * Number of states: 0 () * Number of discrete variables: 24 (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],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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 (653): * Single equations (assignments): 642 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,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 {(3,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.00398/0.8804, allocations: 2.026 MB / 0.6855 GB, free: 14.17 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005488/0.881, allocations: 268.4 kB / 0.6857 GB, free: 13.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00967/0.8906, allocations: 5.116 MB / 0.6907 GB, free: 8.758 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008189/0.8989, allocations: 4.393 MB / 0.695 GB, free: 4.344 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/0.8989, allocations: 7.938 kB / 0.695 GB, free: 4.336 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.883e-05/0.8989, allocations: 7.969 kB / 0.695 GB, free: 4.328 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02435/0.9233, allocations: 12.96 MB / 0.7077 GB, free: 7.227 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.967e-05/0.9234, allocations: 11.94 kB / 0.7077 GB, free: 7.215 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002144/0.9255, allocations: 459.3 kB / 0.7081 GB, free: 6.766 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003089/0.9286, allocations: 0.9425 MB / 0.7091 GB, free: 5.812 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002753/0.9289, allocations: 50.48 kB / 0.7091 GB, free: 5.766 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2614/1.19, allocations: 5.832 MB / 0.7148 GB, free: 197.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001141/1.192, allocations: 1.546 MB / 0.7163 GB, free: 196.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01552/1.207, allocations: 7.739 MB / 0.7239 GB, free: 194.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001035/1.208, allocations: 321.4 kB / 0.7242 GB, free: 194.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008609/1.209, allocations: 44.16 kB / 0.7242 GB, free: 194.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001889/1.211, allocations: 195.9 kB / 0.7244 GB, free: 194.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004599/1.211, allocations: 142.8 kB / 0.7245 GB, free: 194.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001743/1.212, allocations: 66.41 kB / 0.7246 GB, free: 194.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002978/1.215, allocations: 1.738 MB / 0.7263 GB, free: 193.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.663e-06/1.215, allocations: 2.516 kB / 0.7263 GB, free: 193.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005256/1.22, allocations: 1.079 MB / 0.7274 GB, free: 193.6 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],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 (170): * Single equations (assignments): 161 * 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): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems 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): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01119/1.231, allocations: 8.39 MB / 0.7356 GB, free: 190.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01341/1.244, allocations: 9.577 MB / 0.7449 GB, free: 186.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.272e-05/1.245, allocations: 0 / 0.7449 GB, free: 186.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003551/1.248, allocations: 2.529 MB / 0.7474 GB, free: 184.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002413/1.251, allocations: 390.2 kB / 0.7477 GB, free: 184.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1279/1.378, allocations: 59.67 MB / 0.806 GB, free: 120.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00276/1.381, allocations: 3.164 MB / 0.8091 GB, free: 117.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003972/1.385, allocations: 2.056 MB / 0.8111 GB, free: 115.4 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001917/1.387, allocations: 1.659 MB / 0.8127 GB, free: 113.8 MB / 0.545 GB Notification: Performance of SimCode: time 1.252e-06/1.387, allocations: 0 / 0.8127 GB, free: 113.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1097/1.497, allocations: 73.71 MB / 0.8847 GB, free: 40.18 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.7/15.2, allocations: 11 kB / 0.8847 GB, free: 40.17 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical_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_Spherical.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Spherical.pipe 2>&1)