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.001833/0.001833, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002314/0.002314, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 227.4 MB / 246.8 MB, free: 10.52 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.2516/0.2516, allocations: 46.12 MB / 344.2 MB, free: 11.54 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.002216/0.002216, allocations: 83.61 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.156/0.1582, allocations: 62.46 MB / 480.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.SphericalSpherical): time 0.01441/0.1727, allocations: 7.598 MB / 487.8 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00742/0.1801, allocations: 2.574 MB / 490.4 MB, free: 10.9 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001007/0.1812, allocations: 35.94 kB / 490.4 MB, free: 10.87 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002641/0.1839, allocations: 0.9031 MB / 491.3 MB, free: 9.961 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001008/0.1849, allocations: 302.3 kB / 491.6 MB, free: 9.664 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001036/0.186, allocations: 323.3 kB / 491.9 MB, free: 9.348 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001144/0.1871, allocations: 0.7242 MB / 492.7 MB, free: 8.621 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001303/0.1885, allocations: 0.8142 MB / 493.5 MB, free: 7.797 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005291/0.189, allocations: 362.6 kB / 493.8 MB, free: 7.441 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001135/0.1901, allocations: 0.6505 MB / 494.5 MB, free: 6.789 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002434/0.1904, allocations: 104 kB / 494.6 MB, free: 6.688 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001169/0.1916, allocations: 0.5226 MB / 495.1 MB, free: 6.164 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007031/0.1923, allocations: 494.7 kB / 495.6 MB, free: 5.68 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008527/0.1932, allocations: 0.5671 MB / 496.1 MB, free: 5.109 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00262/0.1958, allocations: 1.714 MB / 497.9 MB, free: 3.391 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.1958, allocations: 0 / 497.9 MB, free: 3.391 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1959, allocations: 7.938 kB / 497.9 MB, free: 3.383 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.409e-05/0.1959, allocations: 0 / 497.9 MB, free: 3.383 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.004859/0.2008, allocations: 1.63 MB / 499.5 MB, free: 1.699 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.802e-05/0.2008, allocations: 8.031 kB / 499.5 MB, free: 1.691 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003176/0.2011, allocations: 182.5 kB / 499.7 MB, free: 1.504 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001092/0.2023, allocations: 171.2 kB / 499.9 MB, free: 1.336 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001525/0.2038, allocations: 0.62 MB / 0.4887 GB, free: 0.6797 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.832e-05/0.2039, allocations: 62.09 kB / 0.4888 GB, free: 0.6172 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002683/0.2042, allocations: 83.95 kB / 0.4889 GB, free: 0.5352 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008517/0.2127, allocations: 2.67 MB / 0.4915 GB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.5e-05/0.2128, allocations: 7.938 kB / 0.4915 GB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001426/0.2129, allocations: 31.97 kB / 0.4915 GB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007988/0.2137, allocations: 385.7 kB / 0.4919 GB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00887/0.2226, allocations: 2.369 MB / 0.4942 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01541/0.2381, allocations: 8.267 MB / 0.5023 GB, free: 2.406 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005845/0.244, allocations: 0.9717 MB / 0.5032 GB, free: 1.422 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005956/0.2446, allocations: 264.8 kB / 0.5035 GB, free: 1.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2225/0.4671, allocations: 1.728 MB / 0.5052 GB, free: 41.68 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.911e-05/0.4672, allocations: 36.03 kB / 0.5052 GB, free: 41.64 MB / 382.1 MB Notification: Performance of pre-optimization done (n=44): time 2.805e-06/0.4672, allocations: 0 / 0.5052 GB, free: 41.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.0122/0.4794, allocations: 2.942 MB / 0.5081 GB, free: 41.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/0.4795, allocations: 62.47 kB / 0.5081 GB, free: 41.46 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001343/0.4808, allocations: 0.904 MB / 0.509 GB, free: 41.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.603e-05/0.4809, allocations: 35.77 kB / 0.5091 GB, free: 41.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000417/0.4813, allocations: 0.6543 MB / 0.5097 GB, free: 40.62 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001618/0.4814, allocations: 219.3 kB / 0.5099 GB, free: 40.46 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003219/0.4818, allocations: 245 kB / 0.5101 GB, free: 40.33 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.4819, allocations: 400 kB / 0.5105 GB, free: 39.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005255/0.4825, allocations: 374.9 kB / 0.5109 GB, free: 39.87 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001228/0.4837, allocations: 0.9956 MB / 0.5118 GB, free: 38.92 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001895/0.4856, allocations: 1.493 MB / 0.5133 GB, free: 37.7 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.286e-05/0.4856, allocations: 5.875 kB / 0.5133 GB, free: 37.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002662/0.4883, allocations: 1.398 MB / 0.5147 GB, free: 37.13 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.201e-05/0.4884, allocations: 13.27 kB / 0.5147 GB, free: 37.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.385e-05/0.4884, allocations: 22.25 kB / 0.5147 GB, free: 37.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.753e-05/0.4885, allocations: 29.69 kB / 0.5147 GB, free: 37.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.4898, allocations: 325.4 kB / 0.5151 GB, free: 37.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007866/0.4906, allocations: 1.45 MB / 0.5165 GB, free: 35.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007837/0.4914, allocations: 57.58 kB / 0.5165 GB, free: 35.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.833e-05/0.4915, allocations: 64.12 kB / 0.5166 GB, free: 35.6 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.0007602/0.4922, allocations: 0.4906 MB / 0.5171 GB, free: 35.31 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001914/0.4924, allocations: 86.75 kB / 0.5171 GB, free: 35.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001955/0.4926, allocations: 114.4 kB / 0.5173 GB, free: 35.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.4926, allocations: 6.562 kB / 0.5173 GB, free: 35.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/0.4927, allocations: 0.8438 kB / 0.5173 GB, free: 35.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.4927, allocations: 7.594 kB / 0.5173 GB, free: 35.19 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00369/0.4964, allocations: 2.174 MB / 0.5194 GB, free: 34.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.147e-05/0.4964, allocations: 5.812 kB / 0.5194 GB, free: 34.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005008/0.4969, allocations: 125.9 kB / 0.5195 GB, free: 34.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.358e-05/0.4969, allocations: 12.77 kB / 0.5195 GB, free: 34.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.343e-05/0.497, allocations: 18.12 kB / 0.5195 GB, free: 34.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006278/0.4976, allocations: 1.425 MB / 0.5209 GB, free: 32.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.613e-06/0.4976, allocations: 7.125 kB / 0.5209 GB, free: 32.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009163/0.4985, allocations: 0.828 MB / 0.5218 GB, free: 32.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001917/0.4987, allocations: 162.5 kB / 0.5219 GB, free: 31.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.006e-05/0.4988, allocations: 20.44 kB / 0.5219 GB, free: 31.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003407/0.4992, allocations: 17.38 kB / 0.5219 GB, free: 31.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.091e-05/0.4993, allocations: 63.06 kB / 0.522 GB, free: 31.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.002e-05/0.4993, allocations: 21.12 kB / 0.522 GB, free: 31.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007831/0.5001, allocations: 0.5927 MB / 0.5226 GB, free: 31.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5001, allocations: 3.938 kB / 0.5226 GB, free: 31.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00111/0.5012, allocations: 218.1 kB / 0.5228 GB, free: 31.59 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.001071/0.5023, allocations: 1.399 MB / 0.5242 GB, free: 30.46 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001839/0.5042, allocations: 0.9411 MB / 0.5251 GB, free: 30.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/0.5042, allocations: 1.125 kB / 0.5251 GB, free: 30.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004634/0.5046, allocations: 285 kB / 0.5254 GB, free: 30.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000877/0.5055, allocations: 121.1 kB / 0.5255 GB, free: 30.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01139/0.5169, allocations: 9.801 MB / 0.5351 GB, free: 23.4 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006603/0.5176, allocations: 1.228 MB / 0.5363 GB, free: 22.16 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007996/0.5184, allocations: 335.6 kB / 0.5366 GB, free: 21.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004257/0.5189, allocations: 411.3 kB / 0.537 GB, free: 21.42 MB / 382.1 MB Notification: Performance of SimCode: time 1.313e-06/0.5189, allocations: 4 kB / 0.537 GB, free: 21.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04203/0.5609, allocations: 16.9 MB / 0.5535 GB, free: 4.684 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.482/9.043, allocations: 0.75 kB / 0.5535 GB, free: 4.684 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_SphericalSpherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_SphericalSpherical.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe 2>&1)