Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 221.5 MB / 230.7 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009672/0.0009673, allocations: 92.73 kB / 281.6 MB, free: 5.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2107/0.2107, allocations: 44.16 MB / 376.5 MB, free: 3.035 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.561e-05/1.547e-05, allocations: 4 kB / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1407/0.1408, allocations: 61.92 MB / 0.4948 GB, free: 1.141 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5036/0.6445, allocations: 106.2 MB / 0.5985 GB, free: 6.203 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002092/0.6447, allocations: 87.88 kB / 0.5986 GB, free: 6.121 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6619/1.307, allocations: 126.3 MB / 0.7219 GB, free: 111 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.136e-06/1.307, allocations: 0 / 0.7219 GB, free: 111 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003991/1.307, allocations: 117.9 kB / 0.722 GB, free: 111 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.02204/1.329, allocations: 6.152 MB / 0.728 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.497e-05/1.329, allocations: 19.27 kB / 0.728 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02726/1.357, allocations: 6.434 MB / 0.7343 GB, free: 108.2 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01783/1.374, allocations: 7.928 MB / 0.7421 GB, free: 107.4 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002891/1.375, allocations: 187 kB / 0.7423 GB, free: 107.4 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00301/1.378, allocations: 348.9 kB / 0.7426 GB, free: 107.4 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01714/1.395, allocations: 10.43 MB / 0.7528 GB, free: 107.2 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02888/1.424, allocations: 13.56 MB / 0.766 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004025/1.424, allocations: 60.39 kB / 0.7661 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002698/1.427, allocations: 22.5 kB / 0.7661 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002354/1.429, allocations: 1.657 MB / 0.7677 GB, free: 101.1 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07894/1.508, allocations: 52.55 MB / 0.819 GB, free: 57.52 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007476/1.516, allocations: 6.636 MB / 0.8255 GB, free: 50.66 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004996/1.521, allocations: 4.602 MB / 0.83 GB, free: 46.05 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001643/1.523, allocations: 2.215 MB / 0.8322 GB, free: 43.47 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.448e-05/1.523, allocations: 65.05 kB / 0.8322 GB, free: 43.4 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=369): time 7.013e-06/1.523, allocations: 0 / 0.8322 GB, free: 43.4 MB / 0.4948 GB Notification: Performance of matching and sorting (n=431): time 0.07358/1.596, allocations: 35.59 MB / 0.867 GB, free: 7.75 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.471e-05/1.596, allocations: 120.1 kB / 0.8671 GB, free: 7.613 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006185/1.603, allocations: 3.441 MB / 0.8705 GB, free: 4.152 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001339/1.604, allocations: 25.7 kB / 0.8705 GB, free: 4.121 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002225/1.606, allocations: 3.922 MB / 0.8743 GB, free: 148 kB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002648/1.609, allocations: 1.487 MB / 0.8758 GB, free: 14.64 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005105/1.609, allocations: 0 / 0.8758 GB, free: 14.64 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005849/1.61, allocations: 0.6531 MB / 0.8764 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006849/1.617, allocations: 3.815 MB / 0.8801 GB, free: 10.16 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0104/1.627, allocations: 7.771 MB / 0.8877 GB, free: 444 kB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3783/2.006, allocations: 5.449 MB / 0.893 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001451/2.006, allocations: 39.44 kB / 0.8931 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1065) (initialization): time 0.03133/2.037, allocations: 13.4 MB / 0.9062 GB, free: 109.9 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001209/2.037, allocations: 64.88 kB / 0.9062 GB, free: 109.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002289/2.037, allocations: 138.6 kB / 0.9064 GB, free: 109.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007318/2.045, allocations: 2.608 MB / 0.9089 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008179/2.053, allocations: 2.032 MB / 0.9109 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01647/2.07, allocations: 12.91 MB / 0.9235 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007371/2.077, allocations: 345.6 kB / 0.9238 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002261/2.079, allocations: 448.5 kB / 0.9243 GB, free: 107.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 630 * Number of states: 0 () * Number of discrete variables: 50 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],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.arrowLine.twoHeadedArrow,axis.headAtOrigin,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (968): * Single equations (assignments): 960 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001995/2.081, allocations: 478.8 kB / 0.9247 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01653/2.098, allocations: 9.22 MB / 0.9337 GB, free: 105 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001883/2.1, allocations: 459 kB / 0.9342 GB, free: 104.9 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02084/2.121, allocations: 10.24 MB / 0.9442 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-05/2.121, allocations: 63.77 kB / 0.9442 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.775e-05/2.121, allocations: 10.81 kB / 0.9442 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.261e-05/2.121, allocations: 17.2 kB / 0.9442 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03589/2.157, allocations: 19.67 MB / 0.9635 GB, free: 95.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.769e-05/2.157, allocations: 10.66 kB / 0.9635 GB, free: 95.33 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004175/2.161, allocations: 0.8064 MB / 0.9643 GB, free: 95.27 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007076/2.168, allocations: 2.375 MB / 0.9666 GB, free: 94.94 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001061/2.169, allocations: 36.03 kB / 0.9666 GB, free: 94.93 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01512/2.184, allocations: 11.69 MB / 0.978 GB, free: 86.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-05/2.184, allocations: 19.94 kB / 0.978 GB, free: 86.36 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02359/2.208, allocations: 16.11 MB / 0.9938 GB, free: 71.88 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001691/2.21, allocations: 478.7 kB / 0.9942 GB, free: 71.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001651/2.211, allocations: 26.06 kB / 0.9943 GB, free: 71.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003415/2.215, allocations: 241 kB / 0.9945 GB, free: 71.26 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006859/2.215, allocations: 276.7 kB / 0.9947 GB, free: 71.08 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003086/2.216, allocations: 115.6 kB / 0.9949 GB, free: 70.97 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00391/2.22, allocations: 2.319 MB / 0.9971 GB, free: 68.96 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.41e-07/2.22, allocations: 3.75 kB / 0.9971 GB, free: 68.96 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009614/2.229, allocations: 1.447 MB / 0.9985 GB, free: 67.52 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (346): * Single equations (assignments): 338 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02297/2.252, allocations: 19.44 MB / 1.018 GB, free: 49.36 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01442/2.267, allocations: 9.453 MB / 1.027 GB, free: 39.93 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-05/2.267, allocations: 4 kB / 1.027 GB, free: 39.93 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005475/2.272, allocations: 4.184 MB / 1.031 GB, free: 35.73 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003549/2.276, allocations: 495.8 kB / 1.031 GB, free: 35.26 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03049/2.306, allocations: 14.92 MB / 1.046 GB, free: 20.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004453/2.311, allocations: 4.696 MB / 1.05 GB, free: 15.48 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.006876/2.318, allocations: 2.849 MB / 1.053 GB, free: 12.64 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004312/2.322, allocations: 2.866 MB / 1.056 GB, free: 9.773 MB / 0.5105 GB Notification: Performance of SimCode: time 2.435e-06/2.322, allocations: 0 / 1.056 GB, free: 9.773 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5502/2.872, allocations: 115.8 MB / 1.169 GB, free: 117.6 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002346/2.873, allocations: 133.1 kB / 1.169 GB, free: 117.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.225/8.098, allocations: 7.938 kB / 1.169 GB, free: 117.4 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat