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.0007926/0.0007928, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009004/0.0009005, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.8 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2162/0.2162, allocations: 46.18 MB / 345.2 MB, free: 11.37 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002521/0.0002522, allocations: 8 kB / 419.6 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1205, allocations: 63.57 MB / 483.2 MB, free: 4.043 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.SphericalSpherical): time 0.01688/0.1374, allocations: 17.32 MB / 0.4888 GB, free: 2.652 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009472/0.1469, allocations: 4.218 MB / 0.4929 GB, free: 14.42 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003229/0.1502, allocations: 63.88 kB / 0.4929 GB, free: 14.36 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005903/0.1508, allocations: 131.2 kB / 0.4931 GB, free: 14.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001034/0.1519, allocations: 286.6 kB / 0.4933 GB, free: 13.95 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009474/0.1528, allocations: 291.5 kB / 0.4936 GB, free: 13.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001388/0.1542, allocations: 1.11 MB / 0.4947 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001924/0.1562, allocations: 1.217 MB / 0.4959 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000504/0.1567, allocations: 274.7 kB / 0.4962 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001023/0.1577, allocations: 0.6114 MB / 0.4968 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002206/0.158, allocations: 59.98 kB / 0.4968 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009546/0.1589, allocations: 0.5186 MB / 0.4973 GB, free: 9.836 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005065/0.1595, allocations: 454.7 kB / 0.4978 GB, free: 9.391 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000659/0.1601, allocations: 0.5297 MB / 0.4983 GB, free: 8.852 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00172/0.1619, allocations: 1.658 MB / 0.4999 GB, free: 7.188 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1619, allocations: 4 kB / 0.4999 GB, free: 7.184 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1619, allocations: 0 / 0.4999 GB, free: 7.184 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.64e-05/0.1619, allocations: 0 / 0.4999 GB, free: 7.184 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.003222/0.1652, allocations: 1.436 MB / 0.5013 GB, free: 5.699 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.1652, allocations: 12.81 kB / 0.5013 GB, free: 5.688 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003809/0.1656, allocations: 182.5 kB / 0.5015 GB, free: 5.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007403/0.1664, allocations: 159.3 kB / 0.5016 GB, free: 5.344 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001039/0.1674, allocations: 0.6239 MB / 0.5022 GB, free: 4.676 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.229e-05/0.1675, allocations: 66.09 kB / 0.5023 GB, free: 4.613 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002221/0.1677, allocations: 87.95 kB / 0.5024 GB, free: 4.527 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005292/0.173, allocations: 2.678 MB / 0.505 GB, free: 1.703 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.823e-05/0.173, allocations: 15.83 kB / 0.505 GB, free: 1.688 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.852e-05/0.1732, allocations: 35.97 kB / 0.5051 GB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004705/0.1736, allocations: 385.7 kB / 0.5054 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2456/0.4192, allocations: 2.363 MB / 0.5077 GB, free: 19.63 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008489/0.4277, allocations: 8.261 MB / 0.5158 GB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003999/0.4318, allocations: 0.9838 MB / 0.5168 GB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004096/0.4322, allocations: 262.8 kB / 0.517 GB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00133/0.4335, allocations: 1.725 MB / 0.5187 GB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.582e-05/0.4336, allocations: 45.34 kB / 0.5187 GB, free: 13.9 MB / 382.1 MB Notification: Performance of pre-optimization done (n=44): time 3.376e-06/0.4336, allocations: 0 / 0.5187 GB, free: 13.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=58): time 0.01193/0.4455, allocations: 2.971 MB / 0.5216 GB, free: 13.6 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.046e-05/0.4456, allocations: 63.56 kB / 0.5217 GB, free: 13.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001211/0.4468, allocations: 0.8997 MB / 0.5226 GB, free: 13.38 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.4468, allocations: 32.61 kB / 0.5226 GB, free: 13.35 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000359/0.4472, allocations: 0.66 MB / 0.5233 GB, free: 12.97 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.4474, allocations: 219.6 kB / 0.5235 GB, free: 12.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/0.4475, allocations: 116 kB / 0.5236 GB, free: 12.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.4476, allocations: 402.3 kB / 0.524 GB, free: 12.51 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005678/0.4482, allocations: 365.6 kB / 0.5243 GB, free: 12.51 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007954/0.449, allocations: 0.9965 MB / 0.5253 GB, free: 11.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001418/0.4504, allocations: 1.493 MB / 0.5267 GB, free: 10.39 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.267e-05/0.4504, allocations: 6.75 kB / 0.5267 GB, free: 10.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002001/0.4524, allocations: 1.397 MB / 0.5281 GB, free: 9.953 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.972e-05/0.4525, allocations: 14.41 kB / 0.5281 GB, free: 9.953 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.852e-05/0.4525, allocations: 21.22 kB / 0.5281 GB, free: 9.953 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.594e-05/0.4526, allocations: 34.78 kB / 0.5282 GB, free: 9.949 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001143/0.4537, allocations: 318 kB / 0.5285 GB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007361/0.4545, allocations: 1.364 MB / 0.5298 GB, free: 8.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006807/0.4552, allocations: 57.91 kB / 0.5299 GB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.214e-05/0.4553, allocations: 63.78 kB / 0.5299 GB, free: 8.559 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.0006867/0.456, allocations: 0.4964 MB / 0.5304 GB, free: 8.293 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.4561, allocations: 87.44 kB / 0.5305 GB, free: 8.246 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002049/0.4563, allocations: 117.2 kB / 0.5306 GB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.4563, allocations: 10.06 kB / 0.5306 GB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/0.4563, allocations: 0 / 0.5306 GB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.4563, allocations: 4.969 kB / 0.5306 GB, free: 8.176 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003139/0.4595, allocations: 2.174 MB / 0.5327 GB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.095e-05/0.4595, allocations: 5.969 kB / 0.5328 GB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005025/0.46, allocations: 127.5 kB / 0.5329 GB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.184e-05/0.46, allocations: 9.281 kB / 0.5329 GB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.33e-05/0.4601, allocations: 17.44 kB / 0.5329 GB, free: 7.121 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005611/0.4606, allocations: 1.338 MB / 0.5342 GB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/0.4607, allocations: 10.94 kB / 0.5342 GB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008439/0.4615, allocations: 0.8256 MB / 0.535 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001474/0.4617, allocations: 169.1 kB / 0.5352 GB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.086e-05/0.4617, allocations: 17.62 kB / 0.5352 GB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003225/0.4621, allocations: 15.72 kB / 0.5352 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.05e-05/0.4622, allocations: 54.44 kB / 0.5353 GB, free: 5.008 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.027e-05/0.4622, allocations: 21.88 kB / 0.5353 GB, free: 5.004 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006789/0.4629, allocations: 0.5932 MB / 0.5359 GB, free: 4.766 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4629, allocations: 1.75 kB / 0.5359 GB, free: 4.766 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001043/0.4639, allocations: 218.9 kB / 0.5361 GB, free: 4.734 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.0009776/0.4649, allocations: 1.39 MB / 0.5374 GB, free: 3.625 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001211/0.4661, allocations: 0.8755 MB / 0.5383 GB, free: 3.406 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.4661, allocations: 0 / 0.5383 GB, free: 3.406 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003803/0.4665, allocations: 282.1 kB / 0.5386 GB, free: 3.324 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001349/0.4679, allocations: 124.6 kB / 0.5387 GB, free: 3.262 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0124/0.4803, allocations: 10.26 MB / 0.5487 GB, free: 11.08 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001456/0.4818, allocations: 1.22 MB / 0.5499 GB, free: 9.836 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001046/0.4829, allocations: 339.6 kB / 0.5502 GB, free: 9.5 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006688/0.4836, allocations: 403.3 kB / 0.5506 GB, free: 9.105 MB / 398.1 MB Notification: Performance of SimCode: time 1.753e-06/0.4836, allocations: 0 / 0.5506 GB, free: 9.105 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06525/0.5489, allocations: 16.22 MB / 0.5664 GB, free: 9.09 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002506/0.5491, allocations: 204.5 kB / 0.5666 GB, free: 8.832 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.189/2.738, allocations: 3.234 kB / 0.5666 GB, free: 8.832 MB / 414.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/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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.SphericalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches