Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.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.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") translateModel(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j1.phi|j1.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 104.3 kB / 18.4 MB, free: 4.57 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.001186/0.001186, allocations: 187 kB / 19.34 MB, free: 3.641 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.4/1.4, allocations: 222.9 MB / 243 MB, free: 15.08 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 / 337.4 MB, free: 2.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 68.27 kB / 409.9 MB, free: 26.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1278, allocations: 60.83 MB / 470.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.01515/0.143, allocations: 15.03 MB / 485.7 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009959/0.153, allocations: 4.83 MB / 490.6 MB, free: 9.734 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002593/0.1556, allocations: 91.75 kB / 490.7 MB, free: 9.645 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006114/0.1617, allocations: 3.161 MB / 493.8 MB, free: 6.473 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006808/0.1686, allocations: 2.556 MB / 496.4 MB, free: 3.91 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003022/0.1716, allocations: 0.9866 MB / 497.4 MB, free: 2.922 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01255/0.1842, allocations: 6.992 MB / 0.4925 GB, free: 11.92 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006379/0.1906, allocations: 4.369 MB / 0.4968 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004267/0.1949, allocations: 2.211 MB / 0.499 GB, free: 5.266 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004732/0.1997, allocations: 3.248 MB / 0.5021 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001316/0.201, allocations: 484 kB / 0.5026 GB, free: 1.535 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002985/0.204, allocations: 1.506 MB / 0.5041 GB, free: 28 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2188/0.4228, allocations: 2.859 MB / 0.5069 GB, free: 21.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007319/0.4302, allocations: 3.254 MB / 0.51 GB, free: 20 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01675/0.447, allocations: 10.45 MB / 0.5202 GB, free: 18.47 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.606e-06/0.447, allocations: 4.594 kB / 0.5202 GB, free: 18.47 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.447, allocations: 0 / 0.5202 GB, free: 18.47 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004469/0.4475, allocations: 0 / 0.5202 GB, free: 18.47 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02239/0.4699, allocations: 7.305 MB / 0.5274 GB, free: 15.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.4699, allocations: 8.719 kB / 0.5274 GB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0161/0.4861, allocations: 3.924 MB / 0.5312 GB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01211/0.4982, allocations: 4.189 MB / 0.5353 GB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002726/0.4985, allocations: 317.5 kB / 0.5356 GB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002748/0.5013, allocations: 438.4 kB / 0.536 GB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02982/0.5311, allocations: 15.73 MB / 0.5514 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001934/0.5313, allocations: 64.31 kB / 0.5514 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008945/0.5322, allocations: 204 kB / 0.5516 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005083/0.5373, allocations: 3.22 MB / 0.5548 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03078/0.5681, allocations: 14.16 MB / 0.5686 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08919/0.6573, allocations: 57.5 MB / 0.6248 GB, free: 4.406 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01531/0.6727, allocations: 6.592 MB / 0.6312 GB, free: 13.57 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006258/0.679, allocations: 3.749 MB / 0.6349 GB, free: 9.82 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03098/0.71, allocations: 14.77 MB / 0.6493 GB, free: 10.61 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.254e-05/0.7101, allocations: 65.95 kB / 0.6494 GB, free: 10.54 MB / 494.1 MB Notification: Performance of pre-optimization done (n=292): time 6.251e-06/0.7101, allocations: 0 / 0.6494 GB, free: 10.54 MB / 494.1 MB Notification: Performance of matching and sorting (n=342): time 0.1467/0.8568, allocations: 42.48 MB / 0.6908 GB, free: 124 kB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001466/0.857, allocations: 225.8 kB / 0.6911 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008469/0.8655, allocations: 5.47 MB / 0.6964 GB, free: 10.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008665/0.8664, allocations: 69.7 kB / 0.6965 GB, free: 10.33 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003093/0.8695, allocations: 4.343 MB / 0.7007 GB, free: 5.992 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001875/0.8714, allocations: 1.272 MB / 0.7019 GB, free: 4.73 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003108/0.8745, allocations: 1.859 MB / 0.7038 GB, free: 2.859 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.8746, allocations: 305.1 kB / 0.7041 GB, free: 2.559 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2473/1.122, allocations: 4.836 MB / 0.7088 GB, free: 187.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01254/1.134, allocations: 9.825 MB / 0.7184 GB, free: 180 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01785/1.152, allocations: 15.63 MB / 0.7336 GB, free: 168.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002963/1.153, allocations: 46.41 kB / 0.7337 GB, free: 168.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04365/1.196, allocations: 19.61 MB / 0.7528 GB, free: 158.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000121/1.197, allocations: 81.59 kB / 0.7529 GB, free: 158.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000186/1.197, allocations: 172 kB / 0.7531 GB, free: 158.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02014/1.217, allocations: 5.942 MB / 0.7589 GB, free: 153.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007452/1.224, allocations: 2.125 MB / 0.7609 GB, free: 151.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02716/1.252, allocations: 26.15 MB / 0.7865 GB, free: 125.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00827/1.26, allocations: 0.561 MB / 0.787 GB, free: 124.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001757/1.262, allocations: 0.509 MB / 0.7875 GB, free: 124.3 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 789 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame4.color_x[3],fixedFrame4.color_x[2],fixedFrame4.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.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 (1099): * Single equations (assignments): 1091 * Array equations: 6 * 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 {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005893/1.268, allocations: 3.097 MB / 0.7906 GB, free: 121.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001067/1.269, allocations: 0.4938 MB / 0.791 GB, free: 121 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02646/1.295, allocations: 13.01 MB / 0.8037 GB, free: 107.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.989e-05/1.295, allocations: 55.98 kB / 0.8038 GB, free: 107.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.534e-05/1.295, allocations: 8 kB / 0.8038 GB, free: 107.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.873e-05/1.295, allocations: 11.95 kB / 0.8038 GB, free: 107.8 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04637/1.342, allocations: 24.63 MB / 0.8279 GB, free: 82.84 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-05/1.342, allocations: 4 kB / 0.8279 GB, free: 82.83 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003156/1.345, allocations: 0.5895 MB / 0.8284 GB, free: 82.24 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01729/1.362, allocations: 4.97 MB / 0.8333 GB, free: 77.26 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008756/1.363, allocations: 64.84 kB / 0.8334 GB, free: 77.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02232/1.385, allocations: 21.34 MB / 0.8542 GB, free: 55.66 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/1.385, allocations: 7.938 kB / 0.8542 GB, free: 55.65 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03225/1.418, allocations: 17.58 MB / 0.8714 GB, free: 38 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001588/1.419, allocations: 0.5349 MB / 0.8719 GB, free: 37.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001162/1.421, allocations: 59.98 kB / 0.872 GB, free: 37.39 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002919/1.423, allocations: 263.5 kB / 0.8722 GB, free: 37.13 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007223/1.424, allocations: 189.7 kB / 0.8724 GB, free: 36.95 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002923/1.424, allocations: 88.25 kB / 0.8725 GB, free: 36.86 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004707/1.429, allocations: 3.406 MB / 0.8758 GB, free: 33.48 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.61e-07/1.429, allocations: 0 / 0.8758 GB, free: 33.48 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009275/1.438, allocations: 1.764 MB / 0.8775 GB, free: 31.72 MB / 0.5294 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 (257): * Single equations (assignments): 249 * Array equations: 6 * 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 {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008818/1.439, allocations: 210.5 kB / 0.8777 GB, free: 31.51 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01494/1.454, allocations: 11.05 MB / 0.8885 GB, free: 20.47 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.898e-06/1.454, allocations: 0 / 0.8885 GB, free: 20.47 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005139/1.46, allocations: 4.136 MB / 0.8925 GB, free: 16.32 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003844/1.463, allocations: 0.6101 MB / 0.8931 GB, free: 15.73 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2555/1.719, allocations: 16.07 MB / 0.9088 GB, free: 174.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008671/1.728, allocations: 4.614 MB / 0.9133 GB, free: 174 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.006558/1.734, allocations: 2.985 MB / 0.9163 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001633/1.736, allocations: 355.5 kB / 0.9166 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.513e-06/1.736, allocations: 0 / 0.9166 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of Templates: time 0.1083/1.844, allocations: 74.12 MB / 0.989 GB, free: 111 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/UniversalSpherical/UniversalSpherical.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches