Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002571/0.002576, allocations: 188.1 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.214/2.214, allocations: 205.4 MB / 222.5 MB, free: 13.77 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001142/0.001142, allocations: 86.83 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2858/0.2858, allocations: 43.55 MB / 362.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004689/0.0004691, allocations: 12 kB / 431.5 MB, free: 20.17 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1184, allocations: 58.87 MB / 490.3 MB, free: 9.23 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSR): time 0.06516/0.1836, allocations: 40.72 MB / 0.5186 GB, free: 400 kB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.3525/0.5362, allocations: 9.383 MB / 0.5278 GB, free: 9.766 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01028/0.5466, allocations: 190.4 kB / 0.5279 GB, free: 9.766 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01102/0.5577, allocations: 1.984 MB / 0.5299 GB, free: 9.652 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03508/0.5928, allocations: 5.52 MB / 0.5353 GB, free: 9.246 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005651/0.5985, allocations: 0.6345 MB / 0.5359 GB, free: 9.102 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.005624/0.6042, allocations: 1.365 MB / 0.5372 GB, free: 8.844 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01545/0.6197, allocations: 5.172 MB / 0.5423 GB, free: 7.312 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003083/0.6229, allocations: 0.7888 MB / 0.543 GB, free: 7.047 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002622/0.6256, allocations: 1.005 MB / 0.544 GB, free: 6.652 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009726/0.6266, allocations: 132.2 kB / 0.5442 GB, free: 6.652 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002724/0.6294, allocations: 0.6466 MB / 0.5448 GB, free: 6.512 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002348/0.6318, allocations: 1.274 MB / 0.546 GB, free: 6.117 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001566/0.6334, allocations: 0.7034 MB / 0.5467 GB, free: 5.945 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007516/0.6409, allocations: 5.026 MB / 0.5516 GB, free: 3.066 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.641, allocations: 0 / 0.5516 GB, free: 3.066 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.936e-06/0.641, allocations: 0 / 0.5516 GB, free: 3.066 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002521/0.6413, allocations: 0 / 0.5516 GB, free: 3.066 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1303 * Number of variables: 1303 Notification: Performance of Generate backend data structure: time 0.01413/0.6554, allocations: 3.768 MB / 0.5553 GB, free: 0.8359 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.6555, allocations: 9.344 kB / 0.5553 GB, free: 0.8359 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002604/0.6581, allocations: 0.6334 MB / 0.5559 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005287/0.6634, allocations: 0.5862 MB / 0.5565 GB, free: 336 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006702/0.6702, allocations: 1.841 MB / 0.5583 GB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003012/0.6705, allocations: 239.3 kB / 0.5585 GB, free: 15.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00154/0.6721, allocations: 308 kB / 0.5588 GB, free: 15.49 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0323/0.7044, allocations: 9.382 MB / 0.568 GB, free: 9.289 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001322/0.7046, allocations: 24.97 kB / 0.568 GB, free: 9.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001099/0.7057, allocations: 138.1 kB / 0.5681 GB, free: 9.16 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005329/0.7111, allocations: 1.595 MB / 0.5697 GB, free: 7.574 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03317/0.7443, allocations: 7.643 MB / 0.5772 GB, free: 15.93 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06309/0.8074, allocations: 28.06 MB / 0.6046 GB, free: 3.32 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01429/0.8218, allocations: 2.356 MB / 0.6069 GB, free: 0.9258 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01821/0.8401, allocations: 7.686 MB / 0.6144 GB, free: 8.723 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.923e-05/0.8402, allocations: 43.22 kB / 0.6144 GB, free: 8.672 MB / 426.7 MB Notification: Performance of pre-optimization done (n=81): time 6.252e-06/0.8402, allocations: 0 / 0.6144 GB, free: 8.672 MB / 426.7 MB Notification: Performance of matching and sorting (n=97): time 0.03541/0.8756, allocations: 7.181 MB / 0.6214 GB, free: 1.461 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.8758, allocations: 141.5 kB / 0.6216 GB, free: 1.289 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00561/0.8814, allocations: 2.646 MB / 0.6241 GB, free: 14.63 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002522/0.8817, allocations: 41.7 kB / 0.6242 GB, free: 14.59 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002518/0.8842, allocations: 2.395 MB / 0.6265 GB, free: 12.2 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006466/0.8849, allocations: 402.7 kB / 0.6269 GB, free: 11.81 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003226/0.8852, allocations: 80 kB / 0.627 GB, free: 11.73 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003599/0.8856, allocations: 471.2 kB / 0.6274 GB, free: 11.26 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002898/0.8885, allocations: 1.07 MB / 0.6285 GB, free: 10.19 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005087/0.8936, allocations: 3.475 MB / 0.6319 GB, free: 5.523 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004722/0.8984, allocations: 1.845 MB / 0.6337 GB, free: 3.676 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.723e-05/0.8985, allocations: 24 kB / 0.6337 GB, free: 3.652 MB / 442.7 MB Notification: Performance of matching and sorting (n=499) (initialization): time 0.0118/0.9103, allocations: 4.345 MB / 0.6379 GB, free: 15.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.733e-05/0.9104, allocations: 47.94 kB / 0.638 GB, free: 15.26 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001308/0.9106, allocations: 84 kB / 0.6381 GB, free: 15.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001821/0.9108, allocations: 135.9 kB / 0.6382 GB, free: 15.04 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005722/0.9165, allocations: 0.9513 MB / 0.6391 GB, free: 14.09 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002072/0.9168, allocations: 167.4 kB / 0.6393 GB, free: 13.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003788/0.9206, allocations: 191.8 kB / 0.6395 GB, free: 13.74 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006271/0.9212, allocations: 237.2 kB / 0.6397 GB, free: 13.51 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 390 * Number of states: 0 () * Number of discrete variables: 43 (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 (499): * Single equations (assignments): 499 * 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.004228/0.9255, allocations: 1.597 MB / 0.6413 GB, free: 11.9 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000623/0.9261, allocations: 229 kB / 0.6415 GB, free: 11.67 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003791/0.9299, allocations: 1.381 MB / 0.6428 GB, free: 10.28 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.198e-05/0.93, allocations: 12 kB / 0.6428 GB, free: 10.27 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.93, allocations: 7.953 kB / 0.6428 GB, free: 10.26 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.738e-05/0.93, allocations: 3.984 kB / 0.6428 GB, free: 10.26 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01603/0.9461, allocations: 6.021 MB / 0.6487 GB, free: 3.965 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.591e-05/0.9461, allocations: 15.98 kB / 0.6487 GB, free: 3.949 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001571/0.9477, allocations: 223.6 kB / 0.6489 GB, free: 3.73 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.726e-05/0.9478, allocations: 24 kB / 0.649 GB, free: 3.707 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001022/0.9479, allocations: 40 kB / 0.649 GB, free: 3.668 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.69e-05/0.9479, allocations: 36.45 kB / 0.649 GB, free: 3.633 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.423e-05/0.948, allocations: 27.88 kB / 0.6491 GB, free: 3.605 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004541/0.9525, allocations: 3.252 MB / 0.6522 GB, free: 15.88 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008967/0.9535, allocations: 329.8 kB / 0.6526 GB, free: 15.54 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004147/0.9539, allocations: 45.19 kB / 0.6526 GB, free: 15.49 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001441/0.9554, allocations: 43.97 kB / 0.6526 GB, free: 15.45 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002865/0.9557, allocations: 124.1 kB / 0.6528 GB, free: 15.33 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001221/0.9558, allocations: 56 kB / 0.6528 GB, free: 15.27 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004301/0.9601, allocations: 1.677 MB / 0.6545 GB, free: 13.59 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.52e-07/0.9602, allocations: 0 / 0.6545 GB, free: 13.59 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004799/0.965, allocations: 0.6757 MB / 0.6551 GB, free: 12.91 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 68 * 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.007251/0.9723, allocations: 7.802 MB / 0.6627 GB, free: 4.625 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006607/0.9789, allocations: 2.497 MB / 0.6652 GB, free: 2.148 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.932e-05/0.979, allocations: 4 kB / 0.6652 GB, free: 2.145 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001505/0.9805, allocations: 0.5735 MB / 0.6657 GB, free: 1.578 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002099/0.9826, allocations: 292.9 kB / 0.666 GB, free: 1.293 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3754/1.358, allocations: 71.68 MB / 0.736 GB, free: 165.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006325/1.364, allocations: 2.811 MB / 0.7388 GB, free: 164.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003388/1.368, allocations: 1.491 MB / 0.7402 GB, free: 164.1 MB / 0.5105 GB Notification: Performance of SimCode: time 1.644e-06/1.368, allocations: 0 / 0.7402 GB, free: 164.1 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.798/5.166, allocations: 57.86 MB / 0.7967 GB, free: 121.9 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSR.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSR_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSR.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSR_res.mat does not exist to compare? outputFormat=mat