Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP.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.JointUSP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00126/0.00126, allocations: 97.25 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001585/0.001585, allocations: 200.6 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2158/0.2158, allocations: 45.91 MB / 344 MB, free: 12.33 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002702/0.0002704, allocations: 8 kB / 418.1 MB, free: 20.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1404, allocations: 63.46 MB / 481.5 MB, free: 5.316 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP): time 0.333/0.4735, allocations: 39.26 MB / 0.5086 GB, free: 9.996 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02467/0.4982, allocations: 9.119 MB / 0.5175 GB, free: 9.824 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01054/0.5088, allocations: 185.5 kB / 0.5177 GB, free: 9.824 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008403/0.5173, allocations: 1.954 MB / 0.5196 GB, free: 9.473 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02113/0.5384, allocations: 5.416 MB / 0.5249 GB, free: 9.074 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003614/0.5421, allocations: 497.5 kB / 0.5253 GB, free: 9.027 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003288/0.5454, allocations: 1.115 MB / 0.5264 GB, free: 8.812 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008191/0.5536, allocations: 5.016 MB / 0.5313 GB, free: 7.375 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001586/0.5552, allocations: 0.6668 MB / 0.532 GB, free: 7.152 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001338/0.5566, allocations: 0.877 MB / 0.5328 GB, free: 6.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003082/0.5569, allocations: 113.5 kB / 0.5329 GB, free: 6.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001531/0.5584, allocations: 0.5654 MB / 0.5335 GB, free: 6.695 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001304/0.5597, allocations: 1.122 MB / 0.5346 GB, free: 6.348 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007639/0.5605, allocations: 0.6216 MB / 0.5352 GB, free: 6.188 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00462/0.5651, allocations: 4.498 MB / 0.5396 GB, free: 3.613 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.5652, allocations: 0 / 0.5396 GB, free: 3.613 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.5652, allocations: 0 / 0.5396 GB, free: 3.613 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001782/0.5654, allocations: 0 / 0.5396 GB, free: 3.613 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: 1077 * Number of variables: 1077 Notification: Performance of Generate backend data structure: time 0.008327/0.5737, allocations: 3.241 MB / 0.5427 GB, free: 1.664 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.5738, allocations: 9.062 kB / 0.5428 GB, free: 1.664 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00174/0.5755, allocations: 0.5313 MB / 0.5433 GB, free: 1.504 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002619/0.5781, allocations: 0.6371 MB / 0.5439 GB, free: 1.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003882/0.582, allocations: 1.708 MB / 0.5456 GB, free: 444 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001808/0.5822, allocations: 211 kB / 0.5458 GB, free: 436 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006099/0.5829, allocations: 288.6 kB / 0.546 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01707/0.5999, allocations: 7.756 MB / 0.5536 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-05/0.6001, allocations: 19.81 kB / 0.5536 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003279/0.6004, allocations: 122 kB / 0.5537 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00155/0.602, allocations: 1.106 MB / 0.5548 GB, free: 9.754 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0156/0.6176, allocations: 6.328 MB / 0.561 GB, free: 3.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03955/0.6572, allocations: 22.96 MB / 0.5834 GB, free: 12.05 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005879/0.6631, allocations: 1.896 MB / 0.5853 GB, free: 10.14 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008558/0.6717, allocations: 5.92 MB / 0.5911 GB, free: 3.723 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.908e-05/0.6717, allocations: 39.22 kB / 0.5911 GB, free: 3.672 MB / 430.1 MB Notification: Performance of pre-optimization done (n=75): time 2.284e-06/0.6718, allocations: 0 / 0.5911 GB, free: 3.672 MB / 430.1 MB Notification: Performance of matching and sorting (n=93): time 0.01505/0.6868, allocations: 4.444 MB / 0.5954 GB, free: 15.23 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.341e-05/0.6869, allocations: 68.34 kB / 0.5955 GB, free: 15.15 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003223/0.6901, allocations: 2.263 MB / 0.5977 GB, free: 12.86 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.598e-05/0.6902, allocations: 37.7 kB / 0.5977 GB, free: 12.81 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001482/0.6917, allocations: 2.051 MB / 0.5998 GB, free: 10.77 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002811/0.692, allocations: 364.7 kB / 0.6001 GB, free: 10.41 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.6921, allocations: 68 kB / 0.6002 GB, free: 10.35 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002307/0.6923, allocations: 453.2 kB / 0.6006 GB, free: 9.898 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00137/0.6937, allocations: 0.8772 MB / 0.6015 GB, free: 9.02 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002815/0.6966, allocations: 2.942 MB / 0.6043 GB, free: 5.047 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00221/0.6988, allocations: 1.56 MB / 0.6059 GB, free: 3.488 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.794e-05/0.6988, allocations: 20 kB / 0.6059 GB, free: 3.469 MB / 446.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.005918/0.7047, allocations: 3.739 MB / 0.6095 GB, free: 15.72 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.305e-05/0.7048, allocations: 40.03 kB / 0.6096 GB, free: 15.68 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.201e-05/0.7049, allocations: 76 kB / 0.6096 GB, free: 15.61 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001058/0.705, allocations: 108 kB / 0.6097 GB, free: 15.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002313/0.7073, allocations: 0.7876 MB / 0.6105 GB, free: 14.71 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001305/0.7075, allocations: 147.4 kB / 0.6106 GB, free: 14.57 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00233/0.7098, allocations: 155.9 kB / 0.6108 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002771/0.7101, allocations: 200 kB / 0.611 GB, free: 14.22 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: 50 (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,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],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],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 (435): * Single equations (assignments): 435 * 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.00259/0.7127, allocations: 1.415 MB / 0.6124 GB, free: 12.79 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003366/0.7131, allocations: 205.3 kB / 0.6126 GB, free: 12.59 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004282/0.7135, allocations: 241.1 kB / 0.6128 GB, free: 12.34 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/0.7135, allocations: 16 kB / 0.6128 GB, free: 12.33 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/0.7135, allocations: 0 / 0.6128 GB, free: 12.33 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.7135, allocations: 3.984 kB / 0.6128 GB, free: 12.32 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008304/0.7219, allocations: 5.315 MB / 0.618 GB, free: 6.695 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.512e-05/0.7219, allocations: 23.98 kB / 0.618 GB, free: 6.672 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006394/0.7226, allocations: 219.6 kB / 0.6182 GB, free: 6.457 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.351e-05/0.7226, allocations: 28 kB / 0.6183 GB, free: 6.43 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.892e-05/0.7227, allocations: 47.95 kB / 0.6183 GB, free: 6.383 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.738e-05/0.7227, allocations: 35.86 kB / 0.6183 GB, free: 6.348 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.908e-05/0.7227, allocations: 27.88 kB / 0.6184 GB, free: 6.32 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002685/0.7254, allocations: 3.363 MB / 0.6217 GB, free: 2.188 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005792/0.726, allocations: 298.2 kB / 0.6219 GB, free: 1.875 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002082/0.7262, allocations: 51.97 kB / 0.622 GB, free: 1.824 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006778/0.7269, allocations: 36 kB / 0.622 GB, free: 1.789 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/0.727, allocations: 139.5 kB / 0.6222 GB, free: 1.652 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.425e-05/0.7271, allocations: 56 kB / 0.6222 GB, free: 1.598 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002059/0.7292, allocations: 1.461 MB / 0.6236 GB, free: 124 kB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7292, allocations: 4 kB / 0.6236 GB, free: 120 kB / 462.1 MB Notification: Performance of remove unused functions: time 0.002878/0.7321, allocations: 0.5592 MB / 0.6242 GB, free: 15.55 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 85 * 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 (117): * Single equations (assignments): 117 * 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.004498/0.7366, allocations: 9.086 MB / 0.6331 GB, free: 5.871 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003642/0.7402, allocations: 2.083 MB / 0.6351 GB, free: 3.805 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.321e-05/0.7403, allocations: 4 kB / 0.6351 GB, free: 3.801 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007346/0.741, allocations: 0.493 MB / 0.6356 GB, free: 3.312 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001614/0.7426, allocations: 333.1 kB / 0.6359 GB, free: 2.988 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03496/0.7776, allocations: 61.16 MB / 0.6956 GB, free: 3.848 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002974/0.7806, allocations: 2.526 MB / 0.6981 GB, free: 1.293 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0025/0.7832, allocations: 0.9058 MB / 0.699 GB, free: 392 kB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001565/0.7848, allocations: 1.235 MB / 0.7002 GB, free: 15.18 MB / 0.545 GB Notification: Performance of SimCode: time 8.91e-07/0.7848, allocations: 0 / 0.7002 GB, free: 15.18 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.303/1.088, allocations: 42.58 MB / 0.7418 GB, free: 194.5 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001491/1.088, allocations: 170.3 kB / 0.7419 GB, free: 194.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.037/4.125, allocations: 0 / 0.7419 GB, free: 194.3 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSP_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_JointUSP.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP_res.mat does not exist to compare? outputFormat=mat