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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008378/0.0008378, allocations: 100.4 kB / 17 MB, free: 6.418 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.0008275/0.0008275, allocations: 191 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.324/1.324, allocations: 223.2 MB / 241.9 MB, free: 332 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.2087/0.2087, allocations: 44.22 MB / 337.2 MB, free: 2.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003131/0.0003131, allocations: 8 kB / 409.7 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1228, allocations: 61.92 MB / 471.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.3354/0.4582, allocations: 57.58 MB / 0.5168 GB, free: 9.934 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03326/0.4915, allocations: 12.15 MB / 0.5287 GB, free: 8.684 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01613/0.5077, allocations: 272.2 kB / 0.529 GB, free: 8.641 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0123/0.5201, allocations: 2.874 MB / 0.5318 GB, free: 8.023 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02921/0.5493, allocations: 8.605 MB / 0.5402 GB, free: 4.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004786/0.5541, allocations: 0.9036 MB / 0.541 GB, free: 3.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.047/0.6012, allocations: 35.51 MB / 0.5757 GB, free: 10.08 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01122/0.6124, allocations: 4.974 MB / 0.5806 GB, free: 5.059 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006402/0.6189, allocations: 1.864 MB / 0.5824 GB, free: 3.188 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006369/0.6253, allocations: 3.088 MB / 0.5854 GB, free: 92 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002102/0.6275, allocations: 216 kB / 0.5856 GB, free: 15.88 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004271/0.6318, allocations: 0.987 MB / 0.5866 GB, free: 14.89 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004744/0.6365, allocations: 2.544 MB / 0.5891 GB, free: 12.34 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003468/0.64, allocations: 1.177 MB / 0.5902 GB, free: 11.15 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01081/0.6508, allocations: 7.696 MB / 0.5977 GB, free: 3.438 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.425e-06/0.6509, allocations: 0 / 0.5977 GB, free: 3.438 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.386e-06/0.6509, allocations: 4 kB / 0.5977 GB, free: 3.434 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004052/0.6513, allocations: 0 / 0.5977 GB, free: 3.434 MB / 430.1 MB 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.01535/0.6667, allocations: 6.127 MB / 0.6037 GB, free: 13.23 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.6668, allocations: 8.031 kB / 0.6037 GB, free: 13.22 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003169/0.6699, allocations: 1.013 MB / 0.6047 GB, free: 12.2 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02698/0.6969, allocations: 5.728 MB / 0.6103 GB, free: 6.453 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01143/0.7084, allocations: 5.159 MB / 0.6153 GB, free: 1.234 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003397/0.7088, allocations: 316 kB / 0.6156 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00188/0.7107, allocations: 431.6 kB / 0.6161 GB, free: 0.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04108/0.7518, allocations: 15.53 MB / 0.6312 GB, free: 248 kB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003151/0.7521, allocations: 63.42 kB / 0.6313 GB, free: 184 kB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0014/0.7535, allocations: 199.8 kB / 0.6315 GB, free: 15.98 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009126/0.7627, allocations: 3.38 MB / 0.6348 GB, free: 12.6 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04464/0.8074, allocations: 14.66 MB / 0.6491 GB, free: 13.92 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09759/0.905, allocations: 55.02 MB / 0.7028 GB, free: 5.707 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3514/1.256, allocations: 8.115 MB / 0.7108 GB, free: 186.2 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009909/1.266, allocations: 4.758 MB / 0.7154 GB, free: 185.4 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002365/1.269, allocations: 2.209 MB / 0.7176 GB, free: 183.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.654e-05/1.269, allocations: 69.14 kB / 0.7176 GB, free: 183.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=367): time 1.347e-05/1.269, allocations: 1.438 kB / 0.7176 GB, free: 183.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=419): time 0.1055/1.374, allocations: 39.49 MB / 0.7562 GB, free: 164.1 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.621e-05/1.375, allocations: 116 kB / 0.7563 GB, free: 163.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005385/1.38, allocations: 4.29 MB / 0.7605 GB, free: 159.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001068/1.381, allocations: 86.8 kB / 0.7606 GB, free: 159.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002021/1.383, allocations: 3.819 MB / 0.7643 GB, free: 155.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001961/1.385, allocations: 1.485 MB / 0.7658 GB, free: 154.3 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003835/1.385, allocations: 152.6 kB / 0.7659 GB, free: 154.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003305/1.386, allocations: 0.6364 MB / 0.7665 GB, free: 153.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004696/1.39, allocations: 3.915 MB / 0.7703 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006288/1.397, allocations: 7.669 MB / 0.7778 GB, free: 140.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00703/1.404, allocations: 5.439 MB / 0.7831 GB, free: 134.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.276e-05/1.404, allocations: 36 kB / 0.7832 GB, free: 134.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02376/1.428, allocations: 14.11 MB / 0.797 GB, free: 120.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.448e-05/1.428, allocations: 56.97 kB / 0.797 GB, free: 120.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001206/1.428, allocations: 128 kB / 0.7971 GB, free: 120.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006805/1.435, allocations: 2.712 MB / 0.7998 GB, free: 117.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006513/1.441, allocations: 1.755 MB / 0.8015 GB, free: 116 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01659/1.458, allocations: 14.12 MB / 0.8153 GB, free: 101.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006576/1.465, allocations: 496.3 kB / 0.8158 GB, free: 101.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001299/1.466, allocations: 422.5 kB / 0.8162 GB, free: 100.7 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,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.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 (911): * Single equations (assignments): 903 * 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.005337/1.471, allocations: 2.877 MB / 0.819 GB, free: 97.8 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001002/1.472, allocations: 462.1 kB / 0.8194 GB, free: 97.35 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01665/1.489, allocations: 10.54 MB / 0.8297 GB, free: 86.75 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.304e-05/1.489, allocations: 61.41 kB / 0.8298 GB, free: 86.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.082e-05/1.489, allocations: 8 kB / 0.8298 GB, free: 86.69 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.695e-05/1.489, allocations: 19.92 kB / 0.8298 GB, free: 86.67 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03427/1.523, allocations: 21.29 MB / 0.8506 GB, free: 65.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.181e-05/1.523, allocations: 8 kB / 0.8506 GB, free: 65.14 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00283/1.526, allocations: 0.6833 MB / 0.8513 GB, free: 64.45 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006036/1.532, allocations: 2.487 MB / 0.8537 GB, free: 61.96 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004091/1.533, allocations: 79.98 kB / 0.8538 GB, free: 61.88 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01409/1.547, allocations: 12.89 MB / 0.8664 GB, free: 48.72 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.939e-06/1.547, allocations: 20 kB / 0.8664 GB, free: 48.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02233/1.569, allocations: 15.07 MB / 0.8811 GB, free: 33.37 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001527/1.571, allocations: 0.4913 MB / 0.8816 GB, free: 32.85 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00108/1.572, allocations: 76 kB / 0.8816 GB, free: 32.78 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002511/1.574, allocations: 306.2 kB / 0.8819 GB, free: 32.48 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005853/1.575, allocations: 258 kB / 0.8822 GB, free: 32.23 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002741/1.575, allocations: 119.8 kB / 0.8823 GB, free: 32.11 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003686/1.579, allocations: 2.675 MB / 0.8849 GB, free: 29.44 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.61e-07/1.579, allocations: 0 / 0.8849 GB, free: 29.44 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007993/1.587, allocations: 1.643 MB / 0.8865 GB, free: 27.8 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (334): * Single equations (assignments): 326 * 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.02214/1.609, allocations: 15.77 MB / 0.9019 GB, free: 11.76 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.339/1.948, allocations: 9.77 MB / 0.9115 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-05/1.948, allocations: 2.156 kB / 0.9115 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0101/1.958, allocations: 4.3 MB / 0.9157 GB, free: 180.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007389/1.966, allocations: 0.7002 MB / 0.9163 GB, free: 180.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1099/2.076, allocations: 54.93 MB / 0.97 GB, free: 137.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005003/2.081, allocations: 4.545 MB / 0.9744 GB, free: 132.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006405/2.087, allocations: 2.727 MB / 0.9771 GB, free: 130.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004528/2.092, allocations: 2.838 MB / 0.9799 GB, free: 127.3 MB / 0.5294 GB Notification: Performance of SimCode: time 1.443e-06/2.092, allocations: 4 kB / 0.9799 GB, free: 127.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1755/2.267, allocations: 121.2 MB / 1.098 GB, free: 6.746 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001623/2.268, allocations: 200.4 kB / 1.098 GB, free: 6.504 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.859/7.127, allocations: 0 / 1.098 GB, free: 6.504 MB / 0.5294 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