Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001348/0.001348, allocations: 207.3 kB / 17.99 MB, free: 3.773 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 226.7 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001123/0.001123, allocations: 97.3 kB / 296.7 MB, free: 6.469 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3585/0.3585, allocations: 44.82 MB / 392.7 MB, free: 34.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001186, allocations: 59.91 kB / 465.5 MB, free: 12.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2805/0.2817, allocations: 62.01 MB / 0.5151 GB, free: 37.7 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.03446/0.3162, allocations: 47.01 MB / 0.5611 GB, free: 4.062 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0244/0.3406, allocations: 10.16 MB / 0.571 GB, free: 13.29 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01226/0.3529, allocations: 203.8 kB / 0.5712 GB, free: 13.26 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006261/0.3592, allocations: 2.715 MB / 0.5738 GB, free: 12 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006006/0.3653, allocations: 1.872 MB / 0.5756 GB, free: 10.84 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002516/0.3678, allocations: 0.8408 MB / 0.5765 GB, free: 10.3 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01037/0.3782, allocations: 8.061 MB / 0.5843 GB, free: 2.551 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004991/0.3833, allocations: 3.304 MB / 0.5876 GB, free: 15.2 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003237/0.3865, allocations: 1.541 MB / 0.5891 GB, free: 13.65 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004228/0.3908, allocations: 2.668 MB / 0.5917 GB, free: 10.98 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001337/0.3922, allocations: 268 kB / 0.5919 GB, free: 10.71 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003421/0.3956, allocations: 1.353 MB / 0.5933 GB, free: 9.359 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00301/0.3987, allocations: 2.1 MB / 0.5953 GB, free: 7.254 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00474/0.4034, allocations: 2.338 MB / 0.5976 GB, free: 4.902 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009839/0.4133, allocations: 7.555 MB / 0.605 GB, free: 13.32 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.176e-06/0.4133, allocations: 0 / 0.605 GB, free: 13.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4133, allocations: 0 / 0.605 GB, free: 13.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002804/0.4136, allocations: 0 / 0.605 GB, free: 13.32 MB / 426.7 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.01419/0.4278, allocations: 5.525 MB / 0.6104 GB, free: 7.723 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.4279, allocations: 12.03 kB / 0.6104 GB, free: 7.711 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01197/0.4399, allocations: 2.467 MB / 0.6128 GB, free: 5.234 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0079/0.4478, allocations: 3.309 MB / 0.616 GB, free: 1.867 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000198/0.4481, allocations: 238.5 kB / 0.6162 GB, free: 1.633 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001108/0.4492, allocations: 339.6 kB / 0.6166 GB, free: 1.301 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0218/0.471, allocations: 10.88 MB / 0.6272 GB, free: 5.68 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001817/0.4712, allocations: 47.59 kB / 0.6272 GB, free: 5.633 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005599/0.4718, allocations: 155.8 kB / 0.6274 GB, free: 5.48 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003208/0.475, allocations: 2.006 MB / 0.6293 GB, free: 3.473 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02112/0.4961, allocations: 9.444 MB / 0.6386 GB, free: 10 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2918/0.788, allocations: 41.23 MB / 0.6788 GB, free: 122 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01084/0.7989, allocations: 4.261 MB / 0.683 GB, free: 121.4 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002199/0.8011, allocations: 1.928 MB / 0.6849 GB, free: 121.3 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01052/0.8117, allocations: 7.626 MB / 0.6923 GB, free: 117.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.118e-05/0.8117, allocations: 55.09 kB / 0.6924 GB, free: 117.2 MB / 490.7 MB Notification: Performance of pre-optimization done (n=180): time 4.087e-06/0.8118, allocations: 2.906 kB / 0.6924 GB, free: 117.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=236): time 0.1584/0.9702, allocations: 40.91 MB / 0.7323 GB, free: 102.4 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.9704, allocations: 209.9 kB / 0.7325 GB, free: 102.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005427/0.9758, allocations: 4.313 MB / 0.7367 GB, free: 97.84 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007174/0.9765, allocations: 58.56 kB / 0.7368 GB, free: 97.78 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001773/0.9783, allocations: 3.167 MB / 0.7399 GB, free: 94.62 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001108/0.9794, allocations: 0.8875 MB / 0.7407 GB, free: 93.74 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001748/0.9812, allocations: 1.352 MB / 0.7421 GB, free: 92.38 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.417e-05/0.9813, allocations: 301.1 kB / 0.7424 GB, free: 92.08 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003868/0.9851, allocations: 3.632 MB / 0.7459 GB, free: 88.44 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005075/0.9902, allocations: 7.291 MB / 0.753 GB, free: 79.4 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009797/1, allocations: 11.62 MB / 0.7644 GB, free: 66.05 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.388e-05/1, allocations: 36 kB / 0.7644 GB, free: 66.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03659/1.037, allocations: 16.22 MB / 0.7802 GB, free: 49.78 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001425/1.037, allocations: 60 kB / 0.7803 GB, free: 49.72 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002267/1.037, allocations: 127.9 kB / 0.7804 GB, free: 49.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02391/1.061, allocations: 6.221 MB / 0.7865 GB, free: 43.36 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0059/1.067, allocations: 1.489 MB / 0.7879 GB, free: 41.87 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03078/1.098, allocations: 26.14 MB / 0.8135 GB, free: 15.46 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006445/1.104, allocations: 403.4 kB / 0.8139 GB, free: 15.07 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001412/1.106, allocations: 384 kB / 0.8142 GB, free: 14.69 MB / 490.7 MB 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.004735/1.111, allocations: 2.227 MB / 0.8164 GB, free: 12.45 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001175/1.112, allocations: 394.9 kB / 0.8168 GB, free: 12.06 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03004/1.142, allocations: 11.3 MB / 0.8278 GB, free: 0.7344 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.888e-05/1.142, allocations: 27.44 kB / 0.8278 GB, free: 0.7109 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.139e-05/1.142, allocations: 8 kB / 0.8278 GB, free: 0.7031 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.473e-05/1.142, allocations: 11.97 kB / 0.8279 GB, free: 0.6914 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05382/1.196, allocations: 20.69 MB / 0.8481 GB, free: 11.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.102e-05/1.196, allocations: 8 kB / 0.8481 GB, free: 11.54 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002289/1.198, allocations: 392 kB / 0.8484 GB, free: 11.16 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02176/1.22, allocations: 5.304 MB / 0.8536 GB, free: 5.848 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006385/1.221, allocations: 44 kB / 0.8537 GB, free: 5.805 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3002/1.521, allocations: 21.22 MB / 0.8744 GB, free: 161.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.078e-05/1.521, allocations: 11.06 kB / 0.8744 GB, free: 161.7 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3261/1.847, allocations: 146.2 MB / 1.017 GB, free: 52.52 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001191/1.848, allocations: 449.5 kB / 1.018 GB, free: 52.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007111/1.849, allocations: 43.94 kB / 1.018 GB, free: 52.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002426/1.852, allocations: 183.7 kB / 1.018 GB, free: 51.85 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007001/1.852, allocations: 160.8 kB / 1.018 GB, free: 51.69 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002026/1.852, allocations: 63.83 kB / 1.018 GB, free: 51.63 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003522/1.856, allocations: 2.713 MB / 1.021 GB, free: 48.91 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.71e-07/1.856, allocations: 0 / 1.021 GB, free: 48.91 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00816/1.864, allocations: 1.971 MB / 1.023 GB, free: 46.95 MB / 0.5261 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.0007182/1.865, allocations: 181.8 kB / 1.023 GB, free: 46.77 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01083/1.876, allocations: 8.312 MB / 1.031 GB, free: 38.48 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.818e-06/1.876, allocations: 256 / 1.031 GB, free: 38.48 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003915/1.88, allocations: 3.209 MB / 1.034 GB, free: 35.25 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003255/1.883, allocations: 0.4888 MB / 1.035 GB, free: 34.79 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02021/1.903, allocations: 15.91 MB / 1.05 GB, free: 18.77 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004178/1.908, allocations: 3.59 MB / 1.054 GB, free: 15.15 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.005026/1.913, allocations: 2.03 MB / 1.056 GB, free: 13.12 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001392/1.914, allocations: 267.4 kB / 1.056 GB, free: 12.86 MB / 0.5261 GB Notification: Performance of SimCode: time 9.31e-07/1.914, allocations: 0 / 1.056 GB, free: 12.86 MB / 0.5261 GB Notification: Performance of Templates: time 0.3789/2.293, allocations: 106.7 MB / 1.16 GB, free: 114.9 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/SphericalSpherical/SphericalSpherical.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches