Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.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.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2") translateModel(ModelicaTest.MultiBody.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001434/0.001435, allocations: 109.7 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001658/0.001658, allocations: 206.8 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.5/1.5, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2498/0.2498, allocations: 46.11 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001691/0.001691, allocations: 79.88 kB / 482 MB, free: 4.047 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4526/0.4543, allocations: 62.44 MB / 0.5317 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.0181/0.4725, allocations: 14.67 MB / 0.546 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01495/0.4875, allocations: 5 MB / 0.5509 GB, free: 14.01 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005572/0.4931, allocations: 103.6 kB / 0.551 GB, free: 13.91 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009492/0.5026, allocations: 4.135 MB / 0.555 GB, free: 9.762 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009521/0.5123, allocations: 2.311 MB / 0.5573 GB, free: 7.441 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003977/0.5163, allocations: 1.084 MB / 0.5583 GB, free: 6.355 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01391/0.5303, allocations: 7.155 MB / 0.5653 GB, free: 15.19 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009184/0.5395, allocations: 5.127 MB / 0.5703 GB, free: 10 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005193/0.5447, allocations: 2.239 MB / 0.5725 GB, free: 7.754 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005511/0.5503, allocations: 3.057 MB / 0.5755 GB, free: 4.688 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002123/0.5524, allocations: 500 kB / 0.576 GB, free: 4.199 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004577/0.557, allocations: 1.358 MB / 0.5773 GB, free: 2.84 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005326/0.5624, allocations: 2.751 MB / 0.58 GB, free: 84 kB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008727/0.5712, allocations: 3.127 MB / 0.583 GB, free: 12.93 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01802/0.5892, allocations: 9.774 MB / 0.5926 GB, free: 3.133 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.5893, allocations: 0 / 0.5926 GB, free: 3.133 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.5893, allocations: 4 kB / 0.5926 GB, free: 3.129 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004738/0.5898, allocations: 0 / 0.5926 GB, free: 3.129 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1953 * Number of variables: 1953 Notification: Performance of Generate backend data structure: time 0.0227/0.6125, allocations: 6.863 MB / 0.5993 GB, free: 12.18 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.6126, allocations: 8.031 kB / 0.5993 GB, free: 12.18 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03025/0.6428, allocations: 3.32 MB / 0.6025 GB, free: 8.844 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01399/0.6569, allocations: 4.403 MB / 0.6068 GB, free: 4.383 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004169/0.6574, allocations: 328.7 kB / 0.6072 GB, free: 4.059 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002274/0.6597, allocations: 459.6 kB / 0.6076 GB, free: 3.609 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03312/0.6928, allocations: 13.08 MB / 0.6204 GB, free: 5.656 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004662/0.6933, allocations: 67.38 kB / 0.6204 GB, free: 5.59 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002518/0.6959, allocations: 203.8 kB / 0.6206 GB, free: 5.391 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00514/0.701, allocations: 2.535 MB / 0.6231 GB, free: 2.855 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02691/0.728, allocations: 11.38 MB / 0.6342 GB, free: 7.457 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08503/0.8131, allocations: 52.74 MB / 0.6857 GB, free: 1.191 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01527/0.8284, allocations: 5.662 MB / 0.6913 GB, free: 11.38 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005875/0.8343, allocations: 3.507 MB / 0.6947 GB, free: 7.867 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001484/0.8359, allocations: 0.6877 MB / 0.6954 GB, free: 7.07 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.095e-05/0.836, allocations: 56.56 kB / 0.6954 GB, free: 7.004 MB / 0.545 GB Notification: Performance of pre-optimization done (n=245): time 8.346e-06/0.836, allocations: 0 / 0.6954 GB, free: 7.004 MB / 0.545 GB Notification: Performance of matching and sorting (n=315): time 0.4312/1.267, allocations: 36.48 MB / 0.731 GB, free: 157.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.238e-05/1.267, allocations: 265.1 kB / 0.7313 GB, free: 157.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006685/1.274, allocations: 5.17 MB / 0.7363 GB, free: 155.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008046/1.275, allocations: 71.73 kB / 0.7364 GB, free: 155.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002245/1.277, allocations: 3.871 MB / 0.7402 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001489/1.279, allocations: 1.178 MB / 0.7413 GB, free: 151.6 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002097/1.281, allocations: 1.593 MB / 0.7429 GB, free: 150.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.011e-05/1.281, allocations: 305.1 kB / 0.7432 GB, free: 150.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00437/1.285, allocations: 3.63 MB / 0.7467 GB, free: 149.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005939/1.291, allocations: 7.811 MB / 0.7544 GB, free: 142.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01156/1.303, allocations: 12.23 MB / 0.7663 GB, free: 128.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001263/1.303, allocations: 40 kB / 0.7663 GB, free: 128.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1024) (initialization): time 0.02279/1.326, allocations: 13.74 MB / 0.7798 GB, free: 114.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.756e-05/1.326, allocations: 68 kB / 0.7798 GB, free: 114.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001235/1.326, allocations: 144 kB / 0.78 GB, free: 114.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006168/1.332, allocations: 2.759 MB / 0.7827 GB, free: 111.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005666/1.338, allocations: 1.778 MB / 0.7844 GB, free: 109.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0181/1.356, allocations: 17.81 MB / 0.8018 GB, free: 91.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00668/1.363, allocations: 475 kB / 0.8022 GB, free: 90.96 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001466/1.364, allocations: 455.9 kB / 0.8027 GB, free: 90.52 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 656 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.twoHeadedArrow,freeMotion.arrow.headAtOrigin,universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (948): * Single equations (assignments): 943 * Array equations: 3 * 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 {(3,24,100.0%), (3,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004873/1.369, allocations: 2.743 MB / 0.8053 GB, free: 87.77 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001342/1.37, allocations: 477.8 kB / 0.8058 GB, free: 87.29 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01264/1.383, allocations: 8.043 MB / 0.8137 GB, free: 79.18 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.847e-05/1.383, allocations: 32 kB / 0.8137 GB, free: 79.15 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.809e-05/1.383, allocations: 12 kB / 0.8137 GB, free: 79.14 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.887e-05/1.383, allocations: 15.94 kB / 0.8137 GB, free: 79.12 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02953/1.413, allocations: 16.84 MB / 0.8302 GB, free: 62.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.757e-05/1.413, allocations: 11.94 kB / 0.8302 GB, free: 62.21 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002458/1.415, allocations: 0.4915 MB / 0.8306 GB, free: 61.72 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005861/1.421, allocations: 2.48 MB / 0.8331 GB, free: 59.23 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006218/1.422, allocations: 63.98 kB / 0.8331 GB, free: 59.17 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01624/1.438, allocations: 15.96 MB / 0.8487 GB, free: 42.93 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/1.438, allocations: 4 kB / 0.8487 GB, free: 42.92 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01815/1.456, allocations: 12.6 MB / 0.861 GB, free: 30.12 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002086/1.458, allocations: 0.53 MB / 0.8616 GB, free: 29.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001691/1.46, allocations: 60 kB / 0.8616 GB, free: 29.51 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003354/1.463, allocations: 223.7 kB / 0.8618 GB, free: 29.29 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008188/1.464, allocations: 209.5 kB / 0.862 GB, free: 29.08 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002672/1.465, allocations: 87.89 kB / 0.8621 GB, free: 29 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004952/1.47, allocations: 3.268 MB / 0.8653 GB, free: 25.75 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.9e-07/1.47, allocations: 0 / 0.8653 GB, free: 25.75 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008352/1.478, allocations: 1.526 MB / 0.8668 GB, free: 24.22 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * 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 (253): * Single equations (assignments): 248 * Array equations: 3 * 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 {(3,21,100.0%), (3,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008122/1.479, allocations: 209.7 kB / 0.867 GB, free: 24.01 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01191/1.491, allocations: 8.906 MB / 0.8757 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.175e-05/1.491, allocations: 4 kB / 0.8757 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004755/1.496, allocations: 3.572 MB / 0.8792 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004809/1.5, allocations: 0.6702 MB / 0.8798 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02472/1.525, allocations: 15.08 MB / 0.8946 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006294/1.531, allocations: 4.259 MB / 0.8987 GB, free: 7.391 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001871/1.533, allocations: 395.4 kB / 0.8991 GB, free: 7.004 MB / 0.5762 GB Notification: Performance of SimCode: time 1.342e-06/1.533, allocations: 0 / 0.8991 GB, free: 7.004 MB / 0.5762 GB Notification: Performance of Templates: time 0.4526/1.986, allocations: 136.3 MB / 1.032 GB, free: 137 MB / 0.6231 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion2/FreeMotion2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches