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.001606/0.001606, allocations: 110.8 kB / 17.33 MB, free: 6.023 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.001974/0.001974, allocations: 193.3 kB / 18.25 MB, free: 5.117 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.471/1.471, allocations: 222.9 MB / 241.9 MB, free: 13.73 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.2096/0.2096, allocations: 44.19 MB / 336.2 MB, free: 2.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 63.12 kB / 407.9 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1336, allocations: 60.82 MB / 468.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.331/0.4646, allocations: 46.99 MB / 0.5036 GB, free: 10.89 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0319/0.4966, allocations: 10.03 MB / 0.5134 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01351/0.5101, allocations: 204.9 kB / 0.5136 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006254/0.5164, allocations: 2.635 MB / 0.5162 GB, free: 9.586 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008873/0.5254, allocations: 1.875 MB / 0.518 GB, free: 8.961 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002503/0.5279, allocations: 0.8562 MB / 0.5188 GB, free: 8.668 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00999/0.5379, allocations: 5.964 MB / 0.5247 GB, free: 7.102 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005242/0.5432, allocations: 3.553 MB / 0.5281 GB, free: 5.219 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003957/0.5472, allocations: 1.759 MB / 0.5299 GB, free: 4.336 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004126/0.5514, allocations: 2.79 MB / 0.5326 GB, free: 2.867 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00126/0.5527, allocations: 387.1 kB / 0.533 GB, free: 2.863 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003185/0.5558, allocations: 1.432 MB / 0.5344 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002993/0.5589, allocations: 2.219 MB / 0.5365 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004868/0.5637, allocations: 2.467 MB / 0.5389 GB, free: 15.22 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01248/0.5762, allocations: 7.714 MB / 0.5465 GB, free: 8.656 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.476e-06/0.5763, allocations: 0 / 0.5465 GB, free: 8.656 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5763, allocations: 0 / 0.5465 GB, free: 8.656 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003157/0.5766, allocations: 3.984 kB / 0.5465 GB, free: 8.652 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.0173/0.5939, allocations: 5.509 MB / 0.5518 GB, free: 3.172 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.183e-05/0.594, allocations: 12.03 kB / 0.5519 GB, free: 3.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01196/0.606, allocations: 2.469 MB / 0.5543 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007699/0.6138, allocations: 3.366 MB / 0.5576 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000227/0.614, allocations: 238.4 kB / 0.5578 GB, free: 13.1 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001208/0.6152, allocations: 336.1 kB / 0.5581 GB, free: 12.81 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02036/0.6356, allocations: 10.88 MB / 0.5687 GB, free: 1.305 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001401/0.6358, allocations: 51.5 kB / 0.5688 GB, free: 1.254 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004575/0.6363, allocations: 155.1 kB / 0.5689 GB, free: 1.141 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003124/0.6394, allocations: 1.997 MB / 0.5709 GB, free: 15.15 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01858/0.658, allocations: 9.444 MB / 0.5801 GB, free: 5.691 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05401/0.712, allocations: 41.22 MB / 0.6203 GB, free: 11.45 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01155/0.7236, allocations: 4.281 MB / 0.6245 GB, free: 7.031 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003381/0.7271, allocations: 1.924 MB / 0.6264 GB, free: 5.094 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01392/0.741, allocations: 7.612 MB / 0.6338 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.03e-05/0.7411, allocations: 51.55 kB / 0.6339 GB, free: 13.09 MB / 494.1 MB Notification: Performance of pre-optimization done (n=180): time 5.129e-06/0.7411, allocations: 0 / 0.6339 GB, free: 13.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=236): time 0.1721/0.9132, allocations: 40.92 MB / 0.6739 GB, free: 4.16 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001824/0.9135, allocations: 209.9 kB / 0.6741 GB, free: 3.91 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01139/0.9249, allocations: 4.305 MB / 0.6783 GB, free: 15.58 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008423/0.9258, allocations: 61.7 kB / 0.6783 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003508/0.9293, allocations: 3.173 MB / 0.6814 GB, free: 12.34 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001914/0.9313, allocations: 0.8814 MB / 0.6823 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004028/0.9353, allocations: 1.351 MB / 0.6836 GB, free: 10.11 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000104/0.9355, allocations: 305.1 kB / 0.6839 GB, free: 9.809 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006017/0.9415, allocations: 3.62 MB / 0.6874 GB, free: 6.184 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01234/0.9539, allocations: 7.306 MB / 0.6946 GB, free: 13.07 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2542/1.208, allocations: 11.62 MB / 0.7059 GB, free: 199.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001441/1.208, allocations: 36.34 kB / 0.7059 GB, free: 199.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03959/1.248, allocations: 16.21 MB / 0.7218 GB, free: 195.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001144/1.248, allocations: 60.12 kB / 0.7218 GB, free: 195.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000177/1.248, allocations: 127.4 kB / 0.722 GB, free: 195.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02222/1.27, allocations: 6.22 MB / 0.728 GB, free: 194.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004787/1.275, allocations: 1.498 MB / 0.7295 GB, free: 193.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03157/1.307, allocations: 27.64 MB / 0.7565 GB, free: 173.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007148/1.314, allocations: 411.1 kB / 0.7569 GB, free: 173.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001126/1.315, allocations: 384 kB / 0.7572 GB, free: 172.7 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.004384/1.32, allocations: 2.221 MB / 0.7594 GB, free: 170.6 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001359/1.321, allocations: 394.9 kB / 0.7598 GB, free: 170.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02567/1.347, allocations: 11.29 MB / 0.7708 GB, free: 159.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.057e-05/1.347, allocations: 24 kB / 0.7708 GB, free: 159.1 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.926e-05/1.347, allocations: 8 kB / 0.7708 GB, free: 159.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.67e-05/1.347, allocations: 15.95 kB / 0.7709 GB, free: 159 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03746/1.384, allocations: 20.7 MB / 0.7911 GB, free: 138 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.33e-05/1.384, allocations: 8.578 kB / 0.7911 GB, free: 138 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00198/1.386, allocations: 383.4 kB / 0.7914 GB, free: 137.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01808/1.404, allocations: 5.312 MB / 0.7966 GB, free: 132.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005286/1.405, allocations: 43.98 kB / 0.7967 GB, free: 132.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02347/1.429, allocations: 22.69 MB / 0.8188 GB, free: 109.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/1.429, allocations: 8 kB / 0.8188 GB, free: 109.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02707/1.456, allocations: 14.61 MB / 0.8331 GB, free: 94.71 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001244/1.457, allocations: 447.9 kB / 0.8335 GB, free: 94.25 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008708/1.458, allocations: 41.66 kB / 0.8336 GB, free: 94.21 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002316/1.46, allocations: 182.6 kB / 0.8338 GB, free: 94.03 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006922/1.461, allocations: 161 kB / 0.8339 GB, free: 93.88 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002062/1.461, allocations: 60 kB / 0.834 GB, free: 93.82 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003482/1.465, allocations: 2.709 MB / 0.8366 GB, free: 91.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/1.465, allocations: 0 / 0.8366 GB, free: 91.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006247/1.471, allocations: 1.372 MB / 0.8379 GB, free: 89.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.0005578/1.471, allocations: 187.7 kB / 0.8381 GB, free: 89.55 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01351/1.485, allocations: 9.723 MB / 0.8476 GB, free: 79.86 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.581e-05/1.485, allocations: 4 kB / 0.8476 GB, free: 79.86 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003938/1.489, allocations: 3.217 MB / 0.8508 GB, free: 76.63 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003334/1.492, allocations: 0.5007 MB / 0.8513 GB, free: 76.14 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01818/1.51, allocations: 14.05 MB / 0.865 GB, free: 62.01 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00309/1.514, allocations: 3.507 MB / 0.8684 GB, free: 58.47 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00452/1.518, allocations: 1.96 MB / 0.8703 GB, free: 56.51 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001057/1.519, allocations: 267.3 kB / 0.8706 GB, free: 56.25 MB / 0.545 GB Notification: Performance of SimCode: time 1.323e-06/1.519, allocations: 0 / 0.8706 GB, free: 56.25 MB / 0.545 GB Notification: Performance of Templates: time 0.3491/1.868, allocations: 70.09 MB / 0.939 GB, free: 186.6 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/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