Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001006/0.001007, allocations: 95.16 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 182.8 kB / 17.87 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 223.2 MB / 241.8 MB, free: 384 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2332/0.2332, allocations: 44.23 MB / 337.1 MB, free: 2.918 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003064/0.0003064, allocations: 9.031 kB / 409.5 MB, free: 27.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.1442, allocations: 61.93 MB / 471.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.03927/0.1835, allocations: 40.19 MB / 0.4997 GB, free: 5.469 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3661/0.5497, allocations: 9.976 MB / 0.5094 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01207/0.5618, allocations: 202.6 kB / 0.5096 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008755/0.5706, allocations: 1.972 MB / 0.5115 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02425/0.5949, allocations: 5.841 MB / 0.5172 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004243/0.5992, allocations: 0.7556 MB / 0.518 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.06849/0.6677, allocations: 48.37 MB / 0.5652 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007011/0.6747, allocations: 4.228 MB / 0.5693 GB, free: 13.81 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002877/0.6777, allocations: 1.181 MB / 0.5705 GB, free: 13.04 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003006/0.6807, allocations: 1.737 MB / 0.5722 GB, free: 11.75 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008157/0.6815, allocations: 176 kB / 0.5723 GB, free: 11.58 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002873/0.6844, allocations: 1.064 MB / 0.5734 GB, free: 10.7 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002252/0.6867, allocations: 1.813 MB / 0.5752 GB, free: 9.238 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001309/0.688, allocations: 0.887 MB / 0.576 GB, free: 8.539 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007544/0.6955, allocations: 6.138 MB / 0.582 GB, free: 2.594 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.6956, allocations: 0 / 0.582 GB, free: 2.594 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.6956, allocations: 4 kB / 0.582 GB, free: 2.59 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002861/0.6959, allocations: 0 / 0.582 GB, free: 2.59 MB / 414.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.01384/0.7097, allocations: 4.862 MB / 0.5868 GB, free: 13.71 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.7098, allocations: 8.562 kB / 0.5868 GB, free: 13.7 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04232/0.7521, allocations: 7.891 MB / 0.5945 GB, free: 5.797 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01007/0.7622, allocations: 3.526 MB / 0.5979 GB, free: 2.262 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002749/0.7626, allocations: 234.4 kB / 0.5981 GB, free: 2.066 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001825/0.7644, allocations: 336.5 kB / 0.5985 GB, free: 1.777 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02098/0.7854, allocations: 10.87 MB / 0.6091 GB, free: 6.195 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001619/0.7856, allocations: 55.44 kB / 0.6091 GB, free: 6.141 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004343/0.7861, allocations: 155.8 kB / 0.6093 GB, free: 5.988 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003084/0.7892, allocations: 1.998 MB / 0.6112 GB, free: 3.988 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02064/0.8098, allocations: 9.344 MB / 0.6204 GB, free: 10.62 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06041/0.8703, allocations: 41.1 MB / 0.6605 GB, free: 324 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01123/0.8816, allocations: 4.238 MB / 0.6646 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01286/0.8945, allocations: 7.587 MB / 0.672 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.213e-05/0.8946, allocations: 51.56 kB / 0.6721 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=180): time 4.719e-06/0.8946, allocations: 4 kB / 0.6721 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of matching and sorting (n=236): time 0.4556/1.35, allocations: 41.4 MB / 0.7125 GB, free: 191.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001227/1.35, allocations: 203.2 kB / 0.7127 GB, free: 191.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01231/1.363, allocations: 4.547 MB / 0.7172 GB, free: 189.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001022/1.364, allocations: 72.66 kB / 0.7172 GB, free: 189.8 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003175/1.367, allocations: 3.205 MB / 0.7204 GB, free: 187.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001613/1.369, allocations: 0.8777 MB / 0.7212 GB, free: 187.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004315/1.369, allocations: 126.2 kB / 0.7213 GB, free: 187.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003404/1.369, allocations: 0.5659 MB / 0.7219 GB, free: 186.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005954/1.375, allocations: 3.467 MB / 0.7253 GB, free: 185.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006982/1.382, allocations: 7.056 MB / 0.7322 GB, free: 179.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006368/1.389, allocations: 4.808 MB / 0.7369 GB, free: 177.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.049e-05/1.389, allocations: 38.83 kB / 0.7369 GB, free: 177.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=818) (initialization): time 0.03558/1.424, allocations: 15.66 MB / 0.7522 GB, free: 167.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001751/1.425, allocations: 66.08 kB / 0.7523 GB, free: 167.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002416/1.425, allocations: 128.9 kB / 0.7524 GB, free: 167.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0229/1.448, allocations: 6.111 MB / 0.7583 GB, free: 161.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005416/1.453, allocations: 1.435 MB / 0.7598 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02852/1.482, allocations: 26.38 MB / 0.7855 GB, free: 133.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006297/1.488, allocations: 400.6 kB / 0.7859 GB, free: 132.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001136/1.489, allocations: 372 kB / 0.7863 GB, free: 132.5 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.004695/1.494, allocations: 2.22 MB / 0.7884 GB, free: 130.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001258/1.495, allocations: 398.8 kB / 0.7888 GB, free: 129.9 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02624/1.522, allocations: 11.07 MB / 0.7996 GB, free: 118.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.592e-05/1.522, allocations: 31.16 kB / 0.7996 GB, free: 118.8 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.081e-05/1.522, allocations: 15.56 kB / 0.7997 GB, free: 118.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.487e-05/1.522, allocations: 11.95 kB / 0.7997 GB, free: 118.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04412/1.566, allocations: 20.59 MB / 0.8198 GB, free: 97.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.217e-05/1.566, allocations: 8 kB / 0.8198 GB, free: 97.71 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001958/1.568, allocations: 383.9 kB / 0.8201 GB, free: 97.33 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01899/1.587, allocations: 5.18 MB / 0.8252 GB, free: 92.14 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005491/1.588, allocations: 48 kB / 0.8252 GB, free: 92.09 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02424/1.612, allocations: 21.48 MB / 0.8462 GB, free: 70.35 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.203e-06/1.612, allocations: 14.89 kB / 0.8462 GB, free: 70.34 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03018/1.642, allocations: 14.91 MB / 0.8608 GB, free: 55.12 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001888/1.644, allocations: 467.7 kB / 0.8612 GB, free: 54.64 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001859/1.646, allocations: 48.28 kB / 0.8613 GB, free: 54.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003742/1.65, allocations: 179.7 kB / 0.8615 GB, free: 54.43 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009908/1.651, allocations: 157.1 kB / 0.8616 GB, free: 54.27 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004466/1.651, allocations: 61.41 kB / 0.8617 GB, free: 54.21 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005093/1.656, allocations: 2.906 MB / 0.8645 GB, free: 51.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.11e-07/1.656, allocations: 0 / 0.8645 GB, free: 51.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007304/1.664, allocations: 1.342 MB / 0.8658 GB, free: 49.96 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.0006315/1.664, allocations: 208.1 kB / 0.866 GB, free: 49.76 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01077/1.675, allocations: 8.042 MB / 0.8739 GB, free: 41.73 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.214e-06/1.675, allocations: 0 / 0.8739 GB, free: 41.73 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003989/1.679, allocations: 3.168 MB / 0.877 GB, free: 38.55 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003591/1.683, allocations: 499.7 kB / 0.8774 GB, free: 38.07 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0221/1.705, allocations: 13.44 MB / 0.8906 GB, free: 24.54 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005446/1.71, allocations: 3.609 MB / 0.8941 GB, free: 20.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005849/1.716, allocations: 1.965 MB / 0.896 GB, free: 18.93 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001537/1.718, allocations: 275.4 kB / 0.8963 GB, free: 18.66 MB / 0.5294 GB Notification: Performance of SimCode: time 1.433e-06/1.718, allocations: 0 / 0.8963 GB, free: 18.66 MB / 0.5294 GB Notification: Performance of Templates: time 0.4114/2.129, allocations: 65.39 MB / 0.9601 GB, free: 143.3 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches