Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_3.2.3_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.001106/0.001106, allocations: 104.5 kB / 16.4 MB, free: 6.496 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.001229/0.001229, allocations: 189.5 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.55/1.55, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2528/0.2528, allocations: 43.52 MB / 314.1 MB, free: 456 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 59.91 kB / 441.8 MB, free: 5.684 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1377, allocations: 57.8 MB / 499.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01544/0.1532, allocations: 12.11 MB / 0.4997 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01182/0.165, allocations: 4.299 MB / 0.5039 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00365/0.1687, allocations: 75.81 kB / 0.504 GB, free: 11.26 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006119/0.175, allocations: 2.745 MB / 0.5066 GB, free: 8.508 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006674/0.1817, allocations: 2.015 MB / 0.5086 GB, free: 6.484 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002342/0.1841, allocations: 0.9203 MB / 0.5095 GB, free: 5.562 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008928/0.193, allocations: 5.244 MB / 0.5146 GB, free: 312 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005696/0.1987, allocations: 3.378 MB / 0.5179 GB, free: 12.88 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00422/0.203, allocations: 1.733 MB / 0.5196 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004771/0.2078, allocations: 2.532 MB / 0.5221 GB, free: 8.598 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001733/0.2095, allocations: 388 kB / 0.5225 GB, free: 8.219 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004165/0.2137, allocations: 1.401 MB / 0.5238 GB, free: 6.816 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004245/0.218, allocations: 2.225 MB / 0.526 GB, free: 4.586 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006098/0.2241, allocations: 2.451 MB / 0.5284 GB, free: 2.121 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4027/0.6268, allocations: 7.907 MB / 0.5361 GB, free: 16.45 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.507e-05/0.6269, allocations: 6.406 kB / 0.5361 GB, free: 16.45 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.6269, allocations: 0 / 0.5361 GB, free: 16.45 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003786/0.6273, allocations: 1.25 kB / 0.5361 GB, free: 16.45 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.02322/0.6506, allocations: 5.521 MB / 0.5415 GB, free: 14.37 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.29e-05/0.6507, allocations: 13.45 kB / 0.5415 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01315/0.6638, allocations: 2.478 MB / 0.544 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01241/0.6763, allocations: 3.523 MB / 0.5474 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003691/0.6767, allocations: 241.6 kB / 0.5476 GB, free: 13.42 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002707/0.6794, allocations: 336.1 kB / 0.5479 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02935/0.7087, allocations: 10.88 MB / 0.5586 GB, free: 9.684 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001777/0.709, allocations: 54.42 kB / 0.5586 GB, free: 9.676 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005323/0.7095, allocations: 151.1 kB / 0.5588 GB, free: 9.609 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003663/0.7132, allocations: 2 MB / 0.5607 GB, free: 9.145 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02048/0.7337, allocations: 9.439 MB / 0.5699 GB, free: 4.922 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06316/0.7969, allocations: 41.06 MB / 0.61 GB, free: 11.79 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01196/0.8089, allocations: 4.28 MB / 0.6142 GB, free: 7.391 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003161/0.8121, allocations: 1.923 MB / 0.6161 GB, free: 5.461 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.013/0.8252, allocations: 7.612 MB / 0.6235 GB, free: 13.54 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.586e-05/0.8252, allocations: 61 kB / 0.6236 GB, free: 13.47 MB / 478.1 MB Notification: Performance of pre-optimization done (n=180): time 4.729e-06/0.8253, allocations: 0 / 0.6236 GB, free: 13.47 MB / 478.1 MB Notification: Performance of matching and sorting (n=236): time 0.172/0.9972, allocations: 40.97 MB / 0.6636 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001622/0.9974, allocations: 205.4 kB / 0.6638 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00864/1.006, allocations: 4.338 MB / 0.668 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0009576/1.007, allocations: 64.59 kB / 0.6681 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003028/1.01, allocations: 3.164 MB / 0.6712 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.00205/1.012, allocations: 0.8824 MB / 0.672 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002647/1.015, allocations: 1.355 MB / 0.6734 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001763/1.015, allocations: 313 kB / 0.6737 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005386/1.02, allocations: 3.624 MB / 0.6772 GB, free: 6.602 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008359/1.029, allocations: 7.296 MB / 0.6843 GB, free: 13.57 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01579/1.045, allocations: 11.62 MB / 0.6957 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001191/1.045, allocations: 36 kB / 0.6957 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.04612/1.091, allocations: 16.2 MB / 0.7115 GB, free: 0.75 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.000103/1.091, allocations: 60.94 kB / 0.7116 GB, free: 0.6914 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001618/1.091, allocations: 128 kB / 0.7117 GB, free: 0.5664 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02655/1.118, allocations: 6.23 MB / 0.7178 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00641/1.124, allocations: 1.497 MB / 0.7193 GB, free: 8.824 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04341/1.168, allocations: 27.62 MB / 0.7462 GB, free: 12.93 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007366/1.175, allocations: 415.3 kB / 0.7466 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001513/1.177, allocations: 388 kB / 0.747 GB, free: 12.14 MB / 0.5919 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.005966/1.183, allocations: 2.224 MB / 0.7492 GB, free: 9.902 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001189/1.184, allocations: 390.9 kB / 0.7495 GB, free: 9.516 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4262/1.61, allocations: 11.3 MB / 0.7606 GB, free: 212 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.624e-05/1.61, allocations: 25.34 kB / 0.7606 GB, free: 212 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.486e-05/1.61, allocations: 10.38 kB / 0.7606 GB, free: 212 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.959e-05/1.61, allocations: 13.67 kB / 0.7606 GB, free: 212 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05564/1.666, allocations: 20.66 MB / 0.7808 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-05/1.666, allocations: 3.906 kB / 0.7808 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002191/1.668, allocations: 390.5 kB / 0.7812 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02046/1.689, allocations: 5.308 MB / 0.7864 GB, free: 201.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006776/1.689, allocations: 46.7 kB / 0.7864 GB, free: 201.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0255/1.715, allocations: 22.7 MB / 0.8086 GB, free: 186 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/1.715, allocations: 13.53 kB / 0.8086 GB, free: 186 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03122/1.746, allocations: 14.6 MB / 0.8228 GB, free: 171.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00348/1.75, allocations: 0.9845 MB / 0.8238 GB, free: 170.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007396/1.75, allocations: 44 kB / 0.8238 GB, free: 170.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002391/1.753, allocations: 182.1 kB / 0.824 GB, free: 170.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006641/1.754, allocations: 152.9 kB / 0.8242 GB, free: 170.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002168/1.754, allocations: 64 kB / 0.8242 GB, free: 170.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.003875/1.758, allocations: 2.729 MB / 0.8269 GB, free: 167.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.1e-07/1.758, allocations: 0 / 0.8269 GB, free: 167.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007038/1.765, allocations: 1.367 MB / 0.8282 GB, free: 166.2 MB / 0.5919 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.000663/1.765, allocations: 189.1 kB / 0.8284 GB, free: 166.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0115/1.777, allocations: 8.339 MB / 0.8365 GB, free: 157.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/1.777, allocations: 4 kB / 0.8366 GB, free: 157.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004041/1.781, allocations: 3.216 MB / 0.8397 GB, free: 154.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003878/1.785, allocations: 0.5063 MB / 0.8402 GB, free: 154.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02035/1.805, allocations: 11.86 MB / 0.8518 GB, free: 142.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00338/1.809, allocations: 3.518 MB / 0.8552 GB, free: 138.7 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004222/1.813, allocations: 1.956 MB / 0.8571 GB, free: 136.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009189/1.814, allocations: 267.4 kB / 0.8574 GB, free: 136.5 MB / 0.5919 GB Notification: Performance of SimCode: time 1.032e-06/1.814, allocations: 0 / 0.8574 GB, free: 136.5 MB / 0.5919 GB Notification: Performance of Templates: time 0.09776/1.912, allocations: 67.63 MB / 0.9234 GB, free: 68.88 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches