Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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: 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_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_ModelicaTest.MultiBody.Joints.Planar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001219/0.001219, allocations: 96.41 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001335/0.001335, allocations: 205.6 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2296/0.2296, allocations: 45.91 MB / 344 MB, free: 12.12 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000293/0.000293, allocations: 12 kB / 417.9 MB, free: 20.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.155, allocations: 63.46 MB / 481.4 MB, free: 5.395 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Planar): time 0.349/0.504, allocations: 39.7 MB / 0.5089 GB, free: 9.914 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02654/0.5306, allocations: 9.543 MB / 0.5182 GB, free: 9.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01117/0.5418, allocations: 190.7 kB / 0.5184 GB, free: 9.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008975/0.5508, allocations: 2.008 MB / 0.5203 GB, free: 9.293 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02469/0.5755, allocations: 5.864 MB / 0.5261 GB, free: 8.762 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003487/0.579, allocations: 0.5115 MB / 0.5266 GB, free: 8.613 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006732/0.5858, allocations: 2.378 MB / 0.5289 GB, free: 8.121 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006474/0.5923, allocations: 3.502 MB / 0.5323 GB, free: 6.996 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002815/0.5952, allocations: 1.133 MB / 0.5334 GB, free: 6.594 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002867/0.598, allocations: 1.502 MB / 0.5349 GB, free: 6.039 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00083/0.5989, allocations: 168.1 kB / 0.535 GB, free: 6.039 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002304/0.6012, allocations: 0.7661 MB / 0.5358 GB, free: 5.859 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001911/0.6031, allocations: 1.645 MB / 0.5374 GB, free: 5.363 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001235/0.6044, allocations: 0.9152 MB / 0.5383 GB, free: 5.141 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007176/0.6116, allocations: 5.956 MB / 0.5441 GB, free: 1.922 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.6116, allocations: 2.281 kB / 0.5441 GB, free: 1.922 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.806e-06/0.6116, allocations: 0 / 0.5441 GB, free: 1.922 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003458/0.612, allocations: 0 / 0.5441 GB, free: 1.922 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: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.01206/0.624, allocations: 4.3 MB / 0.5483 GB, free: 15.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/0.6241, allocations: 8.312 kB / 0.5483 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01387/0.638, allocations: 3.858 MB / 0.5521 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007737/0.6458, allocations: 2.443 MB / 0.5545 GB, free: 10.19 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000248/0.6461, allocations: 256.5 kB / 0.5547 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001865/0.6479, allocations: 326.5 kB / 0.555 GB, free: 9.844 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02411/0.672, allocations: 12.31 MB / 0.567 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001462/0.6722, allocations: 33.58 kB / 0.5671 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006392/0.6729, allocations: 154.1 kB / 0.5672 GB, free: 13.47 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00536/0.6783, allocations: 2.844 MB / 0.57 GB, free: 10.64 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02705/0.7053, allocations: 11.2 MB / 0.5809 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0727/0.7781, allocations: 40.82 MB / 0.6208 GB, free: 5.848 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009481/0.7876, allocations: 4.681 MB / 0.6254 GB, free: 0.9375 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001402/0.789, allocations: 1.323 MB / 0.6266 GB, free: 15.41 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.463e-05/0.7891, allocations: 56.5 kB / 0.6267 GB, free: 15.34 MB / 478.1 MB Notification: Performance of pre-optimization done (n=249): time 6.192e-06/0.7891, allocations: 0 / 0.6267 GB, free: 15.34 MB / 478.1 MB Notification: Performance of matching and sorting (n=267): time 0.04467/0.8338, allocations: 19.16 MB / 0.6454 GB, free: 11.94 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.925e-05/0.8339, allocations: 81.41 kB / 0.6455 GB, free: 11.84 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004856/0.8388, allocations: 3.274 MB / 0.6487 GB, free: 8.559 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004073/0.8392, allocations: 61.7 kB / 0.6487 GB, free: 8.492 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002176/0.8414, allocations: 3.119 MB / 0.6518 GB, free: 5.371 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001196/0.8426, allocations: 0.9681 MB / 0.6527 GB, free: 4.41 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002647/0.8428, allocations: 118.8 kB / 0.6529 GB, free: 4.297 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003907/0.8432, allocations: 0.5621 MB / 0.6534 GB, free: 3.727 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003326/0.8466, allocations: 2.432 MB / 0.6558 GB, free: 1.289 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005791/0.8524, allocations: 5.681 MB / 0.6613 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005136/0.8575, allocations: 3.712 MB / 0.665 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.499e-05/0.8576, allocations: 32 kB / 0.665 GB, free: 6.258 MB / 0.4981 GB Notification: Performance of matching and sorting (n=787) (initialization): time 0.01608/0.8737, allocations: 8.93 MB / 0.6737 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.177e-05/0.8738, allocations: 60.06 kB / 0.6738 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001692/0.874, allocations: 112 kB / 0.6739 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003124/0.8771, allocations: 1.066 MB / 0.6749 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005204/0.8823, allocations: 1.345 MB / 0.6762 GB, free: 10.74 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007391/0.8897, allocations: 5.277 MB / 0.6814 GB, free: 5.332 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006798/0.8966, allocations: 334.7 kB / 0.6817 GB, free: 5.008 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001962/0.8986, allocations: 340 kB / 0.682 GB, free: 4.676 MB / 0.5137 GB 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 (725): * Single equations (assignments): 718 * 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.00611/0.9047, allocations: 2.41 MB / 0.6844 GB, free: 2.258 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009743/0.9057, allocations: 308 kB / 0.6847 GB, free: 1.953 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009894/0.9156, allocations: 5.356 MB / 0.6899 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.436e-05/0.9157, allocations: 54.64 kB / 0.6899 GB, free: 12.48 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.236e-05/0.9157, allocations: 4 kB / 0.69 GB, free: 12.48 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.426e-05/0.9157, allocations: 11.95 kB / 0.69 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02531/0.9411, allocations: 13.04 MB / 0.7027 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.16e-05/0.9411, allocations: 12 kB / 0.7027 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001845/0.943, allocations: 424.2 kB / 0.7031 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002807/0.9458, allocations: 0.894 MB / 0.704 GB, free: 13.92 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002956/0.9461, allocations: 58.42 kB / 0.704 GB, free: 13.87 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006127/0.9522, allocations: 4.637 MB / 0.7086 GB, free: 9.086 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.766e-05/0.9523, allocations: 27.91 kB / 0.7086 GB, free: 9.059 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3226/1.275, allocations: 9.038 MB / 0.7174 GB, free: 187.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001289/1.276, allocations: 371.1 kB / 0.7178 GB, free: 187.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009236/1.277, allocations: 52.47 kB / 0.7178 GB, free: 187.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001588/1.279, allocations: 148.1 kB / 0.718 GB, free: 187.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005044/1.279, allocations: 166.2 kB / 0.7181 GB, free: 187.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002155/1.28, allocations: 77 kB / 0.7182 GB, free: 187.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004245/1.284, allocations: 2.016 MB / 0.7202 GB, free: 187.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.373e-06/1.284, allocations: 5.062 kB / 0.7202 GB, free: 187.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006143/1.29, allocations: 1.099 MB / 0.7212 GB, free: 187.2 MB / 0.545 GB 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.000607/1.291, allocations: 202.2 kB / 0.7214 GB, free: 187.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01126/1.302, allocations: 5.955 MB / 0.7273 GB, free: 186.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.649e-05/1.302, allocations: 5.922 kB / 0.7273 GB, free: 186.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003608/1.306, allocations: 2.248 MB / 0.7295 GB, free: 185.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002446/1.308, allocations: 406 kB / 0.7298 GB, free: 185.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02071/1.329, allocations: 13.39 MB / 0.7429 GB, free: 178.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003575/1.332, allocations: 3.807 MB / 0.7466 GB, free: 177.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004935/1.337, allocations: 2.154 MB / 0.7487 GB, free: 177 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006873/1.338, allocations: 235.1 kB / 0.749 GB, free: 177 MB / 0.545 GB Notification: Performance of SimCode: time 1.262e-06/1.338, allocations: 4 kB / 0.749 GB, free: 176.9 MB / 0.545 GB Notification: Performance of Templates: time 0.06064/1.399, allocations: 35.06 MB / 0.7832 GB, free: 150.8 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_ModelicaTest.MultiBody.Joints.Planar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches