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.001066/0.001066, allocations: 96.25 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0013/0.0013, allocations: 192.2 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.568/1.568, allocations: 227.7 MB / 246.4 MB, free: 11.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2384/0.2384, allocations: 46.18 MB / 344.8 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002683/0.0002685, allocations: 12 kB / 418.8 MB, free: 20.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1455/0.1458, allocations: 63.56 MB / 482.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.3469/0.4928, allocations: 42.27 MB / 0.5124 GB, free: 9.926 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02457/0.5174, allocations: 9.469 MB / 0.5216 GB, free: 9.352 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01467/0.5321, allocations: 205.2 kB / 0.5218 GB, free: 9.316 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01005/0.5422, allocations: 2.169 MB / 0.5239 GB, free: 8.852 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02363/0.5659, allocations: 6.514 MB / 0.5303 GB, free: 6.992 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003978/0.5699, allocations: 0.778 MB / 0.5311 GB, free: 6.762 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.08261/0.6525, allocations: 61.43 MB / 0.591 GB, free: 7.777 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00822/0.6608, allocations: 4.243 MB / 0.5952 GB, free: 3.5 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004109/0.6649, allocations: 1.428 MB / 0.5966 GB, free: 2.066 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004528/0.6695, allocations: 2.395 MB / 0.5989 GB, free: 15.66 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00157/0.6711, allocations: 176 kB / 0.5991 GB, free: 15.49 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004254/0.6754, allocations: 1.077 MB / 0.6001 GB, free: 14.41 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003673/0.6791, allocations: 1.929 MB / 0.602 GB, free: 12.48 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002255/0.6813, allocations: 0.8699 MB / 0.6029 GB, free: 11.6 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008986/0.6904, allocations: 5.975 MB / 0.6087 GB, free: 5.625 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.6904, allocations: 0 / 0.6087 GB, free: 5.625 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.478e-06/0.6904, allocations: 0 / 0.6087 GB, free: 5.625 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003248/0.6907, allocations: 1.203 kB / 0.6087 GB, free: 5.625 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: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01236/0.7031, allocations: 4.627 MB / 0.6132 GB, free: 0.9375 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/0.7032, allocations: 8.031 kB / 0.6132 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01393/0.7171, allocations: 2.54 MB / 0.6157 GB, free: 14.38 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01189/0.7291, allocations: 3.231 MB / 0.6189 GB, free: 11.09 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003625/0.7295, allocations: 254 kB / 0.6191 GB, free: 10.84 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001629/0.7311, allocations: 331.7 kB / 0.6194 GB, free: 10.51 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03604/0.7672, allocations: 10.87 MB / 0.63 GB, free: 14.9 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002438/0.7675, allocations: 55.53 kB / 0.6301 GB, free: 14.84 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000729/0.7682, allocations: 155.8 kB / 0.6302 GB, free: 14.69 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005878/0.7741, allocations: 2.006 MB / 0.6322 GB, free: 12.68 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03657/0.8107, allocations: 9.432 MB / 0.6414 GB, free: 3.223 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09292/0.9037, allocations: 41.2 MB / 0.6817 GB, free: 8.793 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01842/0.9222, allocations: 4.268 MB / 0.6858 GB, free: 4.387 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005049/0.9273, allocations: 1.919 MB / 0.6877 GB, free: 2.461 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01893/0.9463, allocations: 7.622 MB / 0.6951 GB, free: 10.46 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.698e-05/0.9464, allocations: 55.56 kB / 0.6952 GB, free: 10.4 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=180): time 6.673e-06/0.9464, allocations: 0 / 0.6952 GB, free: 10.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=236): time 0.4353/1.382, allocations: 41.39 MB / 0.7356 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.894e-05/1.382, allocations: 206.5 kB / 0.7358 GB, free: 177.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005186/1.387, allocations: 4.286 MB / 0.74 GB, free: 173.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0005764/1.388, allocations: 62.48 kB / 0.7401 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001582/1.389, allocations: 3.162 MB / 0.7431 GB, free: 170.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001074/1.39, allocations: 0.8746 MB / 0.744 GB, free: 169.4 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005561/1.391, allocations: 132 kB / 0.7441 GB, free: 169.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003514/1.391, allocations: 0.5867 MB / 0.7447 GB, free: 168.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004184/1.395, allocations: 3.601 MB / 0.7482 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006368/1.402, allocations: 7.27 MB / 0.7553 GB, free: 156 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006195/1.408, allocations: 4.96 MB / 0.7602 GB, free: 151 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.317e-05/1.408, allocations: 38.41 kB / 0.7602 GB, free: 151 MB / 0.5294 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03362/1.442, allocations: 16.17 MB / 0.776 GB, free: 134.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.88e-05/1.442, allocations: 63.95 kB / 0.776 GB, free: 134.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001126/1.442, allocations: 128 kB / 0.7762 GB, free: 134.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01947/1.462, allocations: 6.276 MB / 0.7823 GB, free: 128.4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004871/1.466, allocations: 1.489 MB / 0.7837 GB, free: 126.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02767/1.494, allocations: 26.14 MB / 0.8093 GB, free: 100.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005013/1.499, allocations: 414.1 kB / 0.8097 GB, free: 100.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007814/1.5, allocations: 384 kB / 0.81 GB, free: 99.69 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * 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 (779): * Single equations (assignments): 774 * 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.003099/1.503, allocations: 2.218 MB / 0.8122 GB, free: 97.46 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006781/1.504, allocations: 397.6 kB / 0.8126 GB, free: 97.07 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0239/1.528, allocations: 11.3 MB / 0.8236 GB, free: 85.74 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.499e-05/1.528, allocations: 24 kB / 0.8236 GB, free: 85.71 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.587e-05/1.528, allocations: 16 kB / 0.8237 GB, free: 85.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.737e-05/1.528, allocations: 11.97 kB / 0.8237 GB, free: 85.69 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04694/1.575, allocations: 20.75 MB / 0.8439 GB, free: 64.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.447e-05/1.575, allocations: 8 kB / 0.8439 GB, free: 64.49 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002794/1.578, allocations: 392 kB / 0.8443 GB, free: 64.11 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02701/1.605, allocations: 5.341 MB / 0.8495 GB, free: 58.75 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008046/1.606, allocations: 47.95 kB / 0.8496 GB, free: 58.71 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02523/1.631, allocations: 21.22 MB / 0.8703 GB, free: 37.23 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.343e-06/1.631, allocations: 11.94 kB / 0.8703 GB, free: 37.21 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.027/1.658, allocations: 14.59 MB / 0.8846 GB, free: 22.54 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001419/1.659, allocations: 455.8 kB / 0.885 GB, free: 22.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001489/1.661, allocations: 48.92 kB / 0.885 GB, free: 22.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002848/1.664, allocations: 183.7 kB / 0.8852 GB, free: 21.84 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009297/1.665, allocations: 162.1 kB / 0.8854 GB, free: 21.68 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004082/1.665, allocations: 60 kB / 0.8854 GB, free: 21.62 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004976/1.67, allocations: 2.677 MB / 0.888 GB, free: 18.94 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.01e-07/1.67, allocations: 0 / 0.888 GB, free: 18.94 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007182/1.677, allocations: 1.352 MB / 0.8894 GB, free: 17.59 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.0007964/1.678, allocations: 190.4 kB / 0.8895 GB, free: 17.41 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01186/1.69, allocations: 8.28 MB / 0.8976 GB, free: 9.137 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/1.69, allocations: 1.188 kB / 0.8976 GB, free: 9.137 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.269/1.959, allocations: 3.203 MB / 0.9008 GB, free: 176.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005132/1.964, allocations: 493.2 kB / 0.9012 GB, free: 176.1 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02887/1.993, allocations: 13.58 MB / 0.9145 GB, free: 171.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006533/2, allocations: 3.502 MB / 0.9179 GB, free: 170.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00773/2.008, allocations: 1.957 MB / 0.9198 GB, free: 170.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001806/2.009, allocations: 269.9 kB / 0.9201 GB, free: 170.8 MB / 0.5294 GB Notification: Performance of SimCode: time 1.984e-06/2.009, allocations: 1.094 kB / 0.9201 GB, free: 170.8 MB / 0.5294 GB Notification: Performance of Templates: time 0.1002/2.11, allocations: 64.88 MB / 0.9834 GB, free: 117.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches