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.001001/0.001002, allocations: 96.44 kB / 17 MB, free: 6.086 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.001089/0.001089, allocations: 183.5 kB / 17.89 MB, free: 5.664 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.37/1.37, allocations: 223.2 MB / 241.9 MB, free: 308 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.2109/0.2109, allocations: 44.22 MB / 337.2 MB, free: 2.879 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003274/0.0003275, allocations: 12 kB / 409.7 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1162, allocations: 61.92 MB / 471.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSR): time 0.03833/0.1546, allocations: 41.48 MB / 0.5011 GB, free: 4.047 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2373/0.392, allocations: 8.843 MB / 0.5097 GB, free: 9.926 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008998/0.401, allocations: 190.2 kB / 0.5099 GB, free: 9.926 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007898/0.409, allocations: 2.025 MB / 0.5119 GB, free: 9.902 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01618/0.4252, allocations: 5.626 MB / 0.5174 GB, free: 9.574 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00354/0.4287, allocations: 0.6715 MB / 0.5181 GB, free: 9.535 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004401/0.4331, allocations: 2.672 MB / 0.5207 GB, free: 8.992 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006624/0.4398, allocations: 5.069 MB / 0.5256 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00158/0.4414, allocations: 0.8607 MB / 0.5265 GB, free: 7.203 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001725/0.4431, allocations: 1.332 MB / 0.5278 GB, free: 6.746 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002582/0.4434, allocations: 117.5 kB / 0.5279 GB, free: 6.746 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001307/0.4447, allocations: 0.6959 MB / 0.5286 GB, free: 6.574 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008934/0.4456, allocations: 1.211 MB / 0.5297 GB, free: 6.145 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004962/0.4461, allocations: 0.6119 MB / 0.5303 GB, free: 5.996 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003766/0.4499, allocations: 4.608 MB / 0.5348 GB, free: 3.363 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.4499, allocations: 1.781 kB / 0.5348 GB, free: 3.363 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4499, allocations: 0 / 0.5348 GB, free: 3.363 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001599/0.4501, allocations: 0 / 0.5348 GB, free: 3.363 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.007494/0.4576, allocations: 3.269 MB / 0.538 GB, free: 1.383 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.925e-05/0.4577, allocations: 10.16 kB / 0.538 GB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001662/0.4594, allocations: 0.5408 MB / 0.5386 GB, free: 1.219 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002435/0.4618, allocations: 0.5865 MB / 0.5391 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003169/0.465, allocations: 1.771 MB / 0.5409 GB, free: 148 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/0.4651, allocations: 206 kB / 0.5411 GB, free: 140 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004098/0.4656, allocations: 278.7 kB / 0.5413 GB, free: 136 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01771/0.4833, allocations: 8.269 MB / 0.5494 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.742e-05/0.4834, allocations: 15.81 kB / 0.5494 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003312/0.4837, allocations: 125.8 kB / 0.5495 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001629/0.4853, allocations: 1.127 MB / 0.5506 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01493/0.5003, allocations: 6.936 MB / 0.5574 GB, free: 6.137 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02878/0.5291, allocations: 24.77 MB / 0.5816 GB, free: 13.52 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006283/0.5354, allocations: 2.274 MB / 0.5838 GB, free: 11.24 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001253/0.5367, allocations: 1.078 MB / 0.5849 GB, free: 10.16 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007737/0.5445, allocations: 7.09 MB / 0.5918 GB, free: 2.551 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.537e-05/0.5445, allocations: 47.16 kB / 0.5918 GB, free: 2.496 MB / 430.1 MB Notification: Performance of pre-optimization done (n=80): time 2.215e-06/0.5445, allocations: 1.641 kB / 0.5918 GB, free: 2.496 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.01451/0.559, allocations: 5.371 MB / 0.5971 GB, free: 13.12 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.598e-05/0.5591, allocations: 60.41 kB / 0.5971 GB, free: 13.05 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002629/0.5617, allocations: 2.394 MB / 0.5995 GB, free: 10.63 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.725e-05/0.5618, allocations: 41.7 kB / 0.5995 GB, free: 10.59 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001226/0.563, allocations: 2.063 MB / 0.6015 GB, free: 8.535 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002789/0.5633, allocations: 383.5 kB / 0.6019 GB, free: 8.164 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.5634, allocations: 68 kB / 0.602 GB, free: 8.098 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002162/0.5636, allocations: 457.5 kB / 0.6024 GB, free: 7.645 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001353/0.565, allocations: 1.014 MB / 0.6034 GB, free: 6.629 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00259/0.5676, allocations: 3.171 MB / 0.6065 GB, free: 2.387 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002128/0.5697, allocations: 1.72 MB / 0.6082 GB, free: 0.668 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.41e-05/0.5698, allocations: 20 kB / 0.6082 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of matching and sorting (n=452) (initialization): time 0.005535/0.5753, allocations: 4.083 MB / 0.6122 GB, free: 12.55 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.762e-05/0.5754, allocations: 44.03 kB / 0.6122 GB, free: 12.51 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.924e-05/0.5755, allocations: 76 kB / 0.6123 GB, free: 12.44 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.974e-05/0.5756, allocations: 112 kB / 0.6124 GB, free: 12.33 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002188/0.5778, allocations: 0.8383 MB / 0.6132 GB, free: 11.49 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001059/0.5779, allocations: 151.4 kB / 0.6134 GB, free: 11.34 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001639/0.5795, allocations: 179.8 kB / 0.6135 GB, free: 11.16 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002376/0.5798, allocations: 208 kB / 0.6137 GB, free: 10.96 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.001942/0.5817, allocations: 1.431 MB / 0.6151 GB, free: 9.52 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002341/0.582, allocations: 205.3 kB / 0.6153 GB, free: 9.316 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002041/0.584, allocations: 1.406 MB / 0.6167 GB, free: 7.902 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.584, allocations: 13.64 kB / 0.6167 GB, free: 7.891 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.5841, allocations: 0 / 0.6167 GB, free: 7.891 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.5841, allocations: 7.969 kB / 0.6167 GB, free: 7.883 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006928/0.591, allocations: 5.214 MB / 0.6218 GB, free: 2.406 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.681e-05/0.5911, allocations: 20.19 kB / 0.6218 GB, free: 2.387 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006696/0.5917, allocations: 223.6 kB / 0.622 GB, free: 2.168 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.196e-05/0.5918, allocations: 24 kB / 0.6221 GB, free: 2.145 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.731e-05/0.5918, allocations: 37.2 kB / 0.6221 GB, free: 2.109 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.683e-05/0.5919, allocations: 27.92 kB / 0.6221 GB, free: 2.082 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-05/0.5919, allocations: 27.83 kB / 0.6222 GB, free: 2.055 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001904/0.5938, allocations: 1.723 MB / 0.6238 GB, free: 132 kB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005105/0.5943, allocations: 298.4 kB / 0.6241 GB, free: 15.81 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001943/0.5945, allocations: 43.98 kB / 0.6242 GB, free: 15.77 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006049/0.5951, allocations: 39.98 kB / 0.6242 GB, free: 15.73 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001211/0.5952, allocations: 124 kB / 0.6243 GB, free: 15.61 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-05/0.5953, allocations: 48 kB / 0.6244 GB, free: 15.57 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002042/0.5974, allocations: 1.51 MB / 0.6258 GB, free: 14.04 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.162e-06/0.5974, allocations: 0 / 0.6258 GB, free: 14.04 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002848/0.6002, allocations: 0.6069 MB / 0.6264 GB, free: 13.44 MB / 478.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.00296/0.6032, allocations: 2.352 MB / 0.6287 GB, free: 10.88 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004088/0.6073, allocations: 2.35 MB / 0.631 GB, free: 8.543 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.77e-05/0.6074, allocations: 4 kB / 0.631 GB, free: 8.539 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008377/0.6082, allocations: 0.5639 MB / 0.6316 GB, free: 7.977 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001783/0.61, allocations: 335 kB / 0.6319 GB, free: 7.652 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02841/0.6384, allocations: 18.96 MB / 0.6504 GB, free: 2.473 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002761/0.6412, allocations: 2.46 MB / 0.6528 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002926/0.6442, allocations: 0.9533 MB / 0.6537 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00171/0.6459, allocations: 1.237 MB / 0.655 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of SimCode: time 1.553e-06/0.6459, allocations: 3.938 kB / 0.655 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07885/0.7247, allocations: 45.86 MB / 0.6997 GB, free: 224 kB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00022/0.725, allocations: 190.6 kB / 0.6999 GB, free: 15.97 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.034/3.759, allocations: 0 / 0.6999 GB, free: 15.97 MB / 0.545 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