Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.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.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar") translateModel(ModelicaTest.MultiBody.Joints.Planar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|planar.phi|planar.s_x|planar.s_y|planar.v_x|planar.v_y|planar.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001727/0.001727, allocations: 194.4 kB / 16.1 MB, free: 5.559 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 226.6 MB / 243.4 MB, free: 8.168 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008648/0.0008647, allocations: 99.14 kB / 295.5 MB, free: 6.863 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2897/0.2897, allocations: 44.82 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003012/0.0003013, allocations: 8 kB / 465.3 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.382/0.3824, allocations: 62.96 MB / 0.5159 GB, free: 36.94 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.03642/0.4188, allocations: 41.99 MB / 0.5569 GB, free: 6.98 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02005/0.4389, allocations: 9.157 MB / 0.5658 GB, free: 0.7539 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008911/0.4479, allocations: 191 kB / 0.566 GB, free: 0.7266 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008649/0.4566, allocations: 2.068 MB / 0.568 GB, free: 0 / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01917/0.4758, allocations: 6.163 MB / 0.574 GB, free: 13.02 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003242/0.4791, allocations: 0.5619 MB / 0.5746 GB, free: 12.66 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.006679/0.4858, allocations: 4.826 MB / 0.5793 GB, free: 8.332 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006194/0.492, allocations: 3.771 MB / 0.583 GB, free: 4.492 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0028/0.4948, allocations: 1.3 MB / 0.5843 GB, free: 3.188 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003532/0.4984, allocations: 2.083 MB / 0.5863 GB, free: 1.098 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0011/0.4995, allocations: 168 kB / 0.5865 GB, free: 0.9336 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002674/0.5022, allocations: 0.9126 MB / 0.5873 GB, free: 20 kB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002791/0.5051, allocations: 1.765 MB / 0.5891 GB, free: 14.25 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003444/0.5085, allocations: 2.083 MB / 0.5911 GB, free: 12.15 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007012/0.5156, allocations: 5.955 MB / 0.5969 GB, free: 6.18 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.5156, allocations: 4 kB / 0.5969 GB, free: 6.176 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.445e-06/0.5156, allocations: 0 / 0.5969 GB, free: 6.176 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002779/0.5159, allocations: 0 / 0.5969 GB, free: 6.176 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.008791/0.5247, allocations: 4.152 MB / 0.601 GB, free: 1.953 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.645e-05/0.5248, allocations: 12.81 kB / 0.601 GB, free: 1.941 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01051/0.5353, allocations: 3.282 MB / 0.6042 GB, free: 14.65 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005073/0.5404, allocations: 2.342 MB / 0.6065 GB, free: 12.26 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002096/0.5406, allocations: 254.4 kB / 0.6067 GB, free: 12.01 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00103/0.5417, allocations: 331.7 kB / 0.607 GB, free: 11.68 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01926/0.5609, allocations: 12.22 MB / 0.619 GB, free: 14.93 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001505/0.5611, allocations: 31.66 kB / 0.619 GB, free: 14.9 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009604/0.5621, allocations: 159.8 kB / 0.6192 GB, free: 14.75 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004617/0.5667, allocations: 2.852 MB / 0.6219 GB, free: 11.89 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02068/0.5874, allocations: 11.08 MB / 0.6328 GB, free: 0.793 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07396/0.6614, allocations: 40.73 MB / 0.6725 GB, free: 7 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009027/0.6705, allocations: 4.679 MB / 0.6771 GB, free: 2.102 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2116/0.8821, allocations: 2.42 MB / 0.6795 GB, free: 129.2 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001403/0.8836, allocations: 1.317 MB / 0.6808 GB, free: 128 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.469e-05/0.8836, allocations: 55.55 kB / 0.6808 GB, free: 128 MB / 490.7 MB Notification: Performance of pre-optimization done (n=249): time 7.715e-06/0.8837, allocations: 0 / 0.6808 GB, free: 128 MB / 490.7 MB Notification: Performance of matching and sorting (n=267): time 0.04055/0.9242, allocations: 18.63 MB / 0.699 GB, free: 122.7 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.896e-05/0.9243, allocations: 81.62 kB / 0.6991 GB, free: 122.7 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005009/0.9293, allocations: 3.16 MB / 0.7022 GB, free: 121.5 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003663/0.9297, allocations: 61.19 kB / 0.7022 GB, free: 121.4 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002037/0.9317, allocations: 3.114 MB / 0.7053 GB, free: 119 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001015/0.9328, allocations: 0.9682 MB / 0.7062 GB, free: 118.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002545/0.933, allocations: 117 kB / 0.7063 GB, free: 118.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003351/0.9334, allocations: 0.5648 MB / 0.7069 GB, free: 117.8 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004402/0.9378, allocations: 2.443 MB / 0.7093 GB, free: 117.1 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007011/0.9448, allocations: 5.706 MB / 0.7148 GB, free: 111.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01237/0.9572, allocations: 8.959 MB / 0.7236 GB, free: 105.1 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002056/0.9575, allocations: 31.12 kB / 0.7236 GB, free: 105.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01809/0.9756, allocations: 8.955 MB / 0.7324 GB, free: 101.3 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002301/0.9759, allocations: 59.91 kB / 0.7324 GB, free: 101.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002486/0.9761, allocations: 112 kB / 0.7325 GB, free: 101.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003007/0.9792, allocations: 1.053 MB / 0.7336 GB, free: 100.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004574/0.9838, allocations: 1.354 MB / 0.7349 GB, free: 99.24 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006229/0.99, allocations: 5.128 MB / 0.7399 GB, free: 94.72 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004654/0.9947, allocations: 326 kB / 0.7402 GB, free: 94.46 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001028/0.9958, allocations: 339.7 kB / 0.7405 GB, free: 94.13 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * Number of states: 0 () * Number of discrete variables: 46 (axis1.arrowLine.twoHeadedArrow,axis1.headAtOrigin,axis2.arrowLine.twoHeadedArrow,axis2.headAtOrigin,axis1.color[3],axis1.color[2],axis1.color[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],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.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 (729): * Single equations (assignments): 722 * 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 {(4,87.5%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005044/1.001, allocations: 2.415 MB / 0.7429 GB, free: 92.05 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009328/1.002, allocations: 308 kB / 0.7432 GB, free: 91.75 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00894/1.011, allocations: 5.354 MB / 0.7484 GB, free: 86.62 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.814e-05/1.011, allocations: 49.08 kB / 0.7484 GB, free: 86.57 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-05/1.011, allocations: 4 kB / 0.7484 GB, free: 86.57 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.56e-05/1.011, allocations: 11.95 kB / 0.7485 GB, free: 86.56 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02212/1.033, allocations: 13.04 MB / 0.7612 GB, free: 73.35 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.588e-05/1.033, allocations: 15.98 kB / 0.7612 GB, free: 73.34 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001699/1.035, allocations: 427.2 kB / 0.7616 GB, free: 72.92 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002376/1.037, allocations: 0.8868 MB / 0.7625 GB, free: 72.03 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002895/1.038, allocations: 55.98 kB / 0.7625 GB, free: 71.97 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004908/1.042, allocations: 4.495 MB / 0.7669 GB, free: 67.35 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.267e-06/1.043, allocations: 19.88 kB / 0.7669 GB, free: 67.33 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01053/1.053, allocations: 7.985 MB / 0.7747 GB, free: 59.13 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001232/1.054, allocations: 365 kB / 0.7751 GB, free: 58.75 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001025/1.055, allocations: 57.7 kB / 0.7751 GB, free: 58.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001867/1.057, allocations: 144.8 kB / 0.7753 GB, free: 58.55 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003854/1.058, allocations: 169.6 kB / 0.7754 GB, free: 58.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001994/1.058, allocations: 80.69 kB / 0.7755 GB, free: 58.31 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003274/1.061, allocations: 1.921 MB / 0.7774 GB, free: 56.39 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.061, allocations: 0 / 0.7774 GB, free: 56.39 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006187/1.067, allocations: 1.094 MB / 0.7785 GB, free: 55.3 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.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 (208): * Single equations (assignments): 201 * 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 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007895/1.068, allocations: 196.2 kB / 0.7787 GB, free: 55.11 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008883/1.077, allocations: 5.965 MB / 0.7845 GB, free: 49.16 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.465e-05/1.077, allocations: 7.938 kB / 0.7845 GB, free: 49.15 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002855/1.08, allocations: 2.245 MB / 0.7867 GB, free: 46.9 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007393/1.087, allocations: 438 kB / 0.7871 GB, free: 46.48 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02169/1.109, allocations: 13.96 MB / 0.8007 GB, free: 32.34 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005377/1.115, allocations: 3.704 MB / 0.8043 GB, free: 28.61 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001379/1.116, allocations: 287.4 kB / 0.8046 GB, free: 28.33 MB / 490.7 MB Notification: Performance of SimCode: time 3.096e-06/1.116, allocations: 0 / 0.8046 GB, free: 28.33 MB / 490.7 MB Notification: Performance of Templates: time 0.3517/1.468, allocations: 83.32 MB / 0.886 GB, free: 161.6 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches