Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_MultiBody_Joints_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.SphericalSpherical,fileNamePrefix="ModelicaTest_trunk_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.0008311/0.0008312, allocations: 98.92 kB / 17 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009476/0.0009477, allocations: 191 kB / 17.9 MB, free: 5.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2247/0.2247, allocations: 45.92 MB / 344.1 MB, free: 12.22 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002912/0.0002912, allocations: 11.98 kB / 418.2 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1525/0.1528, allocations: 63.46 MB / 481.6 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.SphericalSpherical): time 0.01523/0.1681, allocations: 16.28 MB / 497.9 MB, free: 4.953 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008846/0.177, allocations: 4.044 MB / 0.4902 GB, free: 0.8945 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003204/0.1802, allocations: 71.81 kB / 0.4903 GB, free: 0.8242 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00187/0.1821, allocations: 0.6453 MB / 0.4909 GB, free: 180 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00491/0.187, allocations: 1.825 MB / 0.4927 GB, free: 14.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000851/0.1879, allocations: 247.6 kB / 0.4929 GB, free: 14.1 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001084/0.189, allocations: 0.9114 MB / 0.4938 GB, free: 13.19 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001424/0.1904, allocations: 1.078 MB / 0.4949 GB, free: 12.08 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003414/0.1908, allocations: 290.7 kB / 0.4951 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007341/0.1915, allocations: 0.6194 MB / 0.4957 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.264e-05/0.1916, allocations: 56 kB / 0.4958 GB, free: 11.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006962/0.1923, allocations: 403.4 kB / 0.4962 GB, free: 10.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004194/0.1928, allocations: 442.8 kB / 0.4966 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001777/0.193, allocations: 213.1 kB / 0.4968 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001152/0.1941, allocations: 1.333 MB / 0.4981 GB, free: 8.742 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1941, allocations: 0 / 0.4981 GB, free: 8.742 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1941, allocations: 4 kB / 0.4981 GB, free: 8.738 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.134e-05/0.1942, allocations: 0 / 0.4981 GB, free: 8.738 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: 332 * Number of variables: 332 Notification: Performance of Generate backend data structure: time 0.002481/0.1966, allocations: 1.447 MB / 0.4995 GB, free: 7.242 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.1967, allocations: 12.03 kB / 0.4995 GB, free: 7.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002133/0.1969, allocations: 182.3 kB / 0.4997 GB, free: 7.043 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005953/0.1975, allocations: 162.3 kB / 0.4999 GB, free: 6.883 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000876/0.1984, allocations: 0.6229 MB / 0.5005 GB, free: 6.215 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.167e-05/0.1984, allocations: 53.97 kB / 0.5005 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000163/0.1986, allocations: 83.91 kB / 0.5006 GB, free: 6.082 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004475/0.2031, allocations: 2.677 MB / 0.5032 GB, free: 3.258 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.972e-05/0.2031, allocations: 7.938 kB / 0.5032 GB, free: 3.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.187e-05/0.2032, allocations: 31.97 kB / 0.5032 GB, free: 3.219 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004558/0.2037, allocations: 389.7 kB / 0.5036 GB, free: 2.836 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004695/0.2084, allocations: 2.361 MB / 0.5059 GB, free: 484 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2818/0.4903, allocations: 8.254 MB / 0.514 GB, free: 37.58 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003494/0.4938, allocations: 0.9789 MB / 0.5149 GB, free: 37.39 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003984/0.4942, allocations: 259.9 kB / 0.5152 GB, free: 37.3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001231/0.4955, allocations: 1.732 MB / 0.5169 GB, free: 35.8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/0.4955, allocations: 40.89 kB / 0.5169 GB, free: 35.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=44): time 2.705e-06/0.4955, allocations: 0 / 0.5169 GB, free: 35.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.01117/0.5067, allocations: 2.965 MB / 0.5198 GB, free: 35.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.518e-05/0.5068, allocations: 62.39 kB / 0.5199 GB, free: 35 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001463/0.5082, allocations: 0.899 MB / 0.5208 GB, free: 34.63 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/0.5083, allocations: 36.11 kB / 0.5208 GB, free: 34.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005174/0.5088, allocations: 0.659 MB / 0.5214 GB, free: 34.08 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001768/0.509, allocations: 216.1 kB / 0.5216 GB, free: 33.92 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.438e-05/0.5091, allocations: 25.16 kB / 0.5217 GB, free: 33.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.5092, allocations: 404.5 kB / 0.522 GB, free: 33.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000607/0.5098, allocations: 366.7 kB / 0.5224 GB, free: 33.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008492/0.5107, allocations: 0.9955 MB / 0.5234 GB, free: 32.47 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008252/0.5115, allocations: 0.5745 MB / 0.5239 GB, free: 32.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.118e-05/0.5115, allocations: 6.594 kB / 0.5239 GB, free: 32.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002216/0.5138, allocations: 1.385 MB / 0.5253 GB, free: 31.67 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.678e-05/0.5138, allocations: 17.22 kB / 0.5253 GB, free: 31.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.354e-05/0.5139, allocations: 25.91 kB / 0.5253 GB, free: 31.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.883e-05/0.5139, allocations: 33.41 kB / 0.5254 GB, free: 31.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00116/0.5151, allocations: 316.1 kB / 0.5257 GB, free: 31.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007182/0.5158, allocations: 1.37 MB / 0.527 GB, free: 30.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007466/0.5166, allocations: 55.69 kB / 0.5271 GB, free: 30.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.642e-05/0.5167, allocations: 64.88 kB / 0.5271 GB, free: 30.23 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006852/0.5174, allocations: 0.4899 MB / 0.5276 GB, free: 29.94 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.5175, allocations: 90.44 kB / 0.5277 GB, free: 29.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002164/0.5177, allocations: 117.9 kB / 0.5278 GB, free: 29.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.5177, allocations: 5.812 kB / 0.5278 GB, free: 29.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.215e-05/0.5177, allocations: 0 / 0.5278 GB, free: 29.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.5177, allocations: 7.703 kB / 0.5278 GB, free: 29.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00349/0.5212, allocations: 2.181 MB / 0.5299 GB, free: 28.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/0.5213, allocations: 5.75 kB / 0.5299 GB, free: 28.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004932/0.5218, allocations: 125.2 kB / 0.5301 GB, free: 28.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.789e-05/0.5218, allocations: 9.469 kB / 0.5301 GB, free: 28.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.93e-05/0.5218, allocations: 18.06 kB / 0.5301 GB, free: 28.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006411/0.5225, allocations: 1.325 MB / 0.5314 GB, free: 27.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.5225, allocations: 7.875 kB / 0.5314 GB, free: 27.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009289/0.5234, allocations: 0.8284 MB / 0.5322 GB, free: 26.46 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001871/0.5236, allocations: 174.2 kB / 0.5324 GB, free: 26.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.703e-05/0.5237, allocations: 17.62 kB / 0.5324 GB, free: 26.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003243/0.5241, allocations: 20.23 kB / 0.5324 GB, free: 26.28 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.007e-05/0.5241, allocations: 53.09 kB / 0.5324 GB, free: 26.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.495e-05/0.5242, allocations: 22.34 kB / 0.5325 GB, free: 26.24 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007918/0.525, allocations: 0.591 MB / 0.533 GB, free: 25.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.525, allocations: 0 / 0.533 GB, free: 25.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001187/0.5262, allocations: 217 kB / 0.5333 GB, free: 25.88 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001061/0.5272, allocations: 1.399 MB / 0.5346 GB, free: 24.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001217/0.5285, allocations: 0.8607 MB / 0.5355 GB, free: 24.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.5285, allocations: 4.188 kB / 0.5355 GB, free: 24.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000358/0.5289, allocations: 279 kB / 0.5357 GB, free: 24.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007126/0.5296, allocations: 120.4 kB / 0.5358 GB, free: 24.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009306/0.5389, allocations: 6.567 MB / 0.5423 GB, free: 17.97 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008636/0.5398, allocations: 1.216 MB / 0.5434 GB, free: 16.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000898/0.5407, allocations: 343.6 kB / 0.5438 GB, free: 16.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004864/0.5412, allocations: 411.3 kB / 0.5442 GB, free: 15.99 MB / 382.1 MB Notification: Performance of SimCode: time 4.479e-06/0.5412, allocations: 0 / 0.5442 GB, free: 15.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0295/0.5707, allocations: 17.03 MB / 0.5608 GB, free: 15.16 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001869/0.571, allocations: 194.2 kB / 0.561 GB, free: 14.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.129/2.7, allocations: 0 / 0.561 GB, free: 14.91 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.SphericalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.SphericalSpherical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_SphericalSpherical_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_SphericalSpherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.SphericalSpherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.SphericalSpherical_res.mat does not exist to compare? outputFormat=mat