Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001097/0.001097, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001097/0.001097, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2269/0.2269, allocations: 46.1 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 79.88 kB / 481.3 MB, free: 4.035 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4057/0.407, allocations: 62.43 MB / 0.531 GB, free: 13.56 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01767/0.4248, allocations: 15 MB / 0.5456 GB, free: 1.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01246/0.4373, allocations: 4.824 MB / 0.5503 GB, free: 13.79 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003454/0.4408, allocations: 95.69 kB / 0.5504 GB, free: 13.7 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006122/0.447, allocations: 3.149 MB / 0.5535 GB, free: 10.54 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008467/0.4555, allocations: 2.603 MB / 0.556 GB, free: 7.926 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003221/0.4587, allocations: 0.9788 MB / 0.557 GB, free: 6.945 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01124/0.47, allocations: 7.046 MB / 0.5639 GB, free: 15.89 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007143/0.4771, allocations: 4.371 MB / 0.5682 GB, free: 11.45 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005042/0.4822, allocations: 2.219 MB / 0.5703 GB, free: 9.227 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006968/0.4892, allocations: 3.244 MB / 0.5735 GB, free: 5.973 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002325/0.4916, allocations: 488 kB / 0.574 GB, free: 5.496 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004829/0.4964, allocations: 1.482 MB / 0.5754 GB, free: 4.012 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005164/0.5016, allocations: 2.871 MB / 0.5782 GB, free: 1.133 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007397/0.5091, allocations: 3.223 MB / 0.5814 GB, free: 13.89 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01867/0.5278, allocations: 10.36 MB / 0.5915 GB, free: 3.492 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.348e-05/0.5278, allocations: 0 / 0.5915 GB, free: 3.492 MB / 446.1 MB Notification: Performance of FrontEnd: time 4.248e-06/0.5279, allocations: 4 kB / 0.5915 GB, free: 3.488 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005532/0.5284, allocations: 0 / 0.5915 GB, free: 3.488 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02546/0.5539, allocations: 7.283 MB / 0.5986 GB, free: 12.12 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.589e-05/0.554, allocations: 8.031 kB / 0.5986 GB, free: 12.11 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01789/0.5719, allocations: 3.923 MB / 0.6024 GB, free: 8.172 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01333/0.5853, allocations: 4.13 MB / 0.6065 GB, free: 3.98 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005847/0.5859, allocations: 316.4 kB / 0.6068 GB, free: 3.668 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003268/0.5892, allocations: 435.5 kB / 0.6072 GB, free: 3.242 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03685/0.6261, allocations: 15.73 MB / 0.6225 GB, free: 2.586 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003415/0.6265, allocations: 59.45 kB / 0.6226 GB, free: 2.527 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002314/0.6288, allocations: 207.8 kB / 0.6228 GB, free: 2.324 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005748/0.6346, allocations: 3.216 MB / 0.6259 GB, free: 15.1 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03393/0.6685, allocations: 14.17 MB / 0.6398 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1037/0.7723, allocations: 57.5 MB / 0.6959 GB, free: 5.84 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02786/0.8003, allocations: 6.609 MB / 0.7024 GB, free: 14.97 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01117/0.8115, allocations: 3.739 MB / 0.706 GB, free: 11.22 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3611/1.173, allocations: 14.76 MB / 0.7204 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.363e-05/1.173, allocations: 64.72 kB / 0.7205 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=292): time 8.827e-06/1.173, allocations: 2.109 kB / 0.7205 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=342): time 0.1375/1.31, allocations: 42.49 MB / 0.762 GB, free: 134.6 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001508/1.311, allocations: 218 kB / 0.7622 GB, free: 134.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008122/1.319, allocations: 5.458 MB / 0.7675 GB, free: 128.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.00121/1.32, allocations: 77.38 kB / 0.7676 GB, free: 128.8 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00249/1.322, allocations: 4.339 MB / 0.7718 GB, free: 124.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001778/1.324, allocations: 1.264 MB / 0.7731 GB, free: 123.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002324/1.327, allocations: 1.856 MB / 0.7749 GB, free: 121.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.148e-05/1.327, allocations: 309.1 kB / 0.7752 GB, free: 121 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00531/1.332, allocations: 4.835 MB / 0.7799 GB, free: 116.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007818/1.34, allocations: 9.825 MB / 0.7895 GB, free: 103.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01548/1.355, allocations: 15.63 MB / 0.8048 GB, free: 85.86 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001598/1.356, allocations: 52 kB / 0.8048 GB, free: 85.81 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04131/1.397, allocations: 19.61 MB / 0.824 GB, free: 66.15 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.000106/1.397, allocations: 80 kB / 0.824 GB, free: 66.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001663/1.397, allocations: 172 kB / 0.8242 GB, free: 65.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02138/1.419, allocations: 5.946 MB / 0.83 GB, free: 59.95 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00806/1.427, allocations: 2.129 MB / 0.8321 GB, free: 57.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0299/1.457, allocations: 26.15 MB / 0.8576 GB, free: 31.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008888/1.466, allocations: 0.5656 MB / 0.8582 GB, free: 30.81 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002186/1.468, allocations: 0.515 MB / 0.8587 GB, free: 30.3 MB / 0.5606 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 (1099): * Single equations (assignments): 1091 * Array equations: 6 * 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 {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005998/1.474, allocations: 3.09 MB / 0.8617 GB, free: 27.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001215/1.475, allocations: 0.4937 MB / 0.8622 GB, free: 26.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02904/1.504, allocations: 13.01 MB / 0.8749 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001072/1.504, allocations: 55.98 kB / 0.8749 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.331e-05/1.504, allocations: 10.25 kB / 0.875 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.041e-05/1.504, allocations: 15.94 kB / 0.875 GB, free: 13.53 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05193/1.556, allocations: 24.61 MB / 0.899 GB, free: 4.438 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.279e-05/1.556, allocations: 4 kB / 0.899 GB, free: 4.434 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003547/1.56, allocations: 0.5895 MB / 0.8996 GB, free: 3.844 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02004/1.58, allocations: 4.966 MB / 0.9044 GB, free: 14.87 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009111/1.581, allocations: 60.92 kB / 0.9045 GB, free: 14.81 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03129/1.612, allocations: 21.34 MB / 0.9253 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.416e-06/1.612, allocations: 7.938 kB / 0.9253 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03843/1.651, allocations: 17.58 MB / 0.9425 GB, free: 7.434 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001819/1.653, allocations: 0.5297 MB / 0.943 GB, free: 6.879 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001828/1.655, allocations: 59.98 kB / 0.9431 GB, free: 6.82 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003903/1.658, allocations: 263.3 kB / 0.9433 GB, free: 6.566 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001244/1.66, allocations: 197.7 kB / 0.9435 GB, free: 6.375 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003567/1.66, allocations: 83.94 kB / 0.9436 GB, free: 6.293 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.006978/1.667, allocations: 3.394 MB / 0.9469 GB, free: 2.918 MB / 0.6231 GB Notification: Performance of sort global known variables: time 6.22e-07/1.667, allocations: 0 / 0.9469 GB, free: 2.918 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.3199/1.987, allocations: 1.733 MB / 0.9486 GB, free: 206.4 MB / 0.6231 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 (257): * Single equations (assignments): 249 * Array equations: 6 * 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 {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001384/1.988, allocations: 210 kB / 0.9488 GB, free: 206.3 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01828/2.007, allocations: 11.04 MB / 0.9596 GB, free: 204.2 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.35e-05/2.007, allocations: 1.406 kB / 0.9596 GB, free: 204.2 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.00558/2.012, allocations: 4.133 MB / 0.9636 GB, free: 202.4 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004123/2.017, allocations: 0.6125 MB / 0.9642 GB, free: 202.1 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02631/2.043, allocations: 16.08 MB / 0.9799 GB, free: 195.5 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005034/2.048, allocations: 4.619 MB / 0.9844 GB, free: 193.8 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005884/2.054, allocations: 2.977 MB / 0.9874 GB, free: 192.1 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001297/2.055, allocations: 353.8 kB / 0.9877 GB, free: 191.7 MB / 0.6231 GB Notification: Performance of SimCode: time 8.41e-07/2.055, allocations: 0 / 0.9877 GB, free: 191.7 MB / 0.6231 GB Notification: Performance of Templates: time 0.1026/2.158, allocations: 76.97 MB / 1.063 GB, free: 116.5 MB / 0.6231 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches