Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.SphericalSpherical.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.SphericalSpherical,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.SphericalSpherical,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0013/0.0013, 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.001352/0.001352, 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.494/1.494, allocations: 227.4 MB / 246.8 MB, free: 10.62 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.2428/0.2428, 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.002367/0.002367, allocations: 85.75 kB / 417.8 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1173, allocations: 62.44 MB / 480.2 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.SphericalSpherical): time 0.009586/0.1269, allocations: 7.587 MB / 487.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005002/0.1319, allocations: 2.581 MB / 490.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009266/0.1329, allocations: 31.94 kB / 490.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002158/0.1351, allocations: 0.9032 MB / 491.3 MB, free: 10.01 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001011/0.1361, allocations: 302.3 kB / 491.6 MB, free: 9.711 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008401/0.137, allocations: 319.2 kB / 491.9 MB, free: 9.398 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00103/0.138, allocations: 0.7281 MB / 492.6 MB, free: 8.668 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001156/0.1392, allocations: 0.8181 MB / 493.5 MB, free: 7.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006652/0.1399, allocations: 358.6 kB / 493.8 MB, free: 7.488 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001123/0.1411, allocations: 0.6582 MB / 494.5 MB, free: 6.828 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002107/0.1413, allocations: 104 kB / 494.6 MB, free: 6.727 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008798/0.1422, allocations: 0.5148 MB / 495.1 MB, free: 6.211 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005009/0.1427, allocations: 0.4909 MB / 495.6 MB, free: 5.719 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000602/0.1433, allocations: 0.5672 MB / 496.1 MB, free: 5.148 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001795/0.1451, allocations: 1.721 MB / 497.9 MB, free: 3.422 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1451, allocations: 0 / 497.9 MB, free: 3.422 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1451, allocations: 0 / 497.9 MB, free: 3.422 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.607e-05/0.1451, allocations: 0 / 497.9 MB, free: 3.422 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 332 * Number of variables: 332 Notification: Performance of Generate backend data structure: time 0.003168/0.1483, allocations: 1.623 MB / 499.5 MB, free: 1.746 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.1484, allocations: 12.03 kB / 499.5 MB, free: 1.734 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002147/0.1486, allocations: 178.5 kB / 499.7 MB, free: 1.551 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006537/0.1493, allocations: 167.2 kB / 499.8 MB, free: 1.387 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001006/0.1503, allocations: 0.6317 MB / 0.4887 GB, free: 0.7188 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.376e-05/0.1503, allocations: 58.11 kB / 0.4888 GB, free: 0.6602 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001818/0.1505, allocations: 75.97 kB / 0.4889 GB, free: 0.5859 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005128/0.1557, allocations: 2.674 MB / 0.4915 GB, free: 13.76 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.925e-05/0.1557, allocations: 11.94 kB / 0.4915 GB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001051/0.1558, allocations: 39.91 kB / 0.4915 GB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000499/0.1563, allocations: 385.7 kB / 0.4919 GB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005173/0.1615, allocations: 2.357 MB / 0.4942 GB, free: 10.97 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009511/0.171, allocations: 8.275 MB / 0.5023 GB, free: 2.445 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003877/0.175, allocations: 0.9777 MB / 0.5032 GB, free: 1.457 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004311/0.1754, allocations: 256.7 kB / 0.5035 GB, free: 1.203 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2234/0.3988, allocations: 1.722 MB / 0.5052 GB, free: 41.71 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.956e-05/0.3989, allocations: 36.36 kB / 0.5052 GB, free: 41.67 MB / 382.1 MB Notification: Performance of pre-optimization done (n=44): time 2.826e-06/0.3989, allocations: 0 / 0.5052 GB, free: 41.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.01348/0.4124, allocations: 2.941 MB / 0.5081 GB, free: 41.55 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.4125, allocations: 57.91 kB / 0.5081 GB, free: 41.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001766/0.4143, allocations: 0.9083 MB / 0.509 GB, free: 41.17 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.715e-05/0.4143, allocations: 35.83 kB / 0.509 GB, free: 41.14 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005116/0.4148, allocations: 0.6531 MB / 0.5097 GB, free: 40.63 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002095/0.4151, allocations: 220.1 kB / 0.5099 GB, free: 40.47 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004559/0.4155, allocations: 248 kB / 0.5101 GB, free: 40.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.4157, allocations: 400.6 kB / 0.5105 GB, free: 39.99 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005888/0.4163, allocations: 366.6 kB / 0.5109 GB, free: 39.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009146/0.4172, allocations: 1.002 MB / 0.5118 GB, free: 38.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001673/0.4189, allocations: 1.493 MB / 0.5133 GB, free: 37.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.231e-05/0.419, allocations: 7.875 kB / 0.5133 GB, free: 37.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.00245/0.4214, allocations: 1.392 MB / 0.5147 GB, free: 37.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.185e-05/0.4215, allocations: 14.72 kB / 0.5147 GB, free: 37.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.146e-05/0.4215, allocations: 21.8 kB / 0.5147 GB, free: 37.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.511e-05/0.4216, allocations: 31.34 kB / 0.5147 GB, free: 37.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/0.4229, allocations: 323.8 kB / 0.515 GB, free: 37.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009355/0.4239, allocations: 1.445 MB / 0.5165 GB, free: 35.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009351/0.4248, allocations: 60.09 kB / 0.5165 GB, free: 35.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001162/0.4249, allocations: 67.94 kB / 0.5166 GB, free: 35.62 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 100 * Number of states: 0 () * Number of discrete variables: 27 (Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],Prismatic1.boxColor[3],Prismatic1.boxColor[2],Prismatic1.boxColor[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[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 (157): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007873/0.4257, allocations: 0.4956 MB / 0.5171 GB, free: 35.33 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002518/0.426, allocations: 86.22 kB / 0.5171 GB, free: 35.28 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000223/0.4262, allocations: 116 kB / 0.5173 GB, free: 35.21 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.4262, allocations: 5.844 kB / 0.5173 GB, free: 35.21 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.4262, allocations: 0 / 0.5173 GB, free: 35.21 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.4263, allocations: 7.359 kB / 0.5173 GB, free: 35.21 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004145/0.4304, allocations: 2.174 MB / 0.5194 GB, free: 34.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-05/0.4304, allocations: 10.44 kB / 0.5194 GB, free: 34.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005343/0.431, allocations: 124.4 kB / 0.5195 GB, free: 34.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.627e-05/0.431, allocations: 10.02 kB / 0.5195 GB, free: 34.12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.231e-05/0.4311, allocations: 14 kB / 0.5195 GB, free: 34.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006595/0.4317, allocations: 1.43 MB / 0.5209 GB, free: 32.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.859e-06/0.4317, allocations: 10.84 kB / 0.5209 GB, free: 32.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009959/0.4327, allocations: 0.8253 MB / 0.5218 GB, free: 32.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002349/0.433, allocations: 161.9 kB / 0.5219 GB, free: 31.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001362/0.4331, allocations: 24.55 kB / 0.5219 GB, free: 31.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003914/0.4335, allocations: 17.22 kB / 0.5219 GB, free: 31.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.4336, allocations: 55.34 kB / 0.522 GB, free: 31.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.803e-05/0.4337, allocations: 20.84 kB / 0.522 GB, free: 31.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009614/0.4347, allocations: 0.5935 MB / 0.5226 GB, free: 31.65 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4347, allocations: 3.938 kB / 0.5226 GB, free: 31.64 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00143/0.4361, allocations: 214.5 kB / 0.5228 GB, free: 31.62 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 0 () * 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 (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001308/0.4374, allocations: 1.406 MB / 0.5242 GB, free: 30.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001848/0.4393, allocations: 0.9403 MB / 0.5251 GB, free: 30.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.56e-05/0.4393, allocations: 1.375 kB / 0.5251 GB, free: 30.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005017/0.4398, allocations: 283 kB / 0.5254 GB, free: 30.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009008/0.4407, allocations: 132.5 kB / 0.5255 GB, free: 30.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.013/0.4537, allocations: 9.805 MB / 0.5351 GB, free: 23.42 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007815/0.4546, allocations: 1.219 MB / 0.5363 GB, free: 22.22 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000851/0.4554, allocations: 344.7 kB / 0.5366 GB, free: 21.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004115/0.4559, allocations: 403.3 kB / 0.537 GB, free: 21.48 MB / 382.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4559, allocations: 0 / 0.537 GB, free: 21.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04083/0.4967, allocations: 16.91 MB / 0.5535 GB, free: 4.738 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.296/8.793, allocations: 8.25 kB / 0.5535 GB, free: 4.734 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.SphericalSpherical.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.SphericalSpherical_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_SphericalSpherical.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe 2>&1)