Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.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.Revolute,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute",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.001044/0.001044, allocations: 102.1 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.0009369/0.0009369, allocations: 182 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.398/1.398, allocations: 223.2 MB / 241.8 MB, free: 14.65 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.2154/0.2154, allocations: 44.23 MB / 337.1 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003264/0.0003264, allocations: 8 kB / 409.6 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.125, allocations: 61.92 MB / 471.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.02483/0.1499, allocations: 25.39 MB / 496.9 MB, free: 4.195 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01629/0.1663, allocations: 6.625 MB / 0.4918 GB, free: 13.55 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005409/0.1718, allocations: 123.7 kB / 0.4919 GB, free: 13.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004524/0.1763, allocations: 1.291 MB / 0.4931 GB, free: 12.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01345/0.1898, allocations: 3.916 MB / 0.497 GB, free: 8.207 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002014/0.1918, allocations: 407.3 kB / 0.4973 GB, free: 7.809 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004174/0.196, allocations: 1.948 MB / 0.4992 GB, free: 5.859 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003586/0.1997, allocations: 2.241 MB / 0.5014 GB, free: 3.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001239/0.2009, allocations: 0.8641 MB / 0.5023 GB, free: 2.703 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001451/0.2024, allocations: 1.207 MB / 0.5035 GB, free: 1.492 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000417/0.2028, allocations: 132 kB / 0.5036 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001619/0.2044, allocations: 0.749 MB / 0.5043 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2828/0.4873, allocations: 1.35 MB / 0.5056 GB, free: 13.53 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001367/0.4887, allocations: 0.7454 MB / 0.5064 GB, free: 13.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008296/0.497, allocations: 4.715 MB / 0.511 GB, free: 13.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.497, allocations: 0 / 0.511 GB, free: 13.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.4971, allocations: 1.75 kB / 0.511 GB, free: 13.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000262/0.4973, allocations: 0 / 0.511 GB, free: 13.16 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: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.009953/0.5073, allocations: 3.508 MB / 0.5144 GB, free: 11.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.278e-05/0.5073, allocations: 11.95 kB / 0.5144 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001895/0.5093, allocations: 0.7084 MB / 0.5151 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.013/0.5223, allocations: 3.737 MB / 0.5187 GB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00621/0.5285, allocations: 1.958 MB / 0.5207 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002302/0.5288, allocations: 193.3 kB / 0.5208 GB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001406/0.5302, allocations: 247.2 kB / 0.5211 GB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02085/0.551, allocations: 10.55 MB / 0.5314 GB, free: 8.438 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000127/0.5513, allocations: 30.12 kB / 0.5314 GB, free: 8.434 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004969/0.5518, allocations: 115.7 kB / 0.5315 GB, free: 8.434 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004041/0.5558, allocations: 2.549 MB / 0.534 GB, free: 7.848 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01829/0.5741, allocations: 9.973 MB / 0.5437 GB, free: 3.961 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05531/0.6295, allocations: 34.55 MB / 0.5775 GB, free: 4.531 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009737/0.6393, allocations: 5.165 MB / 0.5825 GB, free: 15.14 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00179/0.6411, allocations: 1.882 MB / 0.5844 GB, free: 12.94 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.078e-05/0.6412, allocations: 59.28 kB / 0.5844 GB, free: 12.88 MB / 430.1 MB Notification: Performance of pre-optimization done (n=229): time 7.444e-06/0.6412, allocations: 0 / 0.5844 GB, free: 12.88 MB / 430.1 MB Notification: Performance of matching and sorting (n=235): time 0.03232/0.6735, allocations: 14.46 MB / 0.5986 GB, free: 14.27 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.288e-05/0.6736, allocations: 69.41 kB / 0.5986 GB, free: 14.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003913/0.6775, allocations: 2.743 MB / 0.6013 GB, free: 11.44 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002977/0.6778, allocations: 53.7 kB / 0.6013 GB, free: 11.38 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001524/0.6794, allocations: 2.637 MB / 0.6039 GB, free: 8.75 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009001/0.6803, allocations: 0.8485 MB / 0.6048 GB, free: 7.91 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002166/0.6805, allocations: 100 kB / 0.6048 GB, free: 7.812 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002948/0.6808, allocations: 0.5331 MB / 0.6054 GB, free: 7.273 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002977/0.6838, allocations: 2.175 MB / 0.6075 GB, free: 5.094 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004699/0.6885, allocations: 5.023 MB / 0.6124 GB, free: 14.71 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004309/0.6928, allocations: 3.301 MB / 0.6156 GB, free: 11.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.684e-05/0.6929, allocations: 28 kB / 0.6156 GB, free: 11.47 MB / 462.1 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.01262/0.7055, allocations: 7.824 MB / 0.6233 GB, free: 4.238 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001091/0.7056, allocations: 52.03 kB / 0.6233 GB, free: 4.188 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001662/0.7058, allocations: 100 kB / 0.6234 GB, free: 4.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002241/0.7081, allocations: 0.8045 MB / 0.6242 GB, free: 3.281 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004211/0.7123, allocations: 1.181 MB / 0.6254 GB, free: 2.199 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005707/0.718, allocations: 4.292 MB / 0.6296 GB, free: 13.79 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00436/0.7224, allocations: 291.8 kB / 0.6298 GB, free: 13.51 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001132/0.7235, allocations: 308 kB / 0.6301 GB, free: 13.21 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 454 * Number of states: 0 () * Number of discrete variables: 29 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.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 (631): * Single equations (assignments): 624 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005534/0.7291, allocations: 2.016 MB / 0.6321 GB, free: 11.18 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007327/0.7298, allocations: 260.5 kB / 0.6324 GB, free: 10.93 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008647/0.7385, allocations: 4.714 MB / 0.637 GB, free: 6.188 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.546e-05/0.7386, allocations: 45.73 kB / 0.637 GB, free: 6.145 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/0.7386, allocations: 4 kB / 0.637 GB, free: 6.141 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.84e-05/0.7386, allocations: 11.95 kB / 0.637 GB, free: 6.129 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01848/0.7571, allocations: 10.53 MB / 0.6473 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.591e-05/0.7572, allocations: 8 kB / 0.6473 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001552/0.7587, allocations: 359.4 kB / 0.6476 GB, free: 11.14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002033/0.7608, allocations: 0.6529 MB / 0.6483 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001935/0.761, allocations: 50.86 kB / 0.6483 GB, free: 10.43 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004946/0.7659, allocations: 3.748 MB / 0.652 GB, free: 6.543 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.725e-06/0.766, allocations: 8 kB / 0.652 GB, free: 6.535 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01088/0.7768, allocations: 7.678 MB / 0.6595 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000896/0.7778, allocations: 309.7 kB / 0.6598 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006343/0.7784, allocations: 43.98 kB / 0.6598 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001217/0.7796, allocations: 146.2 kB / 0.66 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003077/0.78, allocations: 134.7 kB / 0.6601 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001675/0.7801, allocations: 67.98 kB / 0.6602 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002915/0.7831, allocations: 1.682 MB / 0.6618 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.71e-07/0.7831, allocations: 0 / 0.6618 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004431/0.7875, allocations: 0.9447 MB / 0.6627 GB, free: 11.23 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (revolute.phi,revolute.w) * 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 (178): * Single equations (assignments): 171 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01204/0.7996, allocations: 10.12 MB / 0.6726 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008655/0.8083, allocations: 5.307 MB / 0.6778 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.346e-05/0.8083, allocations: 128 / 0.6778 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002838/0.8112, allocations: 2.024 MB / 0.6798 GB, free: 9.555 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002027/0.8132, allocations: 319.7 kB / 0.6801 GB, free: 9.246 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2989/1.112, allocations: 97.61 MB / 0.7754 GB, free: 97.99 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003477/1.116, allocations: 3.255 MB / 0.7786 GB, free: 97.21 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003965/1.12, allocations: 1.955 MB / 0.7805 GB, free: 97.08 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002212/1.122, allocations: 1.718 MB / 0.7822 GB, free: 97.07 MB / 0.5294 GB Notification: Performance of SimCode: time 1.072e-06/1.122, allocations: 3.094 kB / 0.7822 GB, free: 97.07 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1013/1.223, allocations: 64.21 MB / 0.8449 GB, free: 42.37 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001813/1.223, allocations: 197.3 kB / 0.8451 GB, free: 42.13 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.538/4.761, allocations: 0 / 0.8451 GB, free: 42.13 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute_res.mat does not exist to compare? outputFormat=mat