Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001966/0.001966, allocations: 116.9 kB / 18.49 MB, free: 4.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002505/0.002505, allocations: 220.7 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.59/1.59, allocations: 230.4 MB / 254.7 MB, free: 15.17 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2459/0.2459, allocations: 46.92 MB / 357.7 MB, free: 10.2 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002285/0.002285, allocations: 75.88 kB / 0.4917 GB, free: 7.707 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.1503, allocations: 66.04 MB / 0.5562 GB, free: 5.535 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02539/0.1757, allocations: 18.23 MB / 0.574 GB, free: 3.219 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01443/0.1901, allocations: 5.316 MB / 0.5792 GB, free: 13.88 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004725/0.1948, allocations: 127.4 kB / 0.5793 GB, free: 13.76 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008041/0.2029, allocations: 3.095 MB / 0.5823 GB, free: 10.65 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009132/0.212, allocations: 2.606 MB / 0.5848 GB, free: 8.039 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003392/0.2154, allocations: 1.018 MB / 0.5858 GB, free: 7.02 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.3046/0.5201, allocations: 7.655 MB / 0.5933 GB, free: 6.645 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005107/0.5252, allocations: 3.64 MB / 0.5969 GB, free: 6.469 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004358/0.5295, allocations: 2.3 MB / 0.5991 GB, free: 6.352 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006929/0.5364, allocations: 3.514 MB / 0.6025 GB, free: 6.012 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002328/0.5388, allocations: 452.2 kB / 0.603 GB, free: 6.012 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004075/0.5428, allocations: 1.337 MB / 0.6043 GB, free: 6.008 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004125/0.547, allocations: 2.875 MB / 0.6071 GB, free: 5.66 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006591/0.5536, allocations: 3.221 MB / 0.6102 GB, free: 4.512 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01379/0.5674, allocations: 10.08 MB / 0.6201 GB, free: 1.219 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.5674, allocations: 0 / 0.6201 GB, free: 1.219 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.5674, allocations: 0 / 0.6201 GB, free: 1.219 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003549/0.5677, allocations: 0 / 0.6201 GB, free: 1.219 MB / 446.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.0192/0.5869, allocations: 7.512 MB / 0.6274 GB, free: 12.25 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.587, allocations: 11.91 kB / 0.6274 GB, free: 12.25 MB / 462.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001908/0.5871, allocations: 145.7 kB / 0.6276 GB, free: 12.24 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001878/0.589, allocations: 1.017 MB / 0.6286 GB, free: 11.59 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03016/0.6192, allocations: 5.649 MB / 0.6341 GB, free: 8.766 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01018/0.6294, allocations: 4.884 MB / 0.6388 GB, free: 6.164 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002083/0.6296, allocations: 321.3 kB / 0.6391 GB, free: 6.066 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001293/0.6309, allocations: 432.9 kB / 0.6396 GB, free: 5.848 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0348/0.6657, allocations: 15.53 MB / 0.6547 GB, free: 5.84 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002371/0.6659, allocations: 60.77 kB / 0.6548 GB, free: 5.801 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008743/0.6668, allocations: 197.3 kB / 0.655 GB, free: 5.664 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00719/0.674, allocations: 3.382 MB / 0.6583 GB, free: 2.309 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04945/0.7234, allocations: 14.69 MB / 0.6726 GB, free: 3.797 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1054/0.8288, allocations: 54.87 MB / 0.7262 GB, free: 12.59 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02247/0.8513, allocations: 7.813 MB / 0.7338 GB, free: 4.559 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00825/0.8595, allocations: 4.406 MB / 0.7381 GB, free: 148 kB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003727/0.8632, allocations: 2.212 MB / 0.7403 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.942e-05/0.8633, allocations: 69.06 kB / 0.7404 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 8.426e-06/0.8633, allocations: 0 / 0.7404 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.1267/0.99, allocations: 39.65 MB / 0.7791 GB, free: 5.91 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001318/0.9902, allocations: 116 kB / 0.7792 GB, free: 5.777 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009099/0.9993, allocations: 4.315 MB / 0.7834 GB, free: 1.445 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.001888/1.001, allocations: 92.19 kB / 0.7835 GB, free: 1.355 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.004646/1.006, allocations: 3.962 MB / 0.7874 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.003854/1.01, allocations: 1.563 MB / 0.7889 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003365/1.013, allocations: 1.528 MB / 0.7904 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001719/1.013, allocations: 305.1 kB / 0.7907 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007449/1.021, allocations: 3.938 MB / 0.7945 GB, free: 6.082 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01211/1.033, allocations: 7.695 MB / 0.802 GB, free: 12.66 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02125/1.054, allocations: 12.65 MB / 0.8144 GB, free: 14.71 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001236/1.054, allocations: 43.56 kB / 0.8144 GB, free: 14.67 MB / 0.6387 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.03346/1.088, allocations: 14.16 MB / 0.8283 GB, free: 0.5977 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001048/1.088, allocations: 60 kB / 0.8283 GB, free: 0.5391 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001732/1.088, allocations: 128 kB / 0.8284 GB, free: 424 kB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00873/1.097, allocations: 2.678 MB / 0.8311 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007139/1.104, allocations: 1.762 MB / 0.8328 GB, free: 11.96 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3168/1.42, allocations: 15.21 MB / 0.8476 GB, free: 223.1 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008429/1.429, allocations: 494.5 kB / 0.8481 GB, free: 223.1 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002616/1.432, allocations: 425.5 kB / 0.8485 GB, free: 223.1 MB / 0.6544 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,32,69.4%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00925/1.441, allocations: 2.872 MB / 0.8513 GB, free: 223 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001493/1.442, allocations: 486.2 kB / 0.8518 GB, free: 223 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02449/1.467, allocations: 10.53 MB / 0.8621 GB, free: 220.5 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001535/1.467, allocations: 63.23 kB / 0.8621 GB, free: 220.5 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.18e-05/1.467, allocations: 14.53 kB / 0.8621 GB, free: 220.5 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001288/1.467, allocations: 18.98 kB / 0.8622 GB, free: 220.5 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05121/1.518, allocations: 21.19 MB / 0.8828 GB, free: 213.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.96e-05/1.518, allocations: 16.38 kB / 0.8829 GB, free: 213.7 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003824/1.522, allocations: 0.6824 MB / 0.8835 GB, free: 213.6 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007446/1.53, allocations: 2.479 MB / 0.8859 GB, free: 213.2 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001117/1.531, allocations: 84.33 kB / 0.886 GB, free: 213.2 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01613/1.547, allocations: 13.83 MB / 0.8995 GB, free: 203.3 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.097e-06/1.547, allocations: 19.94 kB / 0.8996 GB, free: 203.3 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.023/1.57, allocations: 15.09 MB / 0.9143 GB, free: 188.2 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001677/1.572, allocations: 0.5185 MB / 0.9148 GB, free: 187.8 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002152/1.574, allocations: 76 kB / 0.9149 GB, free: 187.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004017/1.578, allocations: 301.3 kB / 0.9152 GB, free: 187.4 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001384/1.579, allocations: 269.7 kB / 0.9154 GB, free: 187.2 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003507/1.579, allocations: 113.8 kB / 0.9155 GB, free: 187.1 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.004611/1.584, allocations: 2.706 MB / 0.9182 GB, free: 184.4 MB / 0.6544 GB Notification: Performance of sort global known variables: time 7e-08/1.584, allocations: 3.906 kB / 0.9182 GB, free: 184.4 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.01107/1.595, allocations: 1.615 MB / 0.9198 GB, free: 182.7 MB / 0.6544 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (6,29,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02587/1.621, allocations: 15.82 MB / 0.9352 GB, free: 166.7 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.01677/1.638, allocations: 9.431 MB / 0.9444 GB, free: 157.3 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.938e-05/1.638, allocations: 4 kB / 0.9444 GB, free: 157.3 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.008164/1.646, allocations: 4.01 MB / 0.9483 GB, free: 153.3 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009156/1.655, allocations: 0.7356 MB / 0.949 GB, free: 152.6 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.137/1.792, allocations: 70.14 MB / 1.018 GB, free: 76.42 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006305/1.798, allocations: 4.547 MB / 1.022 GB, free: 71.82 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.006238/1.805, allocations: 2.72 MB / 1.025 GB, free: 69.1 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005166/1.81, allocations: 2.819 MB / 1.027 GB, free: 66.28 MB / 0.6544 GB Notification: Performance of SimCode: time 1.643e-06/1.81, allocations: 0 / 1.027 GB, free: 66.28 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4743/2.284, allocations: 113.8 MB / 1.139 GB, free: 201 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.05/24.33, allocations: 12.41 kB / 1.139 GB, free: 201 MB / 0.6544 GB " [Timeout remaining time 635] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 29.326782363001257]