Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR.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.JointUSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSR",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.001187/0.001187, allocations: 102.2 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.001439/0.00144, allocations: 183.1 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.418/1.418, allocations: 223.2 MB / 241.8 MB, free: 14.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2356/0.2356, allocations: 44.22 MB / 337.1 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000356/0.0003562, allocations: 8 kB / 409.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1304, allocations: 61.93 MB / 471.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSR): time 0.036/0.1664, allocations: 39.26 MB / 0.4988 GB, free: 6.258 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2829/0.4494, allocations: 9.206 MB / 0.5078 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01047/0.4599, allocations: 189.9 kB / 0.508 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007815/0.4677, allocations: 1.951 MB / 0.5099 GB, free: 10 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02055/0.4883, allocations: 5.413 MB / 0.5152 GB, free: 9.914 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00461/0.493, allocations: 0.6256 MB / 0.5158 GB, free: 9.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004068/0.4971, allocations: 1.152 MB / 0.5169 GB, free: 9.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008826/0.5059, allocations: 5.048 MB / 0.5219 GB, free: 8.965 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001829/0.5078, allocations: 0.6965 MB / 0.5225 GB, free: 8.852 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001655/0.5095, allocations: 0.9117 MB / 0.5234 GB, free: 8.641 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004038/0.5099, allocations: 118 kB / 0.5235 GB, free: 8.641 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001518/0.5114, allocations: 0.671 MB / 0.5242 GB, free: 8.504 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001118/0.5125, allocations: 1.134 MB / 0.5253 GB, free: 8.27 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007198/0.5133, allocations: 0.6127 MB / 0.5259 GB, free: 8.238 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004566/0.5178, allocations: 4.604 MB / 0.5304 GB, free: 5.617 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.5179, allocations: 1.75 kB / 0.5304 GB, free: 5.617 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.806e-06/0.5179, allocations: 0 / 0.5304 GB, free: 5.617 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001936/0.5181, allocations: 0 / 0.5304 GB, free: 5.617 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.009149/0.5272, allocations: 3.427 MB / 0.5338 GB, free: 3.602 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.5273, allocations: 10.75 kB / 0.5338 GB, free: 3.602 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001547/0.5289, allocations: 0.5337 MB / 0.5343 GB, free: 3.441 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002656/0.5315, allocations: 0.6411 MB / 0.5349 GB, free: 3.117 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003918/0.5355, allocations: 1.774 MB / 0.5366 GB, free: 2.453 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001437/0.5356, allocations: 205.2 kB / 0.5368 GB, free: 2.445 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007232/0.5364, allocations: 281.8 kB / 0.5371 GB, free: 2.441 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01976/0.5561, allocations: 8.342 MB / 0.5453 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.01e-05/0.5563, allocations: 17.28 kB / 0.5453 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004105/0.5567, allocations: 118.5 kB / 0.5454 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001976/0.5587, allocations: 1.134 MB / 0.5465 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01749/0.5762, allocations: 7.136 MB / 0.5535 GB, free: 9.602 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03509/0.6113, allocations: 24.86 MB / 0.5777 GB, free: 2.773 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007305/0.6187, allocations: 2.285 MB / 0.58 GB, free: 492 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01103/0.6297, allocations: 7.159 MB / 0.587 GB, free: 8.812 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.886e-05/0.6298, allocations: 43.22 kB / 0.587 GB, free: 8.762 MB / 430.1 MB Notification: Performance of pre-optimization done (n=80): time 2.945e-06/0.6298, allocations: 0 / 0.587 GB, free: 8.762 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.01685/0.6467, allocations: 5.375 MB / 0.5922 GB, free: 3.395 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.488e-05/0.6468, allocations: 68.39 kB / 0.5923 GB, free: 3.312 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003113/0.6499, allocations: 2.394 MB / 0.5946 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001018/0.65, allocations: 41.7 kB / 0.5947 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001222/0.6512, allocations: 2.067 MB / 0.5967 GB, free: 14.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002901/0.6515, allocations: 385.4 kB / 0.5971 GB, free: 14.42 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.6517, allocations: 68 kB / 0.5971 GB, free: 14.36 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.00021/0.6519, allocations: 453.5 kB / 0.5976 GB, free: 13.91 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001398/0.6533, allocations: 1.016 MB / 0.5986 GB, free: 12.89 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002512/0.6558, allocations: 3.16 MB / 0.6016 GB, free: 8.695 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00214/0.658, allocations: 1.714 MB / 0.6033 GB, free: 7.008 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.874e-05/0.658, allocations: 23.94 kB / 0.6033 GB, free: 6.984 MB / 446.1 MB Notification: Performance of matching and sorting (n=452) (initialization): time 0.005822/0.6638, allocations: 4.074 MB / 0.6073 GB, free: 2.902 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.134e-05/0.6639, allocations: 40 kB / 0.6074 GB, free: 2.863 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.281e-05/0.664, allocations: 76.88 kB / 0.6074 GB, free: 2.789 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.96e-05/0.6641, allocations: 112 kB / 0.6075 GB, free: 2.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002393/0.6665, allocations: 0.8422 MB / 0.6084 GB, free: 1.836 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001072/0.6666, allocations: 151.4 kB / 0.6085 GB, free: 1.688 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002139/0.6688, allocations: 175.8 kB / 0.6087 GB, free: 1.516 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002368/0.669, allocations: 218.1 kB / 0.6089 GB, free: 1.305 MB / 446.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.002242/0.6713, allocations: 1.425 MB / 0.6103 GB, free: 15.86 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002769/0.6716, allocations: 205.1 kB / 0.6105 GB, free: 15.66 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002078/0.6736, allocations: 1.414 MB / 0.6119 GB, free: 14.24 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.6737, allocations: 8 kB / 0.6119 GB, free: 14.23 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.6737, allocations: 0 / 0.6119 GB, free: 14.23 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.6737, allocations: 7.969 kB / 0.6119 GB, free: 14.22 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00798/0.6817, allocations: 5.217 MB / 0.617 GB, free: 8.738 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-05/0.6817, allocations: 16 kB / 0.617 GB, free: 8.723 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000742/0.6825, allocations: 219.6 kB / 0.6172 GB, free: 8.508 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.472e-05/0.6825, allocations: 20.78 kB / 0.6172 GB, free: 8.488 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-05/0.6826, allocations: 36 kB / 0.6172 GB, free: 8.453 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-05/0.6826, allocations: 38 kB / 0.6173 GB, free: 8.418 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.459e-05/0.6826, allocations: 23.88 kB / 0.6173 GB, free: 8.395 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002714/0.6854, allocations: 2.972 MB / 0.6202 GB, free: 4.898 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006156/0.686, allocations: 294.2 kB / 0.6205 GB, free: 4.59 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002172/0.6862, allocations: 47.98 kB / 0.6205 GB, free: 4.543 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000708/0.6869, allocations: 47.91 kB / 0.6206 GB, free: 4.496 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.6871, allocations: 116.1 kB / 0.6207 GB, free: 4.383 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.754e-05/0.6872, allocations: 44 kB / 0.6207 GB, free: 4.34 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002233/0.6894, allocations: 1.514 MB / 0.6222 GB, free: 2.812 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6894, allocations: 4 kB / 0.6222 GB, free: 2.809 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002982/0.6924, allocations: 0.6055 MB / 0.6228 GB, free: 2.203 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 62 * 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.004695/0.6971, allocations: 7.262 MB / 0.6299 GB, free: 10.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004026/0.7011, allocations: 2.341 MB / 0.6322 GB, free: 8.176 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.119e-05/0.7012, allocations: 4 kB / 0.6322 GB, free: 8.172 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000791/0.702, allocations: 0.5678 MB / 0.6327 GB, free: 7.605 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001645/0.7036, allocations: 311.1 kB / 0.633 GB, free: 7.305 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03328/0.7369, allocations: 63.45 MB / 0.695 GB, free: 5.898 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002641/0.7396, allocations: 2.518 MB / 0.6975 GB, free: 3.352 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002572/0.7422, allocations: 0.9572 MB / 0.6984 GB, free: 2.387 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001439/0.7436, allocations: 1.237 MB / 0.6996 GB, free: 1.152 MB / 0.5294 GB Notification: Performance of SimCode: time 9.42e-07/0.7436, allocations: 0 / 0.6996 GB, free: 1.152 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3327/1.076, allocations: 45.19 MB / 0.7437 GB, free: 169.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/1.077, allocations: 176.4 kB / 0.7439 GB, free: 169 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.091/4.168, allocations: 0 / 0.7439 GB, free: 169 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSR.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR_res.mat does not exist to compare? outputFormat=mat