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.001286/0.001286, allocations: 111.1 kB / 17.78 MB, free: 5.281 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.001607/0.001607, allocations: 180.9 kB / 18.71 MB, free: 4.363 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.389/1.389, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2129/0.2129, allocations: 44.18 MB / 336.7 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.001411, allocations: 67.91 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3783/0.3797, allocations: 60.81 MB / 0.5189 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01291/0.3927, allocations: 12.05 MB / 0.5307 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01053/0.4033, allocations: 4.296 MB / 0.5349 GB, free: 7.703 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003067/0.4064, allocations: 77.53 kB / 0.5349 GB, free: 7.688 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005381/0.4118, allocations: 2.731 MB / 0.5376 GB, free: 5.844 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005792/0.4177, allocations: 2.015 MB / 0.5396 GB, free: 4.406 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002353/0.4201, allocations: 0.9118 MB / 0.5405 GB, free: 3.797 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.009509/0.4296, allocations: 5.574 MB / 0.5459 GB, free: 384 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005642/0.4353, allocations: 3.367 MB / 0.5492 GB, free: 12.96 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003924/0.4392, allocations: 1.709 MB / 0.5509 GB, free: 11.25 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004761/0.444, allocations: 2.52 MB / 0.5533 GB, free: 8.719 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002041/0.4461, allocations: 388 kB / 0.5537 GB, free: 8.34 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004188/0.4503, allocations: 1.412 MB / 0.5551 GB, free: 6.926 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003667/0.454, allocations: 2.182 MB / 0.5572 GB, free: 4.738 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004308/0.4584, allocations: 2.451 MB / 0.5596 GB, free: 2.273 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01057/0.4689, allocations: 7.93 MB / 0.5673 GB, free: 10.31 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.469, allocations: 0 / 0.5673 GB, free: 10.31 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.469, allocations: 0 / 0.5673 GB, free: 10.31 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002218/0.4692, allocations: 0 / 0.5673 GB, free: 10.31 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: 1538 * Number of variables: 1538 Notification: Performance of Generate backend data structure: time 0.01122/0.4805, allocations: 5.657 MB / 0.5729 GB, free: 4.57 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.4805, allocations: 12.03 kB / 0.5729 GB, free: 4.559 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0106/0.4911, allocations: 2.498 MB / 0.5753 GB, free: 2.055 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007246/0.4984, allocations: 3.443 MB / 0.5787 GB, free: 14.55 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002199/0.4987, allocations: 234.5 kB / 0.5789 GB, free: 14.32 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001125/0.4998, allocations: 335.7 kB / 0.5792 GB, free: 13.99 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02292/0.5227, allocations: 10.88 MB / 0.5898 GB, free: 2.375 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002478/0.523, allocations: 59.52 kB / 0.5899 GB, free: 2.316 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001352/0.5244, allocations: 151.9 kB / 0.59 GB, free: 2.168 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003585/0.528, allocations: 2.002 MB / 0.592 GB, free: 168 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02331/0.5513, allocations: 9.444 MB / 0.6012 GB, free: 6.699 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06043/0.6118, allocations: 41.12 MB / 0.6414 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01156/0.6235, allocations: 4.261 MB / 0.6455 GB, free: 7.941 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002838/0.6263, allocations: 1.935 MB / 0.6474 GB, free: 6 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01175/0.6381, allocations: 7.62 MB / 0.6549 GB, free: 14.01 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.025e-05/0.6382, allocations: 51.5 kB / 0.6549 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=180): time 4.449e-06/0.6382, allocations: 0 / 0.6549 GB, free: 13.95 MB / 0.5137 GB Notification: Performance of matching and sorting (n=236): time 0.1672/0.8054, allocations: 41.17 MB / 0.6951 GB, free: 4.703 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001296/0.8056, allocations: 201.9 kB / 0.6953 GB, free: 4.465 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008535/0.8142, allocations: 4.322 MB / 0.6995 GB, free: 120 kB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.000631/0.8148, allocations: 65.64 kB / 0.6996 GB, free: 48 kB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003101/0.8179, allocations: 3.291 MB / 0.7028 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001747/0.8197, allocations: 0.9225 MB / 0.7037 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003337/0.8231, allocations: 1.361 MB / 0.705 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.8232, allocations: 313.1 kB / 0.7053 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005359/0.8285, allocations: 3.62 MB / 0.7089 GB, free: 6.488 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.298/1.127, allocations: 7.295 MB / 0.716 GB, free: 165 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01463/1.141, allocations: 11.63 MB / 0.7274 GB, free: 157.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002448/1.142, allocations: 36.47 kB / 0.7274 GB, free: 157.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.04129/1.183, allocations: 16.21 MB / 0.7432 GB, free: 152.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.273e-05/1.183, allocations: 62.72 kB / 0.7433 GB, free: 152.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001197/1.183, allocations: 125.6 kB / 0.7434 GB, free: 152.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02198/1.205, allocations: 6.224 MB / 0.7495 GB, free: 148.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005425/1.211, allocations: 1.492 MB / 0.7509 GB, free: 148.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02911/1.24, allocations: 27.64 MB / 0.7779 GB, free: 121.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006503/1.246, allocations: 415.1 kB / 0.7783 GB, free: 121 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001287/1.248, allocations: 388 kB / 0.7787 GB, free: 120.6 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 (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.003798/1.251, allocations: 2.214 MB / 0.7809 GB, free: 118.4 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009801/1.252, allocations: 417.2 kB / 0.7813 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02597/1.278, allocations: 11.29 MB / 0.7923 GB, free: 106.9 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.716e-05/1.278, allocations: 31.75 kB / 0.7923 GB, free: 106.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.349e-05/1.278, allocations: 14.62 kB / 0.7923 GB, free: 106.9 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.684e-05/1.279, allocations: 11.95 kB / 0.7923 GB, free: 106.9 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0422/1.321, allocations: 20.66 MB / 0.8125 GB, free: 85.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.123e-05/1.321, allocations: 4 kB / 0.8125 GB, free: 85.86 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00205/1.323, allocations: 387.5 kB / 0.8129 GB, free: 85.48 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01955/1.342, allocations: 5.304 MB / 0.8181 GB, free: 80.17 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006075/1.343, allocations: 47.98 kB / 0.8181 GB, free: 80.12 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02537/1.368, allocations: 22.7 MB / 0.8403 GB, free: 57.22 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/1.369, allocations: 8 kB / 0.8403 GB, free: 57.21 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02917/1.398, allocations: 14.63 MB / 0.8546 GB, free: 42.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001255/1.399, allocations: 471 kB / 0.855 GB, free: 42.03 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001406/1.4, allocations: 44 kB / 0.8551 GB, free: 41.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003365/1.404, allocations: 179.7 kB / 0.8552 GB, free: 41.81 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001151/1.405, allocations: 161 kB / 0.8554 GB, free: 41.65 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005749/1.406, allocations: 60 kB / 0.8554 GB, free: 41.59 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00476/1.41, allocations: 2.709 MB / 0.8581 GB, free: 38.88 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.844e-06/1.41, allocations: 0 / 0.8581 GB, free: 38.88 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007494/1.418, allocations: 1.37 MB / 0.8594 GB, free: 37.52 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.0006144/1.419, allocations: 196.4 kB / 0.8596 GB, free: 37.33 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01065/1.429, allocations: 8.349 MB / 0.8678 GB, free: 29 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/1.429, allocations: 0 / 0.8678 GB, free: 29 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003911/1.433, allocations: 3.224 MB / 0.8709 GB, free: 25.76 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003633/1.437, allocations: 0.4988 MB / 0.8714 GB, free: 25.27 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01776/1.455, allocations: 11.97 MB / 0.8831 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003289/1.458, allocations: 3.507 MB / 0.8865 GB, free: 9.668 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003894/1.462, allocations: 1.956 MB / 0.8884 GB, free: 7.707 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008998/1.463, allocations: 271.4 kB / 0.8887 GB, free: 7.441 MB / 0.5606 GB Notification: Performance of SimCode: time 6.21e-07/1.463, allocations: 1.094 kB / 0.8887 GB, free: 7.441 MB / 0.5606 GB Notification: Performance of Templates: time 0.3701/1.833, allocations: 66.78 MB / 0.9539 GB, free: 201 MB / 0.6075 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","/var/lib/jenkins/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