Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001601/0.0016, allocations: 179.2 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.473/1.473, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009528/0.0009527, allocations: 95.78 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4019/0.4019, allocations: 43.56 MB / 362.7 MB, free: 52.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004403/0.0004404, allocations: 16 kB / 431.4 MB, free: 6.156 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1508/0.1513, allocations: 58.85 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.3335/0.4849, allocations: 42.62 MB / 0.5204 GB, free: 20.35 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02716/0.5121, allocations: 9.606 MB / 0.5297 GB, free: 13.84 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01174/0.5238, allocations: 209.7 kB / 0.5299 GB, free: 13.8 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007871/0.5317, allocations: 2.166 MB / 0.5321 GB, free: 13.04 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01935/0.5511, allocations: 6.622 MB / 0.5385 GB, free: 10.27 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003449/0.5546, allocations: 0.7778 MB / 0.5393 GB, free: 9.984 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0444/0.599, allocations: 35.11 MB / 0.5736 GB, free: 5.387 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007939/0.607, allocations: 4.26 MB / 0.5777 GB, free: 1.113 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003723/0.6107, allocations: 1.444 MB / 0.5791 GB, free: 15.66 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004298/0.6151, allocations: 2.415 MB / 0.5815 GB, free: 13.24 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001412/0.6165, allocations: 176 kB / 0.5817 GB, free: 13.07 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003334/0.6199, allocations: 1.084 MB / 0.5827 GB, free: 11.98 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003303/0.6232, allocations: 1.952 MB / 0.5846 GB, free: 10.03 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002172/0.6254, allocations: 0.8895 MB / 0.5855 GB, free: 9.129 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008396/0.6338, allocations: 6.025 MB / 0.5914 GB, free: 3.09 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.6339, allocations: 0 / 0.5914 GB, free: 3.09 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.6339, allocations: 0 / 0.5914 GB, free: 3.09 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003561/0.6343, allocations: 0 / 0.5914 GB, free: 3.09 MB / 410.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.01322/0.6475, allocations: 4.666 MB / 0.5959 GB, free: 14.35 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.6476, allocations: 12.56 kB / 0.596 GB, free: 14.34 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01196/0.6595, allocations: 2.529 MB / 0.5984 GB, free: 11.8 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009286/0.6688, allocations: 3.404 MB / 0.6018 GB, free: 8.34 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000276/0.6692, allocations: 242.1 kB / 0.602 GB, free: 8.102 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001679/0.6709, allocations: 331.7 kB / 0.6023 GB, free: 7.777 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02247/0.6933, allocations: 10.89 MB / 0.6129 GB, free: 12.15 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001627/0.6935, allocations: 51.58 kB / 0.613 GB, free: 12.1 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000498/0.694, allocations: 151.9 kB / 0.6131 GB, free: 11.95 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003172/0.6972, allocations: 1.994 MB / 0.6151 GB, free: 9.953 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01994/0.7172, allocations: 9.432 MB / 0.6243 GB, free: 0.5 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05599/0.7732, allocations: 41.23 MB / 0.6646 GB, free: 6.062 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01087/0.7842, allocations: 4.269 MB / 0.6687 GB, free: 1.648 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.3089/1.093, allocations: 1.915 MB / 0.6706 GB, free: 138.7 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0167/1.11, allocations: 7.621 MB / 0.678 GB, free: 136.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.95e-05/1.11, allocations: 49.34 kB / 0.6781 GB, free: 136.2 MB / 490.7 MB Notification: Performance of pre-optimization done (n=180): time 4.99e-06/1.11, allocations: 2.25 kB / 0.6781 GB, free: 136.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=236): time 0.162/1.272, allocations: 41.47 MB / 0.7186 GB, free: 126.7 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.562e-05/1.272, allocations: 210 kB / 0.7188 GB, free: 126.4 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006616/1.279, allocations: 4.306 MB / 0.723 GB, free: 124.2 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006723/1.279, allocations: 58.3 kB / 0.723 GB, free: 124.1 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002132/1.282, allocations: 3.177 MB / 0.7261 GB, free: 121.4 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001329/1.283, allocations: 0.8761 MB / 0.727 GB, free: 120.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003732/1.283, allocations: 133.1 kB / 0.7271 GB, free: 120.5 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003342/1.284, allocations: 0.5796 MB / 0.7277 GB, free: 120 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004709/1.288, allocations: 3.598 MB / 0.7312 GB, free: 117.8 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006127/1.295, allocations: 7.269 MB / 0.7383 GB, free: 108.8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006075/1.301, allocations: 4.969 MB / 0.7432 GB, free: 103.8 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.074e-05/1.301, allocations: 36 kB / 0.7432 GB, free: 103.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.03548/1.336, allocations: 16.17 MB / 0.759 GB, free: 87.57 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.407e-05/1.336, allocations: 59.12 kB / 0.759 GB, free: 87.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001108/1.336, allocations: 128 kB / 0.7592 GB, free: 87.39 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02118/1.358, allocations: 6.272 MB / 0.7653 GB, free: 81.11 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005329/1.363, allocations: 1.497 MB / 0.7667 GB, free: 79.61 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02988/1.393, allocations: 26.15 MB / 0.7923 GB, free: 53.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007477/1.4, allocations: 415.4 kB / 0.7927 GB, free: 52.79 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00146/1.402, allocations: 388.7 kB / 0.793 GB, free: 52.41 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005032/1.407, allocations: 2.221 MB / 0.7952 GB, free: 50.18 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001207/1.408, allocations: 394.9 kB / 0.7956 GB, free: 49.79 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02603/1.434, allocations: 11.3 MB / 0.8066 GB, free: 38.46 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001043/1.434, allocations: 33.19 kB / 0.8067 GB, free: 38.43 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.666e-05/1.434, allocations: 12 kB / 0.8067 GB, free: 38.41 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.109e-05/1.435, allocations: 11.97 kB / 0.8067 GB, free: 38.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04344/1.478, allocations: 20.76 MB / 0.827 GB, free: 17.18 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.554e-05/1.478, allocations: 8 kB / 0.827 GB, free: 17.17 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002467/1.481, allocations: 392 kB / 0.8273 GB, free: 16.79 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01892/1.5, allocations: 5.342 MB / 0.8326 GB, free: 11.44 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000683/1.5, allocations: 36 kB / 0.8326 GB, free: 11.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02933/1.53, allocations: 21.21 MB / 0.8533 GB, free: 5.922 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.155e-06/1.53, allocations: 4 kB / 0.8533 GB, free: 5.918 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3655/1.895, allocations: 14.59 MB / 0.8676 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00295/1.898, allocations: 0.9913 MB / 0.8685 GB, free: 138.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001054/1.899, allocations: 39.59 kB / 0.8686 GB, free: 138.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002621/1.902, allocations: 190.2 kB / 0.8687 GB, free: 138.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006261/1.903, allocations: 152.9 kB / 0.8689 GB, free: 138.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002466/1.903, allocations: 65.16 kB / 0.869 GB, free: 138.5 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004508/1.907, allocations: 2.699 MB / 0.8716 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.61e-07/1.907, allocations: 3.609 kB / 0.8716 GB, free: 137.6 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008023/1.915, allocations: 1.374 MB / 0.8729 GB, free: 137.4 MB / 0.4948 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006844/1.916, allocations: 184.2 kB / 0.8731 GB, free: 137.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01508/1.931, allocations: 8.284 MB / 0.8812 GB, free: 134.1 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.285e-05/1.931, allocations: 2.969 kB / 0.8812 GB, free: 134.1 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005361/1.937, allocations: 3.2 MB / 0.8843 GB, free: 132.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004209/1.941, allocations: 0.492 MB / 0.8848 GB, free: 132.4 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0264/1.967, allocations: 14.03 MB / 0.8985 GB, free: 125.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006517/1.974, allocations: 3.49 MB / 0.9019 GB, free: 124.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001931/1.976, allocations: 315.7 kB / 0.9022 GB, free: 124.2 MB / 0.4948 GB Notification: Performance of SimCode: time 1.864e-06/1.976, allocations: 0 / 0.9022 GB, free: 124.2 MB / 0.4948 GB Notification: Performance of Templates: time 0.1504/2.126, allocations: 109.2 MB / 1.009 GB, free: 28.54 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches