Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointRRP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointRRP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointRRP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointRRP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001076/0.001077, allocations: 95.22 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 181.3 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 223.2 MB / 241.8 MB, free: 392 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.198/0.198, allocations: 44.23 MB / 337.1 MB, free: 2.918 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003505/0.0003505, allocations: 12 kB / 409.6 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1376, allocations: 61.92 MB / 471.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointRRP): time 0.04558/0.1832, allocations: 43.65 MB / 0.5031 GB, free: 1.914 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2672/0.4505, allocations: 10.04 MB / 0.5129 GB, free: 9.863 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009116/0.4596, allocations: 211 kB / 0.5131 GB, free: 9.863 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007948/0.4676, allocations: 2.155 MB / 0.5152 GB, free: 9.863 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0209/0.4886, allocations: 5.949 MB / 0.521 GB, free: 9.598 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002987/0.4916, allocations: 0.5088 MB / 0.5215 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002924/0.4945, allocations: 1.205 MB / 0.5227 GB, free: 9.242 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008628/0.5031, allocations: 6.29 MB / 0.5289 GB, free: 7.449 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001981/0.5052, allocations: 0.7306 MB / 0.5296 GB, free: 7.215 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001932/0.5071, allocations: 0.9645 MB / 0.5305 GB, free: 6.848 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00043/0.5076, allocations: 133.1 kB / 0.5306 GB, free: 6.844 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001558/0.5091, allocations: 0.5777 MB / 0.5312 GB, free: 6.723 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001194/0.5104, allocations: 1.244 MB / 0.5324 GB, free: 6.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007666/0.5111, allocations: 0.6908 MB / 0.5331 GB, free: 6.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005434/0.5166, allocations: 5.552 MB / 0.5385 GB, free: 2.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.5166, allocations: 0 / 0.5385 GB, free: 2.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.5166, allocations: 0 / 0.5385 GB, free: 2.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002365/0.5169, allocations: 0 / 0.5385 GB, free: 2.93 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: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.008835/0.5257, allocations: 3.581 MB / 0.542 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.5258, allocations: 10.08 kB / 0.542 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001839/0.5276, allocations: 0.5838 MB / 0.5426 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002764/0.5304, allocations: 0.6766 MB / 0.5432 GB, free: 296 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005396/0.5358, allocations: 2.076 MB / 0.5453 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00022/0.5361, allocations: 245 kB / 0.5455 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009992/0.5371, allocations: 311.1 kB / 0.5458 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0191/0.5562, allocations: 8.341 MB / 0.554 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.622e-05/0.5563, allocations: 23.81 kB / 0.554 GB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004554/0.5568, allocations: 135.2 kB / 0.5541 GB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001629/0.5584, allocations: 1.095 MB / 0.5552 GB, free: 9.121 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0166/0.575, allocations: 6.863 MB / 0.5619 GB, free: 3.328 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03822/0.6133, allocations: 24.36 MB / 0.5857 GB, free: 10.61 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006501/0.6199, allocations: 2.011 MB / 0.5876 GB, free: 8.574 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009757/0.6297, allocations: 6.337 MB / 0.5938 GB, free: 1.754 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.245e-05/0.6298, allocations: 39.22 kB / 0.5939 GB, free: 1.707 MB / 430.1 MB Notification: Performance of pre-optimization done (n=80): time 2.675e-06/0.6298, allocations: 5.141 kB / 0.5939 GB, free: 1.703 MB / 430.1 MB Notification: Performance of matching and sorting (n=98): time 0.01608/0.6459, allocations: 5.725 MB / 0.5994 GB, free: 11.95 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.646, allocations: 115.8 kB / 0.5996 GB, free: 11.81 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003944/0.65, allocations: 2.429 MB / 0.6019 GB, free: 9.363 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001535/0.6502, allocations: 41.7 kB / 0.602 GB, free: 9.316 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001532/0.6517, allocations: 2.165 MB / 0.6041 GB, free: 7.168 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004132/0.6521, allocations: 398.8 kB / 0.6045 GB, free: 6.781 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001211/0.6522, allocations: 71.94 kB / 0.6045 GB, free: 6.711 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002535/0.6525, allocations: 453.2 kB / 0.605 GB, free: 6.266 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001486/0.654, allocations: 0.9438 MB / 0.6059 GB, free: 5.32 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002912/0.6569, allocations: 3.013 MB / 0.6088 GB, free: 1.277 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002333/0.6593, allocations: 1.642 MB / 0.6104 GB, free: 15.64 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-05/0.6593, allocations: 20 kB / 0.6105 GB, free: 15.62 MB / 462.1 MB Notification: Performance of matching and sorting (n=450) (initialization): time 0.005875/0.6652, allocations: 3.902 MB / 0.6143 GB, free: 11.71 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.906e-05/0.6653, allocations: 36 kB / 0.6143 GB, free: 11.67 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-05/0.6654, allocations: 76 kB / 0.6144 GB, free: 11.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001119/0.6655, allocations: 108 kB / 0.6145 GB, free: 11.49 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002328/0.6678, allocations: 0.8007 MB / 0.6153 GB, free: 10.69 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001121/0.6679, allocations: 147.4 kB / 0.6154 GB, free: 10.55 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002075/0.67, allocations: 179.6 kB / 0.6156 GB, free: 10.37 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002465/0.6703, allocations: 208 kB / 0.6158 GB, free: 10.17 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 335 * Number of states: 0 () * Number of discrete variables: 56 (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,jointRRP.jointUSP.prismatic.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],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.cylinderColor[1],jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[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 (448): * Single equations (assignments): 447 * Array equations: 1 * 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.00273/0.673, allocations: 1.583 MB / 0.6173 GB, free: 8.574 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004038/0.6734, allocations: 213.2 kB / 0.6175 GB, free: 8.363 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001962/0.6754, allocations: 1.192 MB / 0.6187 GB, free: 7.16 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.6754, allocations: 8 kB / 0.6187 GB, free: 7.152 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.6754, allocations: 4 kB / 0.6187 GB, free: 7.148 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.6754, allocations: 3.984 kB / 0.6187 GB, free: 7.145 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009306/0.6848, allocations: 5.673 MB / 0.6242 GB, free: 1.199 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.522e-05/0.6848, allocations: 16 kB / 0.6242 GB, free: 1.184 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000788/0.6856, allocations: 220.8 kB / 0.6245 GB, free: 0.9688 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.879e-05/0.6857, allocations: 32.03 kB / 0.6245 GB, free: 0.9375 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.819e-05/0.6857, allocations: 43.95 kB / 0.6245 GB, free: 0.8945 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.516e-05/0.6858, allocations: 31.86 kB / 0.6246 GB, free: 0.8633 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.78e-05/0.6858, allocations: 23.94 kB / 0.6246 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003126/0.6889, allocations: 3.365 MB / 0.6279 GB, free: 12.89 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000717/0.6897, allocations: 314 kB / 0.6282 GB, free: 12.57 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002305/0.6899, allocations: 47.98 kB / 0.6282 GB, free: 12.52 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007439/0.6906, allocations: 43.98 kB / 0.6283 GB, free: 12.48 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/0.6908, allocations: 127.9 kB / 0.6284 GB, free: 12.35 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.898e-05/0.6909, allocations: 52 kB / 0.6284 GB, free: 12.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002592/0.6935, allocations: 1.584 MB / 0.63 GB, free: 10.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6935, allocations: 0 / 0.63 GB, free: 10.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003496/0.697, allocations: 0.6132 MB / 0.6306 GB, free: 10.09 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 72 * 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 (122): * Single equations (assignments): 122 * 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.006247/0.7033, allocations: 8.234 MB / 0.6386 GB, free: 1.344 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003998/0.7073, allocations: 2.223 MB / 0.6408 GB, free: 15.14 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.223e-05/0.7074, allocations: 0 / 0.6408 GB, free: 15.14 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007998/0.7082, allocations: 0.5568 MB / 0.6413 GB, free: 14.58 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002064/0.7102, allocations: 331.9 kB / 0.6416 GB, free: 14.26 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03718/0.7474, allocations: 61.8 MB / 0.702 GB, free: 14.58 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003119/0.7506, allocations: 2.741 MB / 0.7047 GB, free: 11.81 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002634/0.7533, allocations: 0.9028 MB / 0.7056 GB, free: 10.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002059/0.7553, allocations: 1.378 MB / 0.7069 GB, free: 9.523 MB / 0.545 GB Notification: Performance of SimCode: time 1.353e-06/0.7553, allocations: 0 / 0.7069 GB, free: 9.523 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3234/1.079, allocations: 46.7 MB / 0.7525 GB, free: 190.7 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002445/1.079, allocations: 169.1 kB / 0.7527 GB, free: 190.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.512/4.591, allocations: 4.062 kB / 0.7527 GB, free: 190.5 MB / 0.545 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointRRP_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointRRP.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointRRP_res.mat does not exist to compare? outputFormat=mat