Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.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: 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_3.2.3_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_3.2.3_ModelicaTest.MultiBody.Joints.Planar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009461/0.0009464, allocations: 95.64 kB / 15.98 MB, free: 5.867 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.001017/0.001017, allocations: 194.6 kB / 16.9 MB, free: 5.738 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.53/1.53, allocations: 205.1 MB / 222.8 MB, free: 4.668 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.4375/0.4375, allocations: 43.49 MB / 313.6 MB, free: 8.555 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.001767/0.001767, allocations: 68.33 kB / 382.2 MB, free: 8.625 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1635/0.1653, allocations: 57.8 MB / 440 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.3784/0.5437, allocations: 47.1 MB / 487.1 MB, free: 21.85 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0297/0.5735, allocations: 9.625 MB / 496.7 MB, free: 15.47 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01718/0.5907, allocations: 194.8 kB / 496.9 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005859/0.5967, allocations: 2.146 MB / 499.1 MB, free: 14.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008039/0.6048, allocations: 1.934 MB / 0.4893 GB, free: 13.67 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00261/0.6074, allocations: 0.5816 MB / 0.4898 GB, free: 13.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01002/0.6175, allocations: 4.461 MB / 0.4942 GB, free: 11.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007294/0.6248, allocations: 3.363 MB / 0.4975 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005735/0.6306, allocations: 1.67 MB / 0.4991 GB, free: 9.594 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005813/0.6365, allocations: 2.494 MB / 0.5015 GB, free: 8.691 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00168/0.6382, allocations: 348.5 kB / 0.5019 GB, free: 8.691 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004356/0.6425, allocations: 1.056 MB / 0.5029 GB, free: 8.477 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004698/0.6473, allocations: 2.086 MB / 0.5049 GB, free: 7.707 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007191/0.6545, allocations: 2.505 MB / 0.5074 GB, free: 5.906 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01727/0.6718, allocations: 7.754 MB / 0.515 GB, free: 2.016 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.101e-05/0.6718, allocations: 1.25 kB / 0.515 GB, free: 2.016 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.6719, allocations: 0 / 0.515 GB, free: 2.016 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004133/0.6723, allocations: 0 / 0.515 GB, free: 2.016 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1914 * Number of variables: 1914 Notification: Performance of Generate backend data structure: time 0.0203/0.6926, allocations: 5.273 MB / 0.5201 GB, free: 14.31 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.404e-05/0.6927, allocations: 16.98 kB / 0.5201 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01227/0.705, allocations: 3.192 MB / 0.5232 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008634/0.7137, allocations: 2.444 MB / 0.5256 GB, free: 9.461 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002755/0.714, allocations: 263.1 kB / 0.5259 GB, free: 9.203 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001575/0.7156, allocations: 347.6 kB / 0.5262 GB, free: 8.863 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02991/0.7455, allocations: 12.65 MB / 0.5386 GB, free: 11.68 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001632/0.7457, allocations: 35.66 kB / 0.5386 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006635/0.7464, allocations: 167.8 kB / 0.5388 GB, free: 11.48 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005618/0.752, allocations: 3.024 MB / 0.5417 GB, free: 8.449 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02838/0.7804, allocations: 11.33 MB / 0.5528 GB, free: 13.11 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08372/0.8642, allocations: 42.31 MB / 0.5941 GB, free: 1.664 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01127/0.8755, allocations: 4.704 MB / 0.5987 GB, free: 12.73 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004442/0.88, allocations: 2.438 MB / 0.6011 GB, free: 10.29 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001419/0.8815, allocations: 1.323 MB / 0.6024 GB, free: 8.738 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.038e-05/0.8816, allocations: 52.56 kB / 0.6024 GB, free: 8.68 MB / 478.1 MB Notification: Performance of pre-optimization done (n=250): time 6.011e-06/0.8816, allocations: 0 / 0.6024 GB, free: 8.68 MB / 478.1 MB Notification: Performance of matching and sorting (n=268): time 0.05149/0.9331, allocations: 19.52 MB / 0.6215 GB, free: 4.992 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.9332, allocations: 107.1 kB / 0.6216 GB, free: 4.871 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007254/0.9405, allocations: 3.258 MB / 0.6248 GB, free: 1.605 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004254/0.9409, allocations: 65.69 kB / 0.6248 GB, free: 1.535 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.371/1.312, allocations: 3.276 MB / 0.628 GB, free: 143.9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00226/1.314, allocations: 0.9794 MB / 0.629 GB, free: 143.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006046/1.32, allocations: 1.214 MB / 0.6302 GB, free: 143.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/1.32, allocations: 307.8 kB / 0.6305 GB, free: 142.9 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005818/1.326, allocations: 2.492 MB / 0.6329 GB, free: 142.9 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007737/1.334, allocations: 5.892 MB / 0.6387 GB, free: 137.6 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01184/1.346, allocations: 9.193 MB / 0.6476 GB, free: 130.8 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001597/1.346, allocations: 35.88 kB / 0.6477 GB, free: 130.8 MB / 494.1 MB Notification: Performance of matching and sorting (n=813) (initialization): time 0.02171/1.368, allocations: 9.164 MB / 0.6566 GB, free: 127.6 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003766/1.368, allocations: 55.28 kB / 0.6567 GB, free: 127.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005871/1.369, allocations: 123 kB / 0.6568 GB, free: 127.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003899/1.373, allocations: 1.063 MB / 0.6578 GB, free: 127.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007826/1.381, allocations: 1.395 MB / 0.6592 GB, free: 127.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01055/1.391, allocations: 5.551 MB / 0.6646 GB, free: 124.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008279/1.4, allocations: 330.3 kB / 0.6649 GB, free: 124.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002579/1.402, allocations: 354.4 kB / 0.6653 GB, free: 124.3 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 42 (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 (751): * Single equations (assignments): 744 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,11,87.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00914/1.411, allocations: 2.488 MB / 0.6677 GB, free: 123.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00115/1.413, allocations: 321.9 kB / 0.668 GB, free: 123 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01289/1.425, allocations: 5.377 MB / 0.6732 GB, free: 121.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-05/1.426, allocations: 50.05 kB / 0.6733 GB, free: 121.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.952e-05/1.426, allocations: 3.906 kB / 0.6733 GB, free: 121.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.953e-05/1.426, allocations: 11.67 kB / 0.6733 GB, free: 121.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03019/1.456, allocations: 13.36 MB / 0.6864 GB, free: 116.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.045e-05/1.456, allocations: 12 kB / 0.6864 GB, free: 116.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001627/1.458, allocations: 421.4 kB / 0.6868 GB, free: 116 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00259/1.46, allocations: 0.8991 MB / 0.6877 GB, free: 115.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002144/1.46, allocations: 63.44 kB / 0.6877 GB, free: 115.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005409/1.466, allocations: 4.831 MB / 0.6924 GB, free: 111.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.154e-05/1.466, allocations: 19.94 kB / 0.6924 GB, free: 111.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01023/1.476, allocations: 8.035 MB / 0.7003 GB, free: 104 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00225/1.478, allocations: 0.7316 MB / 0.701 GB, free: 103.3 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005944/1.479, allocations: 51.75 kB / 0.7011 GB, free: 103.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001444/1.48, allocations: 145.5 kB / 0.7012 GB, free: 103.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004358/1.481, allocations: 174.7 kB / 0.7014 GB, free: 103 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000184/1.481, allocations: 79.09 kB / 0.7014 GB, free: 102.9 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003317/1.484, allocations: 2.014 MB / 0.7034 GB, free: 101.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.484, allocations: 0 / 0.7034 GB, free: 101.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007633/1.492, allocations: 1.119 MB / 0.7045 GB, free: 100.2 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * 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 (209): * Single equations (assignments): 202 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007078/1.493, allocations: 200.9 kB / 0.7047 GB, free: 99.97 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01603/1.509, allocations: 9.724 MB / 0.7142 GB, free: 90.55 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.666e-05/1.509, allocations: 8.125 kB / 0.7142 GB, free: 90.55 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003412/1.512, allocations: 2.258 MB / 0.7164 GB, free: 88.28 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003678/1.516, allocations: 437.8 kB / 0.7168 GB, free: 87.89 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02494/1.541, allocations: 14.3 MB / 0.7308 GB, free: 73.45 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004453/1.546, allocations: 3.826 MB / 0.7345 GB, free: 69.59 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004622/1.55, allocations: 2.189 MB / 0.7367 GB, free: 67.39 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007601/1.551, allocations: 239.4 kB / 0.7369 GB, free: 67.16 MB / 494.1 MB Notification: Performance of SimCode: time 1.543e-06/1.551, allocations: 7.938 kB / 0.7369 GB, free: 67.15 MB / 494.1 MB Notification: Performance of Templates: time 0.07675/1.628, allocations: 37.65 MB / 0.7737 GB, free: 29.61 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Planar/Planar.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches