Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 95.62 kB / 16.98 MB, free: 6.402 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.001163/0.001163, allocations: 178.7 kB / 17.88 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.413/1.413, allocations: 223.2 MB / 241.8 MB, free: 380 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.2265/0.2265, allocations: 44.22 MB / 337.1 MB, free: 2.895 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003423/0.0003425, allocations: 8 kB / 409.5 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1444/0.1447, allocations: 61.91 MB / 471.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.3818/0.5265, allocations: 45.7 MB / 0.505 GB, free: 9.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03733/0.5639, allocations: 11.09 MB / 0.5159 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02033/0.5843, allocations: 235 kB / 0.5161 GB, free: 9.773 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01275/0.5971, allocations: 2.274 MB / 0.5183 GB, free: 9.551 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02631/0.6235, allocations: 6.694 MB / 0.5248 GB, free: 8.395 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004538/0.628, allocations: 0.8461 MB / 0.5257 GB, free: 8.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.06868/0.6968, allocations: 49.1 MB / 0.5736 GB, free: 10.86 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01049/0.7073, allocations: 5.081 MB / 0.5786 GB, free: 5.863 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005089/0.7124, allocations: 1.557 MB / 0.5801 GB, free: 4.301 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004958/0.7174, allocations: 2.271 MB / 0.5823 GB, free: 2.023 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002428/0.7199, allocations: 236 kB / 0.5825 GB, free: 1.793 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004891/0.7248, allocations: 1.102 MB / 0.5836 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004625/0.7295, allocations: 2.392 MB / 0.586 GB, free: 14.3 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003239/0.7328, allocations: 1.197 MB / 0.5871 GB, free: 13.09 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01204/0.7448, allocations: 8.093 MB / 0.595 GB, free: 4.992 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.7449, allocations: 0 / 0.595 GB, free: 4.992 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.7449, allocations: 3.938 kB / 0.595 GB, free: 4.988 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004682/0.7454, allocations: 0 / 0.595 GB, free: 4.988 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01802/0.7634, allocations: 6.469 MB / 0.6013 GB, free: 14.47 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.7635, allocations: 8.562 kB / 0.6014 GB, free: 14.46 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04942/0.8129, allocations: 9.716 MB / 0.6108 GB, free: 4.723 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01351/0.8265, allocations: 4.366 MB / 0.6151 GB, free: 320 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000358/0.8269, allocations: 324.1 kB / 0.6154 GB, free: 15.99 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002236/0.8291, allocations: 435.5 kB / 0.6158 GB, free: 15.56 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02949/0.8586, allocations: 15.76 MB / 0.6312 GB, free: 14.88 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001672/0.8588, allocations: 67.36 kB / 0.6313 GB, free: 14.81 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006611/0.8595, allocations: 203.8 kB / 0.6315 GB, free: 14.61 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004905/0.8644, allocations: 3.221 MB / 0.6346 GB, free: 11.39 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02985/0.8943, allocations: 14.08 MB / 0.6484 GB, free: 13.28 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0958/0.9901, allocations: 57.53 MB / 0.7046 GB, free: 2.246 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3069/1.297, allocations: 6.576 MB / 0.711 GB, free: 186.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03323/1.33, allocations: 14.55 MB / 0.7252 GB, free: 179.3 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.038e-05/1.33, allocations: 59.31 kB / 0.7252 GB, free: 179.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=289): time 8.105e-06/1.33, allocations: 3.781 kB / 0.7252 GB, free: 179.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=339): time 0.1351/1.466, allocations: 42.86 MB / 0.7671 GB, free: 150.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.465e-05/1.466, allocations: 210 kB / 0.7673 GB, free: 150.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006758/1.473, allocations: 5.699 MB / 0.7729 GB, free: 144.5 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009351/1.473, allocations: 81.95 kB / 0.7729 GB, free: 144.4 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002178/1.476, allocations: 4.413 MB / 0.7773 GB, free: 140 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001617/1.477, allocations: 1.248 MB / 0.7785 GB, free: 138.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005024/1.478, allocations: 173.2 kB / 0.7786 GB, free: 138.6 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0003785/1.478, allocations: 0.6819 MB / 0.7793 GB, free: 137.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005773/1.484, allocations: 4.608 MB / 0.7838 GB, free: 133.3 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008368/1.492, allocations: 9.547 MB / 0.7931 GB, free: 121.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008551/1.501, allocations: 6.499 MB / 0.7995 GB, free: 114.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001147/1.501, allocations: 48 kB / 0.7995 GB, free: 114.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1149) (initialization): time 0.04336/1.544, allocations: 18.95 MB / 0.818 GB, free: 95.78 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002688/1.545, allocations: 80 kB / 0.8181 GB, free: 95.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003488/1.545, allocations: 180.1 kB / 0.8183 GB, free: 95.52 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02152/1.567, allocations: 5.827 MB / 0.824 GB, free: 89.69 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007646/1.574, allocations: 2.066 MB / 0.826 GB, free: 87.62 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02971/1.604, allocations: 24.93 MB / 0.8503 GB, free: 62.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009318/1.614, allocations: 0.5435 MB / 0.8509 GB, free: 61.87 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002225/1.616, allocations: 0.501 MB / 0.8513 GB, free: 61.37 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.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 (1058): * Single equations (assignments): 1050 * Array equations: 6 * 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 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008098/1.624, allocations: 3.106 MB / 0.8544 GB, free: 58.25 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00178/1.626, allocations: 0.4974 MB / 0.8549 GB, free: 57.75 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03127/1.657, allocations: 12.67 MB / 0.8672 GB, free: 45.01 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001082/1.657, allocations: 55.98 kB / 0.8673 GB, free: 44.95 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.665e-05/1.657, allocations: 15.95 kB / 0.8673 GB, free: 44.94 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001125/1.657, allocations: 15.94 kB / 0.8673 GB, free: 44.92 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05927/1.717, allocations: 24.45 MB / 0.8912 GB, free: 20.01 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.47e-05/1.717, allocations: 4 kB / 0.8912 GB, free: 20 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003428/1.72, allocations: 0.5733 MB / 0.8918 GB, free: 19.43 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01849/1.739, allocations: 4.842 MB / 0.8965 GB, free: 14.58 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001045/1.74, allocations: 61.17 kB / 0.8966 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3755/2.115, allocations: 20.18 MB / 0.9163 GB, free: 163.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.714e-06/2.115, allocations: 8.844 kB / 0.9163 GB, free: 163.1 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03458/2.15, allocations: 17.83 MB / 0.9337 GB, free: 156.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001742/2.152, allocations: 0.5455 MB / 0.9342 GB, free: 156.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001308/2.153, allocations: 59.5 kB / 0.9343 GB, free: 156.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003271/2.156, allocations: 264.6 kB / 0.9345 GB, free: 156.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008149/2.157, allocations: 185.2 kB / 0.9347 GB, free: 156.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002694/2.157, allocations: 88.42 kB / 0.9348 GB, free: 156.1 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005719/2.163, allocations: 3.586 MB / 0.9383 GB, free: 155 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.61e-07/2.163, allocations: 0 / 0.9383 GB, free: 155 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008565/2.172, allocations: 1.742 MB / 0.94 GB, free: 154.8 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 (254): * Single equations (assignments): 246 * Array equations: 6 * 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 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008397/2.173, allocations: 219.7 kB / 0.9402 GB, free: 154.6 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01458/2.187, allocations: 10.61 MB / 0.9506 GB, free: 148.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.004e-05/2.187, allocations: 4 kB / 0.9506 GB, free: 148.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006803/2.194, allocations: 4.04 MB / 0.9545 GB, free: 145 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004347/2.198, allocations: 0.5824 MB / 0.9551 GB, free: 144.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0241/2.223, allocations: 18.39 MB / 0.973 GB, free: 126.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004757/2.227, allocations: 4.74 MB / 0.9777 GB, free: 121.6 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006778/2.234, allocations: 2.997 MB / 0.9806 GB, free: 118.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001438/2.236, allocations: 359.4 kB / 0.9809 GB, free: 118.3 MB / 0.5294 GB Notification: Performance of SimCode: time 1.032e-06/2.236, allocations: 0 / 0.9809 GB, free: 118.3 MB / 0.5294 GB Notification: Performance of Templates: time 0.1081/2.344, allocations: 75.52 MB / 1.055 GB, free: 42.86 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches