Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_3_2_3_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.005089/0.005089, allocations: 100.3 kB / 15.87 MB, free: 6.309 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.00124/0.00124, allocations: 196.1 kB / 16.79 MB, free: 6.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.29/1.29, allocations: 205.1 MB / 222.6 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3169/0.3169, allocations: 43.49 MB / 313.5 MB, free: 8.246 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 71.91 kB / 382.1 MB, free: 8.391 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1036, allocations: 57.79 MB / 439.9 MB, free: 14.5 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.2356/0.3393, allocations: 63.95 MB / 0.4921 GB, free: 9.578 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02577/0.3651, allocations: 12.8 MB / 0.5046 GB, free: 1.086 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01092/0.3761, allocations: 275.1 kB / 0.5048 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005507/0.3816, allocations: 3.024 MB / 0.5078 GB, free: 15.67 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006456/0.3881, allocations: 2.466 MB / 0.5102 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002529/0.3907, allocations: 0.9551 MB / 0.5111 GB, free: 14.2 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01348/0.4042, allocations: 10.08 MB / 0.521 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006481/0.4107, allocations: 4.128 MB / 0.525 GB, free: 9.176 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004237/0.415, allocations: 2.02 MB / 0.527 GB, free: 8.031 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005178/0.4202, allocations: 3.462 MB / 0.5303 GB, free: 4.559 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00166/0.4219, allocations: 323.9 kB / 0.5307 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003571/0.4254, allocations: 1.233 MB / 0.5319 GB, free: 3.008 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003413/0.4289, allocations: 2.778 MB / 0.5346 GB, free: 228 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00469/0.4336, allocations: 3.172 MB / 0.5377 GB, free: 13.03 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01034/0.4439, allocations: 9.765 MB / 0.5472 GB, free: 3.234 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.444, allocations: 3.938 kB / 0.5472 GB, free: 3.23 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.444, allocations: 0 / 0.5472 GB, free: 3.23 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003561/0.4444, allocations: 0 / 0.5472 GB, free: 3.23 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2212 * Number of variables: 2212 Notification: Performance of Generate backend data structure: time 0.01616/0.4605, allocations: 7.46 MB / 0.5545 GB, free: 11.69 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.4606, allocations: 12.03 kB / 0.5545 GB, free: 11.68 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001654/0.4623, allocations: 1.026 MB / 0.5555 GB, free: 10.64 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02622/0.4885, allocations: 5.62 MB / 0.561 GB, free: 5 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009301/0.4978, allocations: 5.854 MB / 0.5667 GB, free: 15.09 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002012/0.4981, allocations: 328.7 kB / 0.567 GB, free: 14.76 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001022/0.4991, allocations: 439.5 kB / 0.5674 GB, free: 14.33 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02429/0.5234, allocations: 15.74 MB / 0.5828 GB, free: 13.86 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001539/0.5236, allocations: 59.42 kB / 0.5829 GB, free: 13.8 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005458/0.5242, allocations: 203.8 kB / 0.5831 GB, free: 13.6 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00567/0.5298, allocations: 3.466 MB / 0.5865 GB, free: 10.13 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02651/0.5564, allocations: 14.79 MB / 0.6009 GB, free: 11.32 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2136/0.77, allocations: 55.94 MB / 0.6555 GB, free: 105.5 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01547/0.7855, allocations: 8.144 MB / 0.6635 GB, free: 103.7 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005582/0.7912, allocations: 4.774 MB / 0.6681 GB, free: 101.8 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001549/0.7928, allocations: 2.209 MB / 0.6703 GB, free: 99.78 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.189e-05/0.7928, allocations: 65.02 kB / 0.6704 GB, free: 99.72 MB / 494.1 MB Notification: Performance of pre-optimization done (n=367): time 7.043e-06/0.7928, allocations: 0.9375 kB / 0.6704 GB, free: 99.72 MB / 494.1 MB Notification: Performance of matching and sorting (n=419): time 0.09161/0.8844, allocations: 39.8 MB / 0.7092 GB, free: 88.48 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/0.8845, allocations: 114.7 kB / 0.7093 GB, free: 88.39 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004769/0.8893, allocations: 4.419 MB / 0.7137 GB, free: 86.73 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004579/0.8898, allocations: 80.7 kB / 0.7137 GB, free: 86.65 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001541/0.8913, allocations: 3.895 MB / 0.7175 GB, free: 83.27 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001041/0.8924, allocations: 1.491 MB / 0.719 GB, free: 82 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001702/0.8941, allocations: 1.536 MB / 0.7205 GB, free: 81.09 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.725e-05/0.8941, allocations: 305.1 kB / 0.7208 GB, free: 80.79 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004102/0.8982, allocations: 3.954 MB / 0.7246 GB, free: 76.84 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005214/0.9035, allocations: 7.758 MB / 0.7322 GB, free: 67.31 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01025/0.9137, allocations: 12.74 MB / 0.7447 GB, free: 52.85 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-05/0.9138, allocations: 40 kB / 0.7447 GB, free: 52.81 MB / 494.1 MB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.01892/0.9327, allocations: 14.25 MB / 0.7586 GB, free: 38.52 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.032e-05/0.9328, allocations: 60 kB / 0.7587 GB, free: 38.46 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.291e-05/0.9329, allocations: 128 kB / 0.7588 GB, free: 38.34 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006188/0.9391, allocations: 2.679 MB / 0.7614 GB, free: 35.65 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004975/0.9441, allocations: 1.782 MB / 0.7631 GB, free: 33.87 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01392/0.958, allocations: 14.16 MB / 0.777 GB, free: 19.45 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00483/0.9629, allocations: 0.4913 MB / 0.7775 GB, free: 18.96 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005671/0.9635, allocations: 431.9 kB / 0.7779 GB, free: 18.54 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 592 * Number of states: 0 () * Number of discrete variables: 48 (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 (920): * Single equations (assignments): 912 * 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.003472/0.9669, allocations: 2.904 MB / 0.7807 GB, free: 15.62 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007239/0.9677, allocations: 473.8 kB / 0.7812 GB, free: 15.15 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0143/0.982, allocations: 10.57 MB / 0.7915 GB, free: 4.523 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-05/0.9821, allocations: 63.92 kB / 0.7915 GB, free: 4.461 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.675e-05/0.9821, allocations: 11.33 kB / 0.7916 GB, free: 4.453 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.109e-05/0.9821, allocations: 15.94 kB / 0.7916 GB, free: 4.438 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03371/1.016, allocations: 21.42 MB / 0.8125 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.217e-05/1.016, allocations: 12.97 kB / 0.8125 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002821/1.019, allocations: 0.6841 MB / 0.8132 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006558/1.025, allocations: 2.487 MB / 0.8156 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003726/1.026, allocations: 79.98 kB / 0.8157 GB, free: 11.51 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1745/1.2, allocations: 12.89 MB / 0.8283 GB, free: 156.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.638e-06/1.2, allocations: 18.34 kB / 0.8283 GB, free: 156.2 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01951/1.22, allocations: 15.11 MB / 0.843 GB, free: 153.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002048/1.222, allocations: 1.164 MB / 0.8442 GB, free: 153.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005648/1.222, allocations: 79.44 kB / 0.8443 GB, free: 153 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002069/1.224, allocations: 307.8 kB / 0.8445 GB, free: 153 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006292/1.225, allocations: 261.3 kB / 0.8448 GB, free: 152.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002525/1.225, allocations: 116.5 kB / 0.8449 GB, free: 152.9 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002811/1.228, allocations: 2.774 MB / 0.8476 GB, free: 152 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.41e-07/1.228, allocations: 3.406 kB / 0.8476 GB, free: 152 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004624/1.233, allocations: 1.659 MB / 0.8492 GB, free: 151.8 MB / 0.5137 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.01993/1.253, allocations: 15.82 MB / 0.8647 GB, free: 146 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01191/1.265, allocations: 9.818 MB / 0.8743 GB, free: 142.7 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/1.265, allocations: 7.406 kB / 0.8743 GB, free: 142.7 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004766/1.269, allocations: 4.306 MB / 0.8785 GB, free: 141 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003547/1.273, allocations: 0.7021 MB / 0.8792 GB, free: 140.8 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0775/1.351, allocations: 84.25 MB / 0.9614 GB, free: 57.69 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003367/1.354, allocations: 4.616 MB / 0.966 GB, free: 53.03 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004894/1.359, allocations: 2.748 MB / 0.9686 GB, free: 50.27 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002742/1.362, allocations: 2.909 MB / 0.9715 GB, free: 47.36 MB / 0.5137 GB Notification: Performance of SimCode: time 7.31e-07/1.362, allocations: 0 / 0.9715 GB, free: 47.36 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.834/3.196, allocations: 115.2 MB / 1.084 GB, free: 124.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001499/3.196, allocations: 218.2 kB / 1.084 GB, free: 123.9 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.688/7.884, allocations: 0 / 1.084 GB, free: 123.9 MB / 0.5137 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches