Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.Joints.Revolute,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute") translateModel(ModelicaTest.MultiBody.Joints.Revolute,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009948/0.0009951, allocations: 202.1 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.258/1.258, allocations: 226.6 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007172/0.0007171, allocations: 95.72 kB / 295.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1912/0.1912, allocations: 44.84 MB / 392 MB, free: 9.352 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002554/0.0002555, allocations: 8 kB / 464.7 MB, free: 49.79 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1041, allocations: 62.95 MB / 0.5153 GB, free: 2.801 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.2049/0.309, allocations: 26.82 MB / 0.5415 GB, free: 10.9 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01438/0.3235, allocations: 6.423 MB / 0.5478 GB, free: 6.594 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005113/0.3286, allocations: 116.8 kB / 0.5479 GB, free: 6.578 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003889/0.3325, allocations: 1.287 MB / 0.5492 GB, free: 6.125 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01224/0.3448, allocations: 3.977 MB / 0.553 GB, free: 4.09 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002252/0.3471, allocations: 418.9 kB / 0.5534 GB, free: 3.836 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.006744/0.3538, allocations: 3.907 MB / 0.5573 GB, free: 1.633 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005263/0.3592, allocations: 2.254 MB / 0.5595 GB, free: 236 kB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003529/0.3627, allocations: 1.019 MB / 0.5605 GB, free: 15.39 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003574/0.3664, allocations: 1.663 MB / 0.5621 GB, free: 13.72 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009985/0.3674, allocations: 132 kB / 0.5622 GB, free: 13.59 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00249/0.3699, allocations: 0.745 MB / 0.5629 GB, free: 12.85 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002169/0.3721, allocations: 1.48 MB / 0.5644 GB, free: 11.36 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001606/0.3737, allocations: 0.7414 MB / 0.5651 GB, free: 10.61 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00525/0.379, allocations: 4.705 MB / 0.5697 GB, free: 5.902 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.379, allocations: 0 / 0.5697 GB, free: 5.902 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3791, allocations: 0 / 0.5697 GB, free: 5.902 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001688/0.3792, allocations: 0 / 0.5697 GB, free: 5.902 MB / 378.7 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.006384/0.3856, allocations: 3.469 MB / 0.5731 GB, free: 2.367 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.3857, allocations: 8.031 kB / 0.5731 GB, free: 2.359 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01011/0.3958, allocations: 3.165 MB / 0.5762 GB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003662/0.3995, allocations: 1.837 MB / 0.578 GB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001808/0.3997, allocations: 188.7 kB / 0.5782 GB, free: 13.11 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008236/0.4005, allocations: 247.7 kB / 0.5784 GB, free: 12.87 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01518/0.4157, allocations: 10.48 MB / 0.5886 GB, free: 1.957 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-05/0.4158, allocations: 27.72 kB / 0.5886 GB, free: 1.93 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003729/0.4162, allocations: 111.8 kB / 0.5888 GB, free: 1.82 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004036/0.4203, allocations: 2.561 MB / 0.5913 GB, free: 15.26 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01754/0.4378, allocations: 9.884 MB / 0.6009 GB, free: 5.359 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04333/0.4812, allocations: 34.46 MB / 0.6346 GB, free: 2.066 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008903/0.4902, allocations: 5.168 MB / 0.6396 GB, free: 12.68 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002817/0.493, allocations: 2.292 MB / 0.6418 GB, free: 10.39 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001479/0.4945, allocations: 1.88 MB / 0.6437 GB, free: 8.176 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.026e-05/0.4946, allocations: 48.56 kB / 0.6437 GB, free: 8.117 MB / 458.7 MB Notification: Performance of pre-optimization done (n=229): time 4.418e-06/0.4946, allocations: 0 / 0.6437 GB, free: 8.117 MB / 458.7 MB Notification: Performance of matching and sorting (n=235): time 0.02883/0.5234, allocations: 13.92 MB / 0.6573 GB, free: 10.14 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.215e-05/0.5235, allocations: 73.41 kB / 0.6574 GB, free: 10.05 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003181/0.5267, allocations: 2.627 MB / 0.66 GB, free: 7.406 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001863/0.5269, allocations: 53.7 kB / 0.66 GB, free: 7.348 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001451/0.5283, allocations: 2.628 MB / 0.6626 GB, free: 4.68 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007073/0.5291, allocations: 0.8557 MB / 0.6634 GB, free: 3.812 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002015/0.5293, allocations: 104 kB / 0.6635 GB, free: 3.711 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002901/0.5296, allocations: 0.5292 MB / 0.664 GB, free: 3.176 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002841/0.5324, allocations: 2.185 MB / 0.6662 GB, free: 0.9844 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004374/0.5368, allocations: 5.052 MB / 0.6711 GB, free: 10.52 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004234/0.5411, allocations: 3.323 MB / 0.6743 GB, free: 7.195 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.155e-05/0.5411, allocations: 28 kB / 0.6744 GB, free: 7.168 MB / 490.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.0119/0.553, allocations: 7.84 MB / 0.682 GB, free: 15.32 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 6.239e-05/0.5531, allocations: 44 kB / 0.6821 GB, free: 15.27 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.977e-05/0.5532, allocations: 100 kB / 0.6822 GB, free: 15.18 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002146/0.5554, allocations: 0.8008 MB / 0.6829 GB, free: 14.37 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00366/0.5591, allocations: 1.189 MB / 0.6841 GB, free: 13.18 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005117/0.5642, allocations: 4.192 MB / 0.6882 GB, free: 8.852 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003266/0.5675, allocations: 299.8 kB / 0.6885 GB, free: 8.559 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004543/0.5679, allocations: 304 kB / 0.6888 GB, free: 8.262 MB / 0.4948 GB 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 (635): * Single equations (assignments): 628 * 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.002792/0.5707, allocations: 2.02 MB / 0.6907 GB, free: 6.23 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003449/0.5711, allocations: 264.5 kB / 0.691 GB, free: 5.969 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007043/0.5781, allocations: 4.71 MB / 0.6956 GB, free: 1.227 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-05/0.5782, allocations: 40 kB / 0.6956 GB, free: 1.188 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.5782, allocations: 4 kB / 0.6956 GB, free: 1.184 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.599e-05/0.5783, allocations: 11.95 kB / 0.6956 GB, free: 1.172 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01555/0.5938, allocations: 10.52 MB / 0.7059 GB, free: 6.488 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-05/0.5939, allocations: 8.906 kB / 0.7059 GB, free: 6.48 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00141/0.5953, allocations: 363.4 kB / 0.7063 GB, free: 6.125 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001934/0.5972, allocations: 0.6522 MB / 0.7069 GB, free: 5.469 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001495/0.5974, allocations: 44 kB / 0.707 GB, free: 5.426 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004341/0.6017, allocations: 3.651 MB / 0.7105 GB, free: 1.633 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.665e-06/0.6018, allocations: 11.95 kB / 0.7105 GB, free: 1.621 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2017/0.8034, allocations: 7.102 MB / 0.7175 GB, free: 161.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006274/0.8041, allocations: 308.4 kB / 0.7178 GB, free: 161.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005317/0.8047, allocations: 46.05 kB / 0.7178 GB, free: 161.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001374/0.806, allocations: 145.9 kB / 0.7179 GB, free: 161.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002954/0.8063, allocations: 129.6 kB / 0.7181 GB, free: 161.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000164/0.8065, allocations: 68.38 kB / 0.7181 GB, free: 161.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002566/0.8091, allocations: 1.588 MB / 0.7197 GB, free: 160.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.21e-07/0.8091, allocations: 0 / 0.7197 GB, free: 160.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003511/0.8126, allocations: 0.9332 MB / 0.7206 GB, free: 160.5 MB / 0.5105 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.0003696/0.813, allocations: 182.9 kB / 0.7208 GB, free: 160.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006718/0.8197, allocations: 5.329 MB / 0.726 GB, free: 158.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.8198, allocations: 1.094 kB / 0.726 GB, free: 158.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002381/0.8221, allocations: 2.017 MB / 0.7279 GB, free: 157.9 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001677/0.8238, allocations: 347.9 kB / 0.7283 GB, free: 157.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01313/0.837, allocations: 11.56 MB / 0.7396 GB, free: 151.9 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002337/0.8393, allocations: 3.17 MB / 0.7427 GB, free: 150.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000841/0.8402, allocations: 249 kB / 0.7429 GB, free: 150.6 MB / 0.5105 GB Notification: Performance of SimCode: time 1.373e-06/0.8402, allocations: 4 kB / 0.7429 GB, free: 150.6 MB / 0.5105 GB Notification: Performance of Templates: time 0.06172/0.9019, allocations: 69.66 MB / 0.8109 GB, free: 87.57 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute/Revolute.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches