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.001481/0.001482, allocations: 110.5 kB / 17.86 MB, free: 5.504 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.001825/0.001825, allocations: 201.9 kB / 18.78 MB, free: 4.586 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.364/1.364, allocations: 222.9 MB / 242.4 MB, free: 15.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.212/0.212, allocations: 44.16 MB / 336.8 MB, free: 2.961 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 59.88 kB / 408.3 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.122, allocations: 60.84 MB / 469.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.2658/0.3878, allocations: 46.98 MB / 0.5041 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01995/0.4078, allocations: 10.14 MB / 0.514 GB, free: 9.809 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009012/0.4169, allocations: 208 kB / 0.5142 GB, free: 9.809 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005395/0.4223, allocations: 2.72 MB / 0.5168 GB, free: 9.184 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005654/0.428, allocations: 1.884 MB / 0.5187 GB, free: 8.562 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001866/0.4299, allocations: 0.8372 MB / 0.5195 GB, free: 8.277 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009841/0.4397, allocations: 7.917 MB / 0.5272 GB, free: 5.871 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00377/0.4435, allocations: 3.31 MB / 0.5304 GB, free: 4.098 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002502/0.446, allocations: 1.53 MB / 0.5319 GB, free: 3.352 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002992/0.4491, allocations: 2.674 MB / 0.5345 GB, free: 1.988 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006564/0.4497, allocations: 266.9 kB / 0.5348 GB, free: 1.984 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002525/0.4523, allocations: 1.368 MB / 0.5361 GB, free: 1.438 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001628/0.4539, allocations: 2.106 MB / 0.5382 GB, free: 264 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003961/0.4579, allocations: 2.331 MB / 0.5405 GB, free: 14.54 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006556/0.4645, allocations: 6.158 MB / 0.5465 GB, free: 8.848 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.4645, allocations: 3.984 kB / 0.5465 GB, free: 8.844 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4645, allocations: 0 / 0.5465 GB, free: 8.844 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001919/0.4647, allocations: 0 / 0.5465 GB, free: 8.844 MB / 398.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.01198/0.4767, allocations: 5.514 MB / 0.5519 GB, free: 3.363 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.4767, allocations: 8.031 kB / 0.5519 GB, free: 3.355 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0108/0.4876, allocations: 2.47 MB / 0.5543 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007496/0.4951, allocations: 3.373 MB / 0.5576 GB, free: 13.49 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001901/0.4953, allocations: 235.5 kB / 0.5578 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001075/0.4964, allocations: 343 kB / 0.5581 GB, free: 13 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01982/0.5162, allocations: 10.87 MB / 0.5687 GB, free: 1.5 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002283/0.5165, allocations: 55.44 kB / 0.5688 GB, free: 1.445 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009259/0.5174, allocations: 155 kB / 0.5689 GB, free: 1.332 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003151/0.5206, allocations: 1.997 MB / 0.5709 GB, free: 15.34 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01938/0.54, allocations: 9.452 MB / 0.5801 GB, free: 5.875 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05324/0.5933, allocations: 41.23 MB / 0.6204 GB, free: 11.63 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01131/0.6046, allocations: 4.267 MB / 0.6246 GB, free: 7.223 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00359/0.6083, allocations: 1.929 MB / 0.6264 GB, free: 5.285 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01349/0.6218, allocations: 7.609 MB / 0.6339 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.385e-05/0.6219, allocations: 55.48 kB / 0.6339 GB, free: 13.28 MB / 494.1 MB Notification: Performance of pre-optimization done (n=180): time 4.699e-06/0.6219, allocations: 0 / 0.6339 GB, free: 13.28 MB / 494.1 MB Notification: Performance of matching and sorting (n=236): time 0.1604/0.7824, allocations: 40.93 MB / 0.6739 GB, free: 4.344 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.7825, allocations: 201.9 kB / 0.6741 GB, free: 4.102 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008277/0.7908, allocations: 4.309 MB / 0.6783 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006269/0.7915, allocations: 61.7 kB / 0.6783 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002724/0.7942, allocations: 3.171 MB / 0.6814 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001421/0.7956, allocations: 0.8792 MB / 0.6823 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003672/0.7993, allocations: 1.348 MB / 0.6836 GB, free: 10.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001019/0.7994, allocations: 301.1 kB / 0.6839 GB, free: 10 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005553/0.805, allocations: 3.628 MB / 0.6874 GB, free: 6.371 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008221/0.8132, allocations: 7.298 MB / 0.6946 GB, free: 13.27 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2652/1.079, allocations: 11.63 MB / 0.7059 GB, free: 199 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001505/1.079, allocations: 36.59 kB / 0.706 GB, free: 199 MB / 0.545 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.0382/1.117, allocations: 16.21 MB / 0.7218 GB, free: 195.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.736e-05/1.117, allocations: 59.84 kB / 0.7218 GB, free: 195.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001681/1.117, allocations: 127.5 kB / 0.722 GB, free: 195.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02177/1.139, allocations: 6.222 MB / 0.728 GB, free: 194.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004862/1.144, allocations: 1.497 MB / 0.7295 GB, free: 193.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02922/1.173, allocations: 26.14 MB / 0.755 GB, free: 175 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005779/1.179, allocations: 414.5 kB / 0.7554 GB, free: 174.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001145/1.18, allocations: 387.9 kB / 0.7558 GB, free: 174.2 MB / 0.545 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.003628/1.184, allocations: 2.219 MB / 0.758 GB, free: 172.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000904/1.185, allocations: 390.9 kB / 0.7583 GB, free: 171.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0248/1.21, allocations: 11.29 MB / 0.7694 GB, free: 160.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.616e-05/1.21, allocations: 24 kB / 0.7694 GB, free: 160.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.377e-05/1.21, allocations: 19.56 kB / 0.7694 GB, free: 160.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.711e-05/1.21, allocations: 11.95 kB / 0.7694 GB, free: 160.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03809/1.248, allocations: 20.71 MB / 0.7896 GB, free: 139.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.708e-05/1.248, allocations: 4.594 kB / 0.7897 GB, free: 139.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001981/1.25, allocations: 383.4 kB / 0.79 GB, free: 139.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01863/1.269, allocations: 5.308 MB / 0.7952 GB, free: 133.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005856/1.269, allocations: 47.73 kB / 0.7952 GB, free: 133.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02356/1.293, allocations: 21.19 MB / 0.8159 GB, free: 112.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/1.293, allocations: 8 kB / 0.816 GB, free: 112.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02801/1.321, allocations: 14.59 MB / 0.8302 GB, free: 97.71 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001259/1.322, allocations: 453 kB / 0.8306 GB, free: 97.24 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001073/1.323, allocations: 51.81 kB / 0.8307 GB, free: 97.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002664/1.326, allocations: 179.7 kB / 0.8309 GB, free: 97.02 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007918/1.327, allocations: 149 kB / 0.831 GB, free: 96.88 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002349/1.327, allocations: 75.92 kB / 0.8311 GB, free: 96.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003882/1.331, allocations: 2.701 MB / 0.8337 GB, free: 94.09 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.41e-07/1.331, allocations: 0 / 0.8337 GB, free: 94.09 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006558/1.337, allocations: 1.37 MB / 0.835 GB, free: 92.73 MB / 0.545 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.0006401/1.338, allocations: 188.5 kB / 0.8352 GB, free: 92.54 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0105/1.349, allocations: 8.316 MB / 0.8433 GB, free: 84.23 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/1.349, allocations: 0 / 0.8433 GB, free: 84.23 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003845/1.352, allocations: 3.216 MB / 0.8465 GB, free: 81.01 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003254/1.356, allocations: 489.9 kB / 0.847 GB, free: 80.54 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0186/1.374, allocations: 14.45 MB / 0.8611 GB, free: 66.02 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003005/1.377, allocations: 3.48 MB / 0.8645 GB, free: 62.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001388/1.379, allocations: 303.4 kB / 0.8648 GB, free: 62.21 MB / 0.545 GB Notification: Performance of SimCode: time 1.152e-06/1.379, allocations: 8 kB / 0.8648 GB, free: 62.2 MB / 0.545 GB Notification: Performance of Templates: time 0.3756/1.754, allocations: 109.6 MB / 0.9718 GB, free: 146.8 MB / 0.545 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/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_4.0.0_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches