Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.UniversalSpherical.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.UniversalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.UniversalSpherical,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_UniversalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001133/0.001134, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.277/1.277, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008632/0.0008633, allocations: 90.98 kB / 292.1 MB, free: 5.965 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1795/0.1795, allocations: 45.14 MB / 389.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.597e-05/3.599e-05, allocations: 4 kB / 460.5 MB, free: 69.91 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09739/0.09744, allocations: 63.25 MB / 0.5115 GB, free: 6.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.378/0.4755, allocations: 123.9 MB / 0.6324 GB, free: 2.371 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000218/0.4758, allocations: 75.66 kB / 0.6325 GB, free: 2.336 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7399/1.216, allocations: 227.1 MB / 0.8543 GB, free: 97.57 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.024e-06/1.216, allocations: 0 / 0.8543 GB, free: 97.57 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0005989/1.216, allocations: 273.1 kB / 0.8545 GB, free: 97.56 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4458 * Number of variables: 4458 Notification: Performance of Generate backend data structure: time 0.04563/1.262, allocations: 14.4 MB / 0.8686 GB, free: 83.69 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/1.262, allocations: 15.97 kB / 0.8686 GB, free: 83.67 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008688/1.271, allocations: 2.716 MB / 0.8713 GB, free: 80.94 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03763/1.308, allocations: 10.56 MB / 0.8816 GB, free: 70.35 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0273/1.336, allocations: 12.38 MB / 0.8937 GB, free: 57.89 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007081/1.336, allocations: 1.039 MB / 0.8947 GB, free: 56.85 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005115/1.342, allocations: 1.398 MB / 0.896 GB, free: 55.45 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06167/1.403, allocations: 31.32 MB / 0.9266 GB, free: 21.98 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006507/1.404, allocations: 142.7 kB / 0.9268 GB, free: 21.84 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004136/1.408, allocations: 0.6287 MB / 0.9274 GB, free: 21.21 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002579/1.411, allocations: 2.362 MB / 0.9297 GB, free: 18.84 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05012/1.461, allocations: 25.55 MB / 0.9546 GB, free: 9.266 MB / 0.5417 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4336/1.894, allocations: 126.9 MB / 1.079 GB, free: 21.64 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02892/1.923, allocations: 12.39 MB / 1.091 GB, free: 18.37 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006049/1.929, allocations: 6.574 MB / 1.097 GB, free: 15.45 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03415/1.964, allocations: 30.06 MB / 1.126 GB, free: 15.3 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.227e-05/1.964, allocations: 79.94 kB / 1.127 GB, free: 15.22 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=379): time 6.603e-06/1.964, allocations: 0 / 1.127 GB, free: 15.22 MB / 0.5573 GB Notification: Performance of matching and sorting (n=508): time 0.574/2.538, allocations: 102.2 MB / 1.226 GB, free: 141.9 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02643/2.564, allocations: 23.08 MB / 1.249 GB, free: 134.6 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01209/2.576, allocations: 7.959 MB / 1.257 GB, free: 133.2 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.001214/2.578, allocations: 100.4 kB / 1.257 GB, free: 133.1 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.005235/2.583, allocations: 8.569 MB / 1.265 GB, free: 126.6 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.002876/2.586, allocations: 1.982 MB / 1.267 GB, free: 125.1 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001399/2.587, allocations: 304 kB / 1.267 GB, free: 124.9 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0007004/2.588, allocations: 0.955 MB / 1.268 GB, free: 124.3 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01091/2.599, allocations: 8.932 MB / 1.277 GB, free: 120.9 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01522/2.614, allocations: 17.8 MB / 1.294 GB, free: 105.7 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01521/2.629, allocations: 12.35 MB / 1.306 GB, free: 101.4 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002519/2.63, allocations: 88.69 kB / 1.307 GB, free: 101.4 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1985) (initialization): time 0.06584/2.695, allocations: 33.94 MB / 1.34 GB, free: 79.31 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.000409/2.696, allocations: 136 kB / 1.34 GB, free: 79.18 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04092/2.737, allocations: 21.42 MB / 1.361 GB, free: 61.17 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02804/2.765, allocations: 9.296 MB / 1.37 GB, free: 51.83 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01202/2.777, allocations: 3.727 MB / 1.373 GB, free: 48.09 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3537/3.131, allocations: 47.05 MB / 1.419 GB, free: 121.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01734/3.148, allocations: 1.655 MB / 1.421 GB, free: 121.4 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003732/3.152, allocations: 0.9335 MB / 1.422 GB, free: 121.4 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1423 * Number of states: 0 () * Number of discrete variables: 82 (init2.arrow.arrow.arrowLine.twoHeadedArrow,init2.arrow.headAtOrigin,init2.arrowColor[3],init2.arrowColor[2],init2.arrowColor[1],init.arrow.arrow.arrowLine.twoHeadedArrow,init.arrow.headAtOrigin,init.arrowColor[3],init.arrowColor[2],init.arrowColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],universalSpherical1.cylinderColor[3],universalSpherical1.cylinderColor[2],universalSpherical1.cylinderColor[1],universalSpherical1.sphereColor[3],universalSpherical1.sphereColor[2],universalSpherical1.sphereColor[1],universalSpherical1.rodColor[3],universalSpherical1.rodColor[2],universalSpherical1.rodColor[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],rs3.arrow.arrowLine.twoHeadedArrow,rs3.arrow.headAtOrigin,rs3.arrowColor[3],rs3.arrowColor[2],rs3.arrowColor[1],rs2.arrow.arrowLine.twoHeadedArrow,rs2.arrow.headAtOrigin,rs2.arrowColor[3],rs2.arrowColor[2],rs2.arrowColor[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],spherical1.sphereColor[3],spherical1.sphereColor[2],spherical1.sphereColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],rs1.arrow.arrowLine.twoHeadedArrow,rs1.arrow.headAtOrigin,rs1.arrowColor[3],rs1.arrowColor[2],rs1.arrowColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1850): * Single equations (assignments): 1823 * Array equations: 13 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(4,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 5 {1,1,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(4,93.8%) 8,(8,76.6%) 20,(1,100.0%) 3,(1,100.0%) 9,(4,87.5%) 6,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004394/3.156, allocations: 1.256 MB / 1.423 GB, free: 121.1 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00232/3.159, allocations: 0.8253 MB / 1.424 GB, free: 121.1 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05644/3.215, allocations: 26.83 MB / 1.45 GB, free: 120.7 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0516/3.267, allocations: 25.13 MB / 1.475 GB, free: 115.1 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-05/3.267, allocations: 20.69 kB / 1.475 GB, free: 115.1 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001126/3.267, allocations: 26.78 kB / 1.475 GB, free: 115.1 MB / 0.5886 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1016/3.368, allocations: 56.77 MB / 1.53 GB, free: 87.32 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.631e-05/3.369, allocations: 6.438 kB / 1.53 GB, free: 87.31 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005144/3.374, allocations: 0.9844 MB / 1.531 GB, free: 86.36 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04086/3.415, allocations: 14 MB / 1.545 GB, free: 72.43 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00117/3.416, allocations: 151.8 kB / 1.545 GB, free: 72.28 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05781/3.474, allocations: 59.19 MB / 1.603 GB, free: 12.34 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.3393/3.813, allocations: 22.85 MB / 1.625 GB, free: 133.3 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07098/3.884, allocations: 38.26 MB / 1.662 GB, free: 132 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002806/3.887, allocations: 0.8866 MB / 1.663 GB, free: 131.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002918/3.89, allocations: 114.4 kB / 1.663 GB, free: 131.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008104/3.898, allocations: 0.8299 MB / 1.664 GB, free: 131.9 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002137/3.9, allocations: 392.9 kB / 1.665 GB, free: 131.9 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000628/3.901, allocations: 161.9 kB / 1.665 GB, free: 131.9 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.01033/3.911, allocations: 5.469 MB / 1.67 GB, free: 131.6 MB / 0.6042 GB Notification: Performance of sort global known variables: time 4e-07/3.911, allocations: 0 / 1.67 GB, free: 131.6 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.02024/3.931, allocations: 4.151 MB / 1.674 GB, free: 131.6 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 30 ($STATESET5.x[5],$STATESET5.x[4],$STATESET5.x[3],$STATESET5.x[2],$STATESET5.x[1],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[6],$STATESET3.x[5],$STATESET3.x[4],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[5],$STATESET2.x[4],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[2],$STATESET1.x[1],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyBox1.body.w_a[1],bodyBox1.body.w_a[2],bodyBox1.body.w_a[3],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (384): * Single equations (assignments): 369 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(3,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {3,8} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 6,(4,87.5%) 6,(1,100.0%) 4,(4,93.8%) 8,(8,76.6%) 20,(7,93.9%) 12} * Non-linear torn systems: 1 {7 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.07236/4.004, allocations: 39.34 MB / 1.713 GB, free: 120.8 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.03091/4.035, allocations: 22.44 MB / 1.734 GB, free: 108.7 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 8.946e-06/4.035, allocations: 0 / 1.734 GB, free: 108.7 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.01657/4.051, allocations: 10.81 MB / 1.745 GB, free: 99.04 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008845/4.06, allocations: 1.284 MB / 1.746 GB, free: 98.03 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08177/4.142, allocations: 34.2 MB / 1.78 GB, free: 68.61 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01913/4.161, allocations: 9.082 MB / 1.789 GB, free: 62.04 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.01529/4.176, allocations: 4.874 MB / 1.793 GB, free: 58.82 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01231/4.189, allocations: 6.293 MB / 1.799 GB, free: 53.04 MB / 0.6042 GB Notification: Performance of SimCode: time 8.92e-07/4.189, allocations: 0 / 1.799 GB, free: 53.04 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9444/5.133, allocations: 283.4 MB / 2.076 GB, free: 88.27 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001435/5.133, allocations: 189.5 kB / 2.076 GB, free: 88.05 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.819/12.95, allocations: 0 / 2.076 GB, free: 88.05 MB / 0.6355 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.UniversalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.UniversalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.UniversalSpherical.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.UniversalSpherical_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_UniversalSpherical_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_UniversalSpherical.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.UniversalSpherical.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.UniversalSpherical_res.mat does not exist to compare? outputFormat=mat