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.001365/0.001365, allocations: 121 kB / 18.42 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001612/0.001612, allocations: 208.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 247.5 MB, free: 10.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2097/0.2097, allocations: 46.1 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 75.66 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1087, allocations: 62.45 MB / 481.5 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01201/0.1207, allocations: 12.01 MB / 493.5 MB, free: 8.457 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008459/0.1292, allocations: 4.31 MB / 497.8 MB, free: 4.133 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001833/0.1311, allocations: 71.81 kB / 497.9 MB, free: 4.062 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004773/0.1359, allocations: 2.737 MB / 0.4889 GB, free: 1.316 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005019/0.141, allocations: 1.977 MB / 0.4908 GB, free: 15.33 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001923/0.1429, allocations: 0.9085 MB / 0.4917 GB, free: 14.42 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007686/0.1506, allocations: 5.665 MB / 0.4972 GB, free: 8.746 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004396/0.155, allocations: 3.354 MB / 0.5005 GB, free: 5.344 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003081/0.1582, allocations: 1.717 MB / 0.5022 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004612/0.1628, allocations: 2.512 MB / 0.5046 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001775/0.1646, allocations: 384 kB / 0.505 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.214/0.3787, allocations: 1.387 MB / 0.5063 GB, free: 18.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003022/0.3817, allocations: 2.156 MB / 0.5084 GB, free: 18.65 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003225/0.385, allocations: 2.429 MB / 0.5108 GB, free: 17.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01059/0.3956, allocations: 7.844 MB / 0.5185 GB, free: 16.83 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.3956, allocations: 1.969 kB / 0.5185 GB, free: 16.83 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3956, allocations: 0.5 kB / 0.5185 GB, free: 16.83 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002632/0.3959, allocations: 0.5 kB / 0.5185 GB, free: 16.83 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: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.015/0.4109, allocations: 5.485 MB / 0.5238 GB, free: 14.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.411, allocations: 8.875 kB / 0.5238 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0105/0.4215, allocations: 2.478 MB / 0.5263 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008917/0.4304, allocations: 3.37 MB / 0.5296 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00019/0.4306, allocations: 243.4 kB / 0.5298 GB, free: 12.72 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001243/0.4319, allocations: 339 kB / 0.5301 GB, free: 12.63 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01886/0.4508, allocations: 10.87 MB / 0.5407 GB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001368/0.4509, allocations: 51.91 kB / 0.5408 GB, free: 6.148 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004274/0.4514, allocations: 153.2 kB / 0.5409 GB, free: 6.082 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002575/0.454, allocations: 2 MB / 0.5429 GB, free: 5.332 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01754/0.4715, allocations: 9.448 MB / 0.5521 GB, free: 12.88 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05536/0.5269, allocations: 41.05 MB / 0.5922 GB, free: 3.18 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01043/0.5374, allocations: 4.25 MB / 0.5963 GB, free: 14.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002845/0.5403, allocations: 1.934 MB / 0.5982 GB, free: 12.85 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01478/0.5551, allocations: 7.617 MB / 0.6057 GB, free: 4.91 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.033e-05/0.5552, allocations: 54.28 kB / 0.6057 GB, free: 4.848 MB / 446.1 MB Notification: Performance of pre-optimization done (n=180): time 3.957e-06/0.5552, allocations: 0 / 0.6057 GB, free: 4.848 MB / 446.1 MB Notification: Performance of matching and sorting (n=236): time 0.158/0.7132, allocations: 40.91 MB / 0.6457 GB, free: 12.02 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/0.7134, allocations: 209.4 kB / 0.6459 GB, free: 11.78 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008037/0.7214, allocations: 4.301 MB / 0.6501 GB, free: 7.453 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006508/0.7221, allocations: 61.7 kB / 0.6501 GB, free: 7.387 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002579/0.7247, allocations: 3.169 MB / 0.6532 GB, free: 4.223 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00133/0.726, allocations: 0.8811 MB / 0.6541 GB, free: 3.348 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003511/0.7296, allocations: 1.351 MB / 0.6554 GB, free: 1.988 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.371e-05/0.7297, allocations: 305.1 kB / 0.6557 GB, free: 1.688 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005192/0.7349, allocations: 3.628 MB / 0.6592 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007286/0.7422, allocations: 7.298 MB / 0.6664 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01414/0.7563, allocations: 11.63 MB / 0.6777 GB, free: 8.121 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001237/0.7565, allocations: 39.94 kB / 0.6777 GB, free: 8.082 MB / 0.5137 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.04099/0.7975, allocations: 16.21 MB / 0.6936 GB, free: 7.992 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002004/0.7977, allocations: 63.94 kB / 0.6936 GB, free: 7.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002486/0.798, allocations: 128 kB / 0.6938 GB, free: 7.805 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02261/0.8206, allocations: 6.225 MB / 0.6998 GB, free: 1.57 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005363/0.826, allocations: 1.489 MB / 0.7013 GB, free: 80 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2481/1.074, allocations: 27.62 MB / 0.7283 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005827/1.08, allocations: 407 kB / 0.7287 GB, free: 166.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000936/1.081, allocations: 385.2 kB / 0.729 GB, free: 166.4 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,51,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00429/1.085, allocations: 2.22 MB / 0.7312 GB, free: 165.6 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008246/1.086, allocations: 392.6 kB / 0.7316 GB, free: 165.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02502/1.111, allocations: 11.29 MB / 0.7426 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.562e-05/1.111, allocations: 24 kB / 0.7426 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.852e-05/1.111, allocations: 12 kB / 0.7426 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.323e-05/1.111, allocations: 11.95 kB / 0.7426 GB, free: 160 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03912/1.15, allocations: 20.66 MB / 0.7628 GB, free: 139.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.013e-05/1.15, allocations: 4 kB / 0.7628 GB, free: 139.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001897/1.152, allocations: 383.4 kB / 0.7632 GB, free: 138.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01786/1.17, allocations: 5.311 MB / 0.7684 GB, free: 133.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005183/1.171, allocations: 47.98 kB / 0.7684 GB, free: 133.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02424/1.195, allocations: 22.7 MB / 0.7906 GB, free: 110.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.286e-06/1.195, allocations: 11.94 kB / 0.7906 GB, free: 110.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02854/1.224, allocations: 14.59 MB / 0.8048 GB, free: 96.13 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001488/1.225, allocations: 457.7 kB / 0.8053 GB, free: 95.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001551/1.227, allocations: 40 kB / 0.8053 GB, free: 95.63 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003214/1.23, allocations: 183.5 kB / 0.8055 GB, free: 95.46 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009863/1.231, allocations: 155.4 kB / 0.8056 GB, free: 95.31 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004443/1.231, allocations: 64 kB / 0.8057 GB, free: 95.25 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005091/1.236, allocations: 2.699 MB / 0.8083 GB, free: 92.54 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2e-07/1.236, allocations: 0 / 0.8083 GB, free: 92.54 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007867/1.244, allocations: 1.358 MB / 0.8097 GB, free: 91.19 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,45,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009325/1.245, allocations: 188.9 kB / 0.8098 GB, free: 91.01 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01115/1.256, allocations: 8.341 MB / 0.818 GB, free: 82.71 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/1.256, allocations: 0 / 0.818 GB, free: 82.71 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004328/1.261, allocations: 3.216 MB / 0.8211 GB, free: 79.48 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004446/1.265, allocations: 0.5058 MB / 0.8216 GB, free: 78.99 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02002/1.285, allocations: 11.81 MB / 0.8332 GB, free: 67.11 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004868/1.29, allocations: 3.507 MB / 0.8366 GB, free: 63.58 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004521/1.295, allocations: 1.956 MB / 0.8385 GB, free: 61.62 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001267/1.296, allocations: 263.4 kB / 0.8387 GB, free: 61.36 MB / 0.5294 GB Notification: Performance of SimCode: time 1.042e-06/1.296, allocations: 6.953 kB / 0.8387 GB, free: 61.36 MB / 0.5294 GB Notification: Performance of Templates: time 0.3013/1.597, allocations: 64.53 MB / 0.9018 GB, free: 188.6 MB / 0.545 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches