Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR.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.JointUSR,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001334/0.001335, allocations: 101.8 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002367/0.002367, allocations: 191.9 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 227.3 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1953/0.1953, allocations: 45.92 MB / 344.1 MB, free: 12.32 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000254/0.0002541, allocations: 8 kB / 418.2 MB, free: 20.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1198, allocations: 63.47 MB / 481.6 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSR): time 0.2806/0.4005, allocations: 41.5 MB / 0.5109 GB, free: 9.973 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01747/0.418, allocations: 8.923 MB / 0.5196 GB, free: 9.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008188/0.4263, allocations: 187.2 kB / 0.5198 GB, free: 9.547 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006399/0.4327, allocations: 2.026 MB / 0.5217 GB, free: 9.102 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01597/0.4487, allocations: 5.628 MB / 0.5272 GB, free: 7.812 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002737/0.4515, allocations: 0.67 MB / 0.5279 GB, free: 7.609 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003405/0.4549, allocations: 2.68 MB / 0.5305 GB, free: 6.684 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007658/0.4626, allocations: 5.061 MB / 0.5354 GB, free: 5.195 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001812/0.4644, allocations: 0.8671 MB / 0.5363 GB, free: 4.891 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002169/0.4666, allocations: 1.331 MB / 0.5376 GB, free: 4.438 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005659/0.4672, allocations: 117.4 kB / 0.5377 GB, free: 4.438 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00182/0.469, allocations: 0.7078 MB / 0.5384 GB, free: 4.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0011/0.4701, allocations: 1.21 MB / 0.5396 GB, free: 3.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000568/0.4707, allocations: 0.612 MB / 0.5402 GB, free: 3.691 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003211/0.474, allocations: 4.62 MB / 0.5447 GB, free: 1.055 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.474, allocations: 0 / 0.5447 GB, free: 1.055 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.474, allocations: 6.469 kB / 0.5447 GB, free: 1.051 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.463e-05/0.4741, allocations: 1.531 kB / 0.5447 GB, free: 1.051 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: 1088 * Number of variables: 1088 Notification: Performance of Generate backend data structure: time 0.00623/0.4803, allocations: 3.284 MB / 0.5479 GB, free: 15.06 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.4804, allocations: 10.72 kB / 0.5479 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001057/0.4814, allocations: 0.5342 MB / 0.5484 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002198/0.4836, allocations: 0.5932 MB / 0.549 GB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003487/0.4871, allocations: 1.767 MB / 0.5507 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001279/0.4873, allocations: 205.6 kB / 0.5509 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004844/0.4878, allocations: 280.8 kB / 0.5512 GB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01621/0.504, allocations: 8.164 MB / 0.5592 GB, free: 5.41 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.228e-05/0.5041, allocations: 19.81 kB / 0.5592 GB, free: 5.391 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003332/0.5045, allocations: 120.9 kB / 0.5593 GB, free: 5.293 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001554/0.506, allocations: 1.133 MB / 0.5604 GB, free: 4.164 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01524/0.5213, allocations: 6.945 MB / 0.5672 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03834/0.5596, allocations: 24.77 MB / 0.5914 GB, free: 4.02 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007513/0.5672, allocations: 2.269 MB / 0.5936 GB, free: 1.738 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001545/0.5688, allocations: 1.089 MB / 0.5947 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01031/0.5791, allocations: 7.192 MB / 0.6017 GB, free: 8.902 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.043e-05/0.5792, allocations: 39.22 kB / 0.6017 GB, free: 8.855 MB / 446.1 MB Notification: Performance of pre-optimization done (n=80): time 3.256e-06/0.5792, allocations: 4 kB / 0.6017 GB, free: 8.852 MB / 446.1 MB Notification: Performance of matching and sorting (n=96): time 0.017/0.5962, allocations: 5.397 MB / 0.607 GB, free: 3.445 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.916e-05/0.5963, allocations: 60.41 kB / 0.6071 GB, free: 3.371 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003536/0.5999, allocations: 2.388 MB / 0.6094 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001146/0.6, allocations: 37.7 kB / 0.6094 GB, free: 0.9102 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00195/0.602, allocations: 2.072 MB / 0.6114 GB, free: 14.84 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004631/0.6024, allocations: 383 kB / 0.6118 GB, free: 14.46 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001434/0.6026, allocations: 79.94 kB / 0.6119 GB, free: 14.39 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003498/0.603, allocations: 449.5 kB / 0.6123 GB, free: 13.94 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001716/0.6047, allocations: 1.014 MB / 0.6133 GB, free: 12.93 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003125/0.6078, allocations: 3.174 MB / 0.6164 GB, free: 8.68 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002468/0.6103, allocations: 1.728 MB / 0.6181 GB, free: 6.953 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.111e-05/0.6103, allocations: 20 kB / 0.6181 GB, free: 6.934 MB / 462.1 MB Notification: Performance of matching and sorting (n=452) (initialization): time 0.006472/0.6168, allocations: 4.09 MB / 0.6221 GB, free: 2.836 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.705e-05/0.6169, allocations: 43.95 kB / 0.6222 GB, free: 2.793 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.176e-05/0.617, allocations: 76 kB / 0.6222 GB, free: 2.719 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001199/0.6171, allocations: 112 kB / 0.6223 GB, free: 2.609 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002443/0.6196, allocations: 0.8427 MB / 0.6232 GB, free: 1.766 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001004/0.6197, allocations: 151.4 kB / 0.6233 GB, free: 1.617 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001976/0.6217, allocations: 175.8 kB / 0.6235 GB, free: 1.445 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002661/0.622, allocations: 212 kB / 0.6237 GB, free: 1.238 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 349 * Number of states: 0 () * Number of discrete variables: 53 (prism.arrowLine.twoHeadedArrow,prism.headAtOrigin,rRod2.arrowLine.twoHeadedArrow,rRod2.headAtOrigin,rRod1.arrowLine.twoHeadedArrow,rRod1.headAtOrigin,n2_ia.arrowLine.twoHeadedArrow,n2_ia.headAtOrigin,n1_a.arrowLine.twoHeadedArrow,n1_a.headAtOrigin,jointUSR.revolute.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],rRod1.color[3],rRod1.color[2],rRod1.color[1],n2_ia.color[3],n2_ia.color[2],n2_ia.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],Fixed1.color[3],Fixed1.color[2],Fixed1.color[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 (452): * Single equations (assignments): 452 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00232/0.6243, allocations: 1.434 MB / 0.6251 GB, free: 15.79 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000273/0.6246, allocations: 213.2 kB / 0.6253 GB, free: 15.58 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002224/0.6268, allocations: 1.406 MB / 0.6266 GB, free: 14.16 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.6268, allocations: 12 kB / 0.6267 GB, free: 14.15 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.6269, allocations: 0 / 0.6267 GB, free: 14.15 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.6269, allocations: 3.984 kB / 0.6267 GB, free: 14.15 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007567/0.6344, allocations: 5.271 MB / 0.6318 GB, free: 8.605 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.058e-05/0.6345, allocations: 19.98 kB / 0.6318 GB, free: 8.586 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007349/0.6352, allocations: 219.7 kB / 0.632 GB, free: 8.371 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.313e-05/0.6353, allocations: 24 kB / 0.6321 GB, free: 8.348 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-05/0.6354, allocations: 36 kB / 0.6321 GB, free: 8.312 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.336e-05/0.6354, allocations: 27.92 kB / 0.6321 GB, free: 8.285 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.557e-05/0.6354, allocations: 27.81 kB / 0.6321 GB, free: 8.258 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001898/0.6373, allocations: 1.733 MB / 0.6338 GB, free: 6.309 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005372/0.6379, allocations: 310.1 kB / 0.6341 GB, free: 5.984 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002152/0.6381, allocations: 47.97 kB / 0.6342 GB, free: 5.938 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006629/0.6387, allocations: 43.98 kB / 0.6342 GB, free: 5.895 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.6389, allocations: 120.1 kB / 0.6343 GB, free: 5.777 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.348e-05/0.639, allocations: 48 kB / 0.6344 GB, free: 5.73 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002061/0.641, allocations: 1.518 MB / 0.6359 GB, free: 4.199 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.641, allocations: 0 / 0.6359 GB, free: 4.199 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002615/0.6437, allocations: 0.5938 MB / 0.6364 GB, free: 3.605 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 66 * 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 (121): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002342/0.646, allocations: 2.359 MB / 0.6387 GB, free: 1.02 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003573/0.6496, allocations: 2.341 MB / 0.641 GB, free: 14.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/0.6496, allocations: 4 kB / 0.641 GB, free: 14.69 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007615/0.6504, allocations: 0.5658 MB / 0.6416 GB, free: 14.12 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001592/0.652, allocations: 339.5 kB / 0.6419 GB, free: 13.79 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0341/0.6861, allocations: 18.98 MB / 0.6605 GB, free: 8.59 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002779/0.6889, allocations: 2.458 MB / 0.6629 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00263/0.6916, allocations: 0.961 MB / 0.6638 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001741/0.6933, allocations: 1.237 MB / 0.665 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of SimCode: time 3.687e-06/0.6934, allocations: 0 / 0.665 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07729/0.7707, allocations: 45.63 MB / 0.7096 GB, free: 6.512 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001687/0.7709, allocations: 177.6 kB / 0.7097 GB, free: 6.273 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.319/4.09, allocations: 0 / 0.7097 GB, free: 6.273 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSR.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSR_res.mat does not exist to compare? outputFormat=mat