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.0008884/0.0008883, allocations: 99.03 kB / 17 MB, free: 6.402 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.001173/0.001173, allocations: 177.7 kB / 17.89 MB, free: 5.945 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.339/1.339, allocations: 223.2 MB / 241.9 MB, free: 304 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.1982/0.1982, allocations: 44.23 MB / 337.2 MB, free: 2.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003245/0.0003245, allocations: 12 kB / 409.7 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1242, allocations: 61.93 MB / 471.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.02559/0.1499, allocations: 26.8 MB / 498.5 MB, free: 2.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01348/0.1634, allocations: 6.408 MB / 0.493 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004533/0.168, allocations: 119.7 kB / 0.4932 GB, free: 12.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003794/0.1718, allocations: 1.283 MB / 0.4944 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00998/0.1818, allocations: 3.985 MB / 0.4983 GB, free: 6.898 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001503/0.1833, allocations: 411.4 kB / 0.4987 GB, free: 6.496 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004579/0.1879, allocations: 3.856 MB / 0.5025 GB, free: 2.629 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003692/0.1916, allocations: 2.241 MB / 0.5046 GB, free: 348 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2456/0.4373, allocations: 1.015 MB / 0.5056 GB, free: 12.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003495/0.4408, allocations: 1.671 MB / 0.5073 GB, free: 12.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007204/0.4416, allocations: 132.3 kB / 0.5074 GB, free: 12.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002172/0.4437, allocations: 0.7644 MB / 0.5081 GB, free: 12.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002065/0.4458, allocations: 1.459 MB / 0.5096 GB, free: 12.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001139/0.447, allocations: 0.7449 MB / 0.5103 GB, free: 12.74 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007233/0.4542, allocations: 4.717 MB / 0.5149 GB, free: 12.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.917e-06/0.4543, allocations: 1.906 kB / 0.5149 GB, free: 12.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.567e-06/0.4543, allocations: 0 / 0.5149 GB, free: 12.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002048/0.4545, allocations: 3.5 kB / 0.5149 GB, free: 12.43 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.008596/0.4631, allocations: 3.464 MB / 0.5183 GB, free: 10.72 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.4632, allocations: 8.875 kB / 0.5183 GB, free: 10.72 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001302/0.4645, allocations: 0.7102 MB / 0.519 GB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01011/0.4746, allocations: 3.176 MB / 0.5221 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00484/0.4795, allocations: 2.17 MB / 0.5242 GB, free: 9.766 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000138/0.4796, allocations: 186.8 kB / 0.5244 GB, free: 9.758 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006362/0.4803, allocations: 247.1 kB / 0.5246 GB, free: 9.758 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01399/0.4943, allocations: 10.48 MB / 0.5349 GB, free: 7.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.643e-05/0.4944, allocations: 27.28 kB / 0.5349 GB, free: 7.066 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003772/0.4948, allocations: 116.5 kB / 0.535 GB, free: 7.066 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003524/0.4983, allocations: 2.554 MB / 0.5375 GB, free: 6.477 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01694/0.5152, allocations: 9.884 MB / 0.5471 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05154/0.5668, allocations: 34.46 MB / 0.5808 GB, free: 15.95 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009906/0.5768, allocations: 5.178 MB / 0.5858 GB, free: 10.55 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003577/0.5804, allocations: 2.287 MB / 0.5881 GB, free: 8.266 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001694/0.5821, allocations: 1.879 MB / 0.5899 GB, free: 6.062 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.536e-05/0.5822, allocations: 56.56 kB / 0.59 GB, free: 6 MB / 430.1 MB Notification: Performance of pre-optimization done (n=229): time 5.38e-06/0.5822, allocations: 0 / 0.59 GB, free: 6 MB / 430.1 MB Notification: Performance of matching and sorting (n=235): time 0.03186/0.6141, allocations: 13.92 MB / 0.6036 GB, free: 8.051 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.174e-05/0.6142, allocations: 73.41 kB / 0.6036 GB, free: 7.969 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003877/0.6181, allocations: 2.62 MB / 0.6062 GB, free: 5.332 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005101/0.6186, allocations: 57.7 kB / 0.6062 GB, free: 5.27 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001961/0.6206, allocations: 2.632 MB / 0.6088 GB, free: 2.648 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001255/0.6218, allocations: 0.8582 MB / 0.6097 GB, free: 1.801 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002559/0.6221, allocations: 100 kB / 0.6098 GB, free: 1.703 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000339/0.6225, allocations: 0.5331 MB / 0.6103 GB, free: 1.164 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003367/0.6258, allocations: 2.178 MB / 0.6124 GB, free: 14.98 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005792/0.6316, allocations: 5.038 MB / 0.6173 GB, free: 8.582 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005084/0.6368, allocations: 3.306 MB / 0.6205 GB, free: 5.367 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-05/0.6368, allocations: 28 kB / 0.6206 GB, free: 5.34 MB / 462.1 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.01591/0.6527, allocations: 7.824 MB / 0.6282 GB, free: 14.07 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002048/0.653, allocations: 50.34 kB / 0.6283 GB, free: 14.02 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002922/0.6533, allocations: 104 kB / 0.6284 GB, free: 13.92 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002623/0.656, allocations: 0.8063 MB / 0.6291 GB, free: 13.11 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005027/0.661, allocations: 1.181 MB / 0.6303 GB, free: 11.93 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006512/0.6676, allocations: 4.195 MB / 0.6344 GB, free: 7.602 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004267/0.6719, allocations: 291.8 kB / 0.6347 GB, free: 7.316 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001418/0.6733, allocations: 300 kB / 0.635 GB, free: 7.023 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.005759/0.6791, allocations: 2.024 MB / 0.6369 GB, free: 4.992 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007233/0.6798, allocations: 264.5 kB / 0.6372 GB, free: 4.73 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008787/0.6886, allocations: 4.714 MB / 0.6418 GB, free: 15.99 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.574e-05/0.6887, allocations: 43.94 kB / 0.6418 GB, free: 15.95 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.6888, allocations: 4 kB / 0.6418 GB, free: 15.95 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.925e-05/0.6888, allocations: 7.969 kB / 0.6418 GB, free: 15.94 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01947/0.7083, allocations: 10.52 MB / 0.6521 GB, free: 5.312 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-05/0.7083, allocations: 4.094 kB / 0.6521 GB, free: 5.309 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001668/0.71, allocations: 363.3 kB / 0.6525 GB, free: 4.953 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001904/0.7119, allocations: 0.6561 MB / 0.6531 GB, free: 4.293 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002876/0.7122, allocations: 47.91 kB / 0.6532 GB, free: 4.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004708/0.717, allocations: 3.651 MB / 0.6567 GB, free: 468 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.04e-05/0.717, allocations: 12 kB / 0.6567 GB, free: 456 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01107/0.7281, allocations: 7.118 MB / 0.6637 GB, free: 9.219 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001102/0.7292, allocations: 309.7 kB / 0.664 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007946/0.73, allocations: 39.75 kB / 0.664 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001589/0.7316, allocations: 145.5 kB / 0.6642 GB, free: 8.719 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003148/0.732, allocations: 133 kB / 0.6643 GB, free: 8.59 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001843/0.7322, allocations: 64 kB / 0.6643 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002869/0.735, allocations: 1.596 MB / 0.6659 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.4e-07/0.735, allocations: 0 / 0.6659 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004633/0.7397, allocations: 0.9295 MB / 0.6668 GB, free: 5.996 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.01088/0.7506, allocations: 7.767 MB / 0.6744 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.009031/0.7596, allocations: 5.307 MB / 0.6796 GB, free: 8.816 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/0.7597, allocations: 8.125 kB / 0.6796 GB, free: 8.809 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002929/0.7626, allocations: 2.027 MB / 0.6816 GB, free: 6.77 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002528/0.7652, allocations: 343.5 kB / 0.6819 GB, free: 6.434 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.29/1.055, allocations: 29.09 MB / 0.7103 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003939/1.059, allocations: 3.165 MB / 0.7134 GB, free: 157.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004218/1.063, allocations: 1.953 MB / 0.7153 GB, free: 157.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002247/1.066, allocations: 1.719 MB / 0.717 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of SimCode: time 8.01e-07/1.066, allocations: 0 / 0.717 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1581/1.224, allocations: 63.52 MB / 0.779 GB, free: 107.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001598/1.224, allocations: 199.3 kB / 0.7792 GB, free: 107 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.704/4.929, allocations: 4 kB / 0.7792 GB, free: 107 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