Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00155/0.00155, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001804/0.001804, allocations: 218 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.519/1.519, allocations: 230.6 MB / 257.5 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2324/0.2324, allocations: 46.95 MB / 360.9 MB, free: 4.047 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002135/0.002135, allocations: 59.91 kB / 0.4966 GB, free: 7.238 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.351/0.3531, allocations: 66.05 MB / 0.5611 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01338/0.3665, allocations: 10.51 MB / 0.5713 GB, free: 9.598 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.009204/0.3757, allocations: 4.112 MB / 0.5754 GB, free: 5.477 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001687/0.3774, allocations: 87.56 kB / 0.5754 GB, free: 5.391 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0056/0.383, allocations: 2.671 MB / 0.578 GB, free: 2.711 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006243/0.3892, allocations: 2.047 MB / 0.58 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002403/0.3916, allocations: 0.9124 MB / 0.5809 GB, free: 15.74 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00815/0.3998, allocations: 5.677 MB / 0.5865 GB, free: 10.05 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005234/0.405, allocations: 2.813 MB / 0.5892 GB, free: 7.191 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004005/0.409, allocations: 1.752 MB / 0.5909 GB, free: 5.434 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004804/0.4138, allocations: 2.582 MB / 0.5935 GB, free: 2.844 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001603/0.4154, allocations: 384 kB / 0.5938 GB, free: 2.469 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003481/0.4189, allocations: 1.291 MB / 0.5951 GB, free: 1.176 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003527/0.4224, allocations: 2.24 MB / 0.5973 GB, free: 14.93 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004317/0.4267, allocations: 1.825 MB / 0.5991 GB, free: 13.09 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01298/0.4397, allocations: 7.903 MB / 0.6068 GB, free: 5.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.226e-06/0.4397, allocations: 7.938 kB / 0.6068 GB, free: 5.152 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.4397, allocations: 0 / 0.6068 GB, free: 5.152 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003504/0.4401, allocations: 0 / 0.6068 GB, free: 5.152 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.01521/0.4553, allocations: 5.559 MB / 0.6122 GB, free: 15.53 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.4553, allocations: 8.031 kB / 0.6122 GB, free: 15.52 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01144/0.4668, allocations: 2.498 MB / 0.6147 GB, free: 13.01 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008875/0.4757, allocations: 3.312 MB / 0.6179 GB, free: 9.648 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002182/0.4759, allocations: 238.5 kB / 0.6181 GB, free: 9.414 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009322/0.4768, allocations: 343.7 kB / 0.6184 GB, free: 9.078 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02051/0.4973, allocations: 10.93 MB / 0.6291 GB, free: 13.39 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001339/0.4975, allocations: 47.59 kB / 0.6292 GB, free: 13.34 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004236/0.4979, allocations: 155.9 kB / 0.6293 GB, free: 13.19 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003316/0.5012, allocations: 1.994 MB / 0.6313 GB, free: 11.2 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01955/0.5207, allocations: 9.424 MB / 0.6405 GB, free: 1.754 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05041/0.5712, allocations: 37.98 MB / 0.6776 GB, free: 10.67 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0109/0.5821, allocations: 3.628 MB / 0.6811 GB, free: 7.012 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002818/0.5849, allocations: 1.771 MB / 0.6828 GB, free: 5.227 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01175/0.5966, allocations: 5.763 MB / 0.6885 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.438e-05/0.5967, allocations: 59.5 kB / 0.6885 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=180): time 4.499e-06/0.5967, allocations: 0 / 0.6885 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of matching and sorting (n=236): time 0.1797/0.7764, allocations: 40.98 MB / 0.7285 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001467/0.7765, allocations: 205.9 kB / 0.7287 GB, free: 6.094 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008637/0.7851, allocations: 4.041 MB / 0.7327 GB, free: 2.062 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.00103/0.7862, allocations: 57.7 kB / 0.7327 GB, free: 2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.3404/1.127, allocations: 3.313 MB / 0.736 GB, free: 156.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.00171/1.128, allocations: 0.9152 MB / 0.7369 GB, free: 156.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003099/1.131, allocations: 1.361 MB / 0.7382 GB, free: 156.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.829e-05/1.131, allocations: 302.1 kB / 0.7385 GB, free: 155.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00489/1.136, allocations: 3.627 MB / 0.742 GB, free: 154.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005845/1.142, allocations: 7.348 MB / 0.7492 GB, free: 148.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01107/1.153, allocations: 11.63 MB / 0.7605 GB, free: 138.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001066/1.153, allocations: 36 kB / 0.7606 GB, free: 138.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=855) (initialization): time 0.03699/1.19, allocations: 16.15 MB / 0.7764 GB, free: 124.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.155e-05/1.19, allocations: 60 kB / 0.7764 GB, free: 124.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001286/1.191, allocations: 128 kB / 0.7765 GB, free: 124.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02286/1.213, allocations: 6.228 MB / 0.7826 GB, free: 118.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005208/1.219, allocations: 1.484 MB / 0.7841 GB, free: 116.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02956/1.248, allocations: 27.13 MB / 0.8106 GB, free: 89.33 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006351/1.254, allocations: 407.3 kB / 0.8109 GB, free: 88.94 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001069/1.256, allocations: 388 kB / 0.8113 GB, free: 88.56 MB / 0.5606 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 (778): * Single equations (assignments): 773 * 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.004231/1.26, allocations: 2.223 MB / 0.8135 GB, free: 86.41 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008269/1.261, allocations: 373.5 kB / 0.8138 GB, free: 86.04 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02685/1.287, allocations: 11.22 MB / 0.8248 GB, free: 74.8 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.175e-05/1.288, allocations: 31.98 kB / 0.8248 GB, free: 74.77 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.972e-05/1.288, allocations: 13.64 kB / 0.8248 GB, free: 74.76 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.83e-05/1.288, allocations: 7.969 kB / 0.8248 GB, free: 74.75 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0412/1.329, allocations: 18.86 MB / 0.8433 GB, free: 55.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.245e-05/1.329, allocations: 4.594 kB / 0.8433 GB, free: 55.53 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002143/1.331, allocations: 393.9 kB / 0.8436 GB, free: 55.14 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02045/1.351, allocations: 5.297 MB / 0.8488 GB, free: 49.84 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006968/1.352, allocations: 44 kB / 0.8489 GB, free: 49.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02437/1.376, allocations: 22.22 MB / 0.8706 GB, free: 27.37 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/1.376, allocations: 4 kB / 0.8706 GB, free: 27.37 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0406/1.417, allocations: 14.56 MB / 0.8848 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001685/1.419, allocations: 344 kB / 0.8851 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001251/1.42, allocations: 40 kB / 0.8851 GB, free: 12.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004356/1.424, allocations: 183.7 kB / 0.8853 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001124/1.425, allocations: 160.9 kB / 0.8855 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004452/1.426, allocations: 68 kB / 0.8855 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006875/1.433, allocations: 2.361 MB / 0.8878 GB, free: 9.602 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.1e-07/1.433, allocations: 0 / 0.8878 GB, free: 9.602 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01311/1.446, allocations: 1.347 MB / 0.8892 GB, free: 8.266 MB / 0.5606 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.001244/1.447, allocations: 183.8 kB / 0.8893 GB, free: 8.09 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02034/1.468, allocations: 8.009 MB / 0.8972 GB, free: 100 kB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.021e-05/1.468, allocations: 0 / 0.8972 GB, free: 100 kB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01009/1.478, allocations: 2.986 MB / 0.9001 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006567/1.484, allocations: 454.3 kB / 0.9005 GB, free: 12.66 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04435/1.529, allocations: 12.02 MB / 0.9122 GB, free: 0.5508 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009622/1.538, allocations: 2.971 MB / 0.9151 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.009318/1.547, allocations: 1.915 MB / 0.917 GB, free: 11.62 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001906/1.549, allocations: 251.4 kB / 0.9173 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of SimCode: time 1.423e-06/1.549, allocations: 0 / 0.9173 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of Templates: time 0.5106/2.06, allocations: 69.29 MB / 0.9849 GB, free: 218.4 MB / 0.6387 GB " [Timeout remaining time 658] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.52071331627667]