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.001222/0.001222, allocations: 101.8 kB / 16.26 MB, free: 5.93 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.001337/0.001337, allocations: 190.1 kB / 17.2 MB, free: 5.574 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.701/1.701, allocations: 205.1 MB / 223.1 MB, free: 12.29 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.228/0.228, allocations: 43.53 MB / 313.9 MB, free: 0.5195 MB / 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.001877/0.001877, allocations: 63.09 kB / 382.7 MB, free: 56.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1304, allocations: 57.8 MB / 440.5 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical): time 0.01064/0.1411, allocations: 12.09 MB / 452.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008845/0.15, allocations: 4.322 MB / 456.9 MB, free: 6.414 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00212/0.1521, allocations: 71.81 kB / 457 MB, free: 6.344 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004868/0.157, allocations: 2.737 MB / 459.7 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00561/0.1627, allocations: 2.015 MB / 461.8 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001799/0.1645, allocations: 0.9164 MB / 462.7 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006957/0.1714, allocations: 5.244 MB / 467.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00439/0.1759, allocations: 3.374 MB / 471.3 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00439/0.1803, allocations: 1.729 MB / 473 MB, free: 6.246 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005446/0.1858, allocations: 2.535 MB / 475.6 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001475/0.1873, allocations: 384 kB / 475.9 MB, free: 3.328 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003831/0.1911, allocations: 1.4 MB / 477.3 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003271/0.1944, allocations: 2.194 MB / 479.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003939/0.1984, allocations: 2.451 MB / 482 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009408/0.2078, allocations: 7.668 MB / 489.6 MB, free: 5.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.506e-06/0.2079, allocations: 0 / 489.6 MB, free: 5.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.2079, allocations: 0 / 489.6 MB, free: 5.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003297/0.2082, allocations: 0 / 489.6 MB, free: 5.57 MB / 366.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.01452/0.2228, allocations: 5.529 MB / 495.2 MB, free: 15.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.2228, allocations: 15.89 kB / 495.2 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01147/0.2343, allocations: 2.467 MB / 497.6 MB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008404/0.2427, allocations: 3.465 MB / 0.4894 GB, free: 9.949 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002873/0.2431, allocations: 234.5 kB / 0.4896 GB, free: 9.719 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001338/0.2444, allocations: 339.5 kB / 0.4899 GB, free: 9.387 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02135/0.2658, allocations: 10.88 MB / 0.5005 GB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001468/0.266, allocations: 55.5 kB / 0.5006 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004278/0.2664, allocations: 151.9 kB / 0.5007 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003727/0.2701, allocations: 2.002 MB / 0.5027 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02131/0.2915, allocations: 9.452 MB / 0.5119 GB, free: 2.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3363/0.6278, allocations: 41.23 MB / 0.5522 GB, free: 58.73 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01052/0.6384, allocations: 4.268 MB / 0.5564 GB, free: 57.94 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002699/0.6411, allocations: 1.915 MB / 0.5582 GB, free: 57.16 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009866/0.651, allocations: 7.628 MB / 0.5657 GB, free: 52.79 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.342e-05/0.6511, allocations: 55.89 kB / 0.5657 GB, free: 52.73 MB / 414.1 MB Notification: Performance of pre-optimization done (n=180): time 4.729e-06/0.6511, allocations: 0 / 0.5657 GB, free: 52.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=236): time 0.1581/0.8092, allocations: 40.96 MB / 0.6057 GB, free: 17.76 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.309e-05/0.8093, allocations: 209.9 kB / 0.6059 GB, free: 17.51 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005468/0.8148, allocations: 4.337 MB / 0.6102 GB, free: 13.15 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006776/0.8155, allocations: 57.7 kB / 0.6102 GB, free: 13.09 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001807/0.8173, allocations: 3.171 MB / 0.6133 GB, free: 9.922 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001215/0.8185, allocations: 0.8777 MB / 0.6142 GB, free: 9.051 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001808/0.8203, allocations: 1.358 MB / 0.6155 GB, free: 7.684 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.218e-05/0.8204, allocations: 301.1 kB / 0.6158 GB, free: 7.387 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003874/0.8243, allocations: 3.628 MB / 0.6193 GB, free: 3.754 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0073/0.8316, allocations: 7.297 MB / 0.6265 GB, free: 10.69 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01598/0.8476, allocations: 11.63 MB / 0.6378 GB, free: 13.28 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001513/0.8478, allocations: 36 kB / 0.6378 GB, free: 13.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=856) (initialization): time 0.04217/0.89, allocations: 16.21 MB / 0.6537 GB, free: 13.02 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001644/0.8902, allocations: 60 kB / 0.6537 GB, free: 12.96 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001449/0.8904, allocations: 128 kB / 0.6539 GB, free: 12.84 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02662/0.917, allocations: 6.234 MB / 0.6599 GB, free: 6.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005921/0.923, allocations: 1.489 MB / 0.6614 GB, free: 5.098 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03712/0.9601, allocations: 27.63 MB / 0.6884 GB, free: 9.184 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007008/0.9672, allocations: 418.8 kB / 0.6888 GB, free: 8.777 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00143/0.9686, allocations: 384 kB / 0.6891 GB, free: 8.402 MB / 494.1 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.004665/0.9733, allocations: 2.226 MB / 0.6913 GB, free: 6.164 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001082/0.9744, allocations: 394.8 kB / 0.6917 GB, free: 5.773 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03139/1.006, allocations: 11.3 MB / 0.7027 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.941e-05/1.006, allocations: 24 kB / 0.7028 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.651e-05/1.006, allocations: 16 kB / 0.7028 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.9e-05/1.006, allocations: 15.89 kB / 0.7028 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05061/1.057, allocations: 20.7 MB / 0.723 GB, free: 5.207 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-05/1.057, allocations: 4 kB / 0.723 GB, free: 5.203 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002272/1.059, allocations: 387.4 kB / 0.7234 GB, free: 4.824 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.275/1.334, allocations: 5.312 MB / 0.7286 GB, free: 180.7 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006833/1.335, allocations: 40.97 kB / 0.7286 GB, free: 180.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03039/1.365, allocations: 22.7 MB / 0.7508 GB, free: 172.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.644e-06/1.365, allocations: 10.47 kB / 0.7508 GB, free: 172.6 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0306/1.396, allocations: 14.59 MB / 0.765 GB, free: 167.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002704/1.399, allocations: 0.9876 MB / 0.766 GB, free: 167.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007484/1.399, allocations: 43.69 kB / 0.766 GB, free: 167.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002406/1.402, allocations: 180.1 kB / 0.7662 GB, free: 167 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006965/1.402, allocations: 155.3 kB / 0.7664 GB, free: 166.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001924/1.403, allocations: 61.44 kB / 0.7664 GB, free: 166.9 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004071/1.407, allocations: 2.725 MB / 0.7691 GB, free: 165 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/1.407, allocations: 4 kB / 0.7691 GB, free: 165 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006115/1.413, allocations: 1.373 MB / 0.7704 GB, free: 163.6 MB / 0.5137 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.0005332/1.413, allocations: 181.2 kB / 0.7706 GB, free: 163.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01275/1.426, allocations: 9.732 MB / 0.7801 GB, free: 153.9 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/1.426, allocations: 0 / 0.7801 GB, free: 153.9 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003726/1.43, allocations: 3.212 MB / 0.7832 GB, free: 150.7 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003303/1.433, allocations: 0.505 MB / 0.7837 GB, free: 150.2 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01615/1.449, allocations: 11.98 MB / 0.7954 GB, free: 138.3 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003232/1.453, allocations: 3.512 MB / 0.7989 GB, free: 134.8 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004305/1.457, allocations: 1.964 MB / 0.8008 GB, free: 132.9 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008458/1.458, allocations: 267.4 kB / 0.801 GB, free: 132.6 MB / 0.5137 GB Notification: Performance of SimCode: time 8.31e-07/1.458, allocations: 0 / 0.801 GB, free: 132.6 MB / 0.5137 GB Notification: Performance of Templates: time 0.1007/1.559, allocations: 70.23 MB / 0.8696 GB, free: 62.36 MB / 0.5137 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