Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.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.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009792/0.0009792, allocations: 98.09 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001021/0.001021, allocations: 203.2 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 227.2 MB / 245.9 MB, free: 12.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2467/0.2467, allocations: 45.91 MB / 344 MB, free: 12.36 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004164/0.0004168, allocations: 12 kB / 417.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.168/0.1684, allocations: 63.46 MB / 481.4 MB, free: 5.438 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.3554/0.5239, allocations: 40.2 MB / 0.5094 GB, free: 9.949 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02457/0.5485, allocations: 10.02 MB / 0.5191 GB, free: 9.684 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01313/0.5617, allocations: 203.4 kB / 0.5193 GB, free: 9.648 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01007/0.5718, allocations: 1.968 MB / 0.5213 GB, free: 9.273 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02492/0.5968, allocations: 5.838 MB / 0.527 GB, free: 8.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003808/0.6006, allocations: 0.7589 MB / 0.5277 GB, free: 8.469 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.06903/0.6697, allocations: 48.44 MB / 0.575 GB, free: 7.629 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007863/0.6776, allocations: 4.215 MB / 0.5791 GB, free: 3.395 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003351/0.681, allocations: 1.177 MB / 0.5803 GB, free: 2.215 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003519/0.6845, allocations: 1.741 MB / 0.582 GB, free: 480 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000832/0.6854, allocations: 176 kB / 0.5821 GB, free: 304 kB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002669/0.6881, allocations: 1.039 MB / 0.5831 GB, free: 15.26 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001883/0.69, allocations: 1.824 MB / 0.5849 GB, free: 13.43 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001269/0.6913, allocations: 0.8894 MB / 0.5858 GB, free: 12.54 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008741/0.7, allocations: 6.135 MB / 0.5918 GB, free: 6.402 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.7001, allocations: 0 / 0.5918 GB, free: 6.402 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.7001, allocations: 0 / 0.5918 GB, free: 6.402 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003403/0.7004, allocations: 4 kB / 0.5918 GB, free: 6.398 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01494/0.7154, allocations: 4.858 MB / 0.5965 GB, free: 1.492 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.092e-05/0.7155, allocations: 12.03 kB / 0.5965 GB, free: 1.48 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04135/0.7568, allocations: 7.889 MB / 0.6043 GB, free: 9.574 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01051/0.7674, allocations: 3.535 MB / 0.6077 GB, free: 5.996 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003735/0.7678, allocations: 238.1 kB / 0.6079 GB, free: 5.762 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00266/0.7705, allocations: 331.7 kB / 0.6082 GB, free: 5.438 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02258/0.7931, allocations: 10.87 MB / 0.6189 GB, free: 9.816 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001617/0.7933, allocations: 51.58 kB / 0.6189 GB, free: 9.766 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004512/0.7937, allocations: 155.8 kB / 0.6191 GB, free: 9.613 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003155/0.7969, allocations: 1.999 MB / 0.621 GB, free: 7.609 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01995/0.8169, allocations: 9.339 MB / 0.6301 GB, free: 14.25 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05505/0.8719, allocations: 41.1 MB / 0.6703 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01054/0.8825, allocations: 4.251 MB / 0.6744 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0127/0.8953, allocations: 7.587 MB / 0.6818 GB, free: 7.582 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.508e-05/0.8954, allocations: 55.5 kB / 0.6819 GB, free: 7.52 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=180): time 4.318e-06/0.8954, allocations: 0 / 0.6819 GB, free: 7.52 MB / 0.5137 GB Notification: Performance of matching and sorting (n=236): time 0.4651/1.36, allocations: 41.4 MB / 0.7223 GB, free: 180.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/1.361, allocations: 214.2 kB / 0.7225 GB, free: 180.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00813/1.369, allocations: 4.55 MB / 0.727 GB, free: 178.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009224/1.37, allocations: 57.58 kB / 0.727 GB, free: 178.7 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002269/1.372, allocations: 3.211 MB / 0.7302 GB, free: 176.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001345/1.373, allocations: 0.8723 MB / 0.731 GB, free: 175.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003489/1.374, allocations: 126.3 kB / 0.7311 GB, free: 175.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002819/1.374, allocations: 0.5717 MB / 0.7317 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004272/1.378, allocations: 3.472 MB / 0.7351 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005323/1.384, allocations: 7.057 MB / 0.742 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00581/1.389, allocations: 4.806 MB / 0.7467 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.004e-05/1.39, allocations: 37.56 kB / 0.7467 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.03552/1.425, allocations: 15.66 MB / 0.762 GB, free: 148.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.044e-05/1.425, allocations: 62.5 kB / 0.762 GB, free: 148.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001494/1.425, allocations: 124 kB / 0.7622 GB, free: 148.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0222/1.448, allocations: 6.122 MB / 0.7681 GB, free: 142.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005154/1.453, allocations: 1.435 MB / 0.7695 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02861/1.481, allocations: 26.37 MB / 0.7953 GB, free: 114.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008276/1.49, allocations: 403.4 kB / 0.7957 GB, free: 114 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001414/1.491, allocations: 379.4 kB / 0.796 GB, free: 113.7 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 576 * Number of states: 0 () * Number of discrete variables: 42 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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 (741): * Single equations (assignments): 736 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004404/1.496, allocations: 2.218 MB / 0.7982 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001273/1.497, allocations: 398.8 kB / 0.7986 GB, free: 111.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02608/1.523, allocations: 11.06 MB / 0.8094 GB, free: 99.97 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.789e-05/1.523, allocations: 32.72 kB / 0.8094 GB, free: 99.94 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.567e-05/1.523, allocations: 8 kB / 0.8094 GB, free: 99.93 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-05/1.523, allocations: 19.91 kB / 0.8094 GB, free: 99.91 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04171/1.565, allocations: 20.59 MB / 0.8295 GB, free: 78.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.903e-05/1.565, allocations: 8.578 kB / 0.8296 GB, free: 78.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00202/1.567, allocations: 391.4 kB / 0.8299 GB, free: 78.52 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01878/1.586, allocations: 5.176 MB / 0.835 GB, free: 73.33 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005393/1.586, allocations: 40 kB / 0.835 GB, free: 73.29 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02303/1.609, allocations: 21.5 MB / 0.856 GB, free: 51.53 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/1.609, allocations: 7.938 kB / 0.856 GB, free: 51.52 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02853/1.638, allocations: 14.91 MB / 0.8706 GB, free: 36.3 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001592/1.64, allocations: 463.7 kB / 0.871 GB, free: 35.83 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008386/1.64, allocations: 48.58 kB / 0.8711 GB, free: 35.78 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002294/1.643, allocations: 179.8 kB / 0.8712 GB, free: 35.61 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005653/1.643, allocations: 149.8 kB / 0.8714 GB, free: 35.46 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001943/1.644, allocations: 64.62 kB / 0.8715 GB, free: 35.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003723/1.647, allocations: 2.906 MB / 0.8743 GB, free: 32.49 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.21e-07/1.647, allocations: 4 kB / 0.8743 GB, free: 32.49 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006072/1.653, allocations: 1.343 MB / 0.8756 GB, free: 31.15 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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 (167): * Single equations (assignments): 162 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005629/1.654, allocations: 200.9 kB / 0.8758 GB, free: 30.95 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01021/1.664, allocations: 8.051 MB / 0.8837 GB, free: 22.92 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.264e-05/1.664, allocations: 0 / 0.8837 GB, free: 22.92 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003948/1.668, allocations: 3.171 MB / 0.8868 GB, free: 19.73 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003279/1.671, allocations: 492.9 kB / 0.8872 GB, free: 19.25 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3035/1.975, allocations: 13.43 MB / 0.9003 GB, free: 173.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006817/1.982, allocations: 3.607 MB / 0.9039 GB, free: 172.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006399/1.988, allocations: 1.972 MB / 0.9058 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001371/1.99, allocations: 270.3 kB / 0.9061 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of SimCode: time 1.233e-06/1.99, allocations: 0 / 0.9061 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of Templates: time 0.1059/2.096, allocations: 65.29 MB / 0.9698 GB, free: 126.2 MB / 0.5294 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches