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.001588/0.001587, allocations: 101.5 kB / 17.85 MB, free: 5.66 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.001798/0.001798, allocations: 194 kB / 18.77 MB, free: 4.742 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.421/1.421, allocations: 222.9 MB / 242.4 MB, free: 15.35 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.2191/0.2191, allocations: 44.19 MB / 336.8 MB, free: 2.98 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 60.5 kB / 408.3 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1105, allocations: 60.83 MB / 469.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.UniversalSpherical): time 0.2711/0.3816, allocations: 53.43 MB / 0.5104 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02336/0.405, allocations: 11.22 MB / 0.5213 GB, free: 8.582 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01091/0.416, allocations: 238.5 kB / 0.5215 GB, free: 8.539 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006241/0.4223, allocations: 3.131 MB / 0.5246 GB, free: 7.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006769/0.4291, allocations: 2.403 MB / 0.5269 GB, free: 6.805 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002274/0.4314, allocations: 0.9172 MB / 0.5278 GB, free: 6.492 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01084/0.4423, allocations: 9.89 MB / 0.5375 GB, free: 2.258 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005114/0.4474, allocations: 4.294 MB / 0.5417 GB, free: 15.94 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003957/0.4514, allocations: 1.968 MB / 0.5436 GB, free: 14.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005491/0.4569, allocations: 3.433 MB / 0.547 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001299/0.4582, allocations: 332 kB / 0.5473 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003466/0.4617, allocations: 1.436 MB / 0.5487 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003129/0.4649, allocations: 2.755 MB / 0.5514 GB, free: 7.617 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00548/0.4703, allocations: 3.115 MB / 0.5544 GB, free: 4.496 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00821/0.4786, allocations: 8.15 MB / 0.5624 GB, free: 12.57 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.4786, allocations: 0 / 0.5624 GB, free: 12.57 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4786, allocations: 0 / 0.5624 GB, free: 12.57 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002607/0.4789, allocations: 0 / 0.5624 GB, free: 12.57 MB / 414.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.01646/0.4954, allocations: 7.327 MB / 0.5695 GB, free: 5.324 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.4954, allocations: 12.03 kB / 0.5695 GB, free: 5.312 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01557/0.511, allocations: 3.926 MB / 0.5734 GB, free: 1.375 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009727/0.5207, allocations: 4.108 MB / 0.5774 GB, free: 13.25 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002877/0.5211, allocations: 317.6 kB / 0.5777 GB, free: 13 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001865/0.5229, allocations: 437.3 kB / 0.5781 GB, free: 12.62 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02832/0.5513, allocations: 15.73 MB / 0.5935 GB, free: 12.14 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001565/0.5515, allocations: 63.44 kB / 0.5935 GB, free: 12.08 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006501/0.5521, allocations: 201.4 kB / 0.5937 GB, free: 11.94 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004837/0.557, allocations: 3.224 MB / 0.5969 GB, free: 8.73 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02817/0.5852, allocations: 14.17 MB / 0.6107 GB, free: 10.54 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08886/0.6741, allocations: 57.78 MB / 0.6671 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01565/0.6898, allocations: 6.597 MB / 0.6736 GB, free: 8.668 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008333/0.6982, allocations: 3.75 MB / 0.6772 GB, free: 4.91 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03186/0.7301, allocations: 14.8 MB / 0.6917 GB, free: 5.664 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.024e-05/0.7302, allocations: 56.56 kB / 0.6917 GB, free: 5.602 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=292): time 6.001e-06/0.7302, allocations: 0 / 0.6917 GB, free: 5.602 MB / 0.5294 GB Notification: Performance of matching and sorting (n=342): time 0.397/1.127, allocations: 42.49 MB / 0.7332 GB, free: 196.9 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.521e-05/1.127, allocations: 221.4 kB / 0.7334 GB, free: 196.7 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007241/1.135, allocations: 5.464 MB / 0.7388 GB, free: 194.8 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008158/1.135, allocations: 72.23 kB / 0.7389 GB, free: 194.7 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002691/1.138, allocations: 4.349 MB / 0.7431 GB, free: 191.4 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002042/1.14, allocations: 1.259 MB / 0.7443 GB, free: 190.4 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002887/1.143, allocations: 1.859 MB / 0.7461 GB, free: 189.6 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 7.885e-05/1.143, allocations: 305.1 kB / 0.7464 GB, free: 189.3 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005752/1.149, allocations: 4.843 MB / 0.7512 GB, free: 187.4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007468/1.156, allocations: 9.818 MB / 0.7608 GB, free: 178.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01414/1.171, allocations: 15.62 MB / 0.776 GB, free: 160.1 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001188/1.171, allocations: 52 kB / 0.7761 GB, free: 160.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=1190) (initialization): time 0.04001/1.211, allocations: 19.61 MB / 0.7952 GB, free: 140.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002865/1.211, allocations: 88.16 kB / 0.7953 GB, free: 140.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003521/1.211, allocations: 172 kB / 0.7955 GB, free: 140.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02125/1.233, allocations: 5.942 MB / 0.8013 GB, free: 134.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007681/1.24, allocations: 2.129 MB / 0.8033 GB, free: 132.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02982/1.27, allocations: 24.77 MB / 0.8275 GB, free: 107.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009384/1.28, allocations: 0.5577 MB / 0.8281 GB, free: 106.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002386/1.282, allocations: 0.5117 MB / 0.8286 GB, free: 106 MB / 0.545 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.007539/1.29, allocations: 3.102 MB / 0.8316 GB, free: 102.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001994/1.292, allocations: 0.4896 MB / 0.8321 GB, free: 102.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03109/1.323, allocations: 13.01 MB / 0.8448 GB, free: 89.32 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001023/1.323, allocations: 59.92 kB / 0.8448 GB, free: 89.27 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-05/1.323, allocations: 8 kB / 0.8448 GB, free: 89.26 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.724e-05/1.323, allocations: 15.95 kB / 0.8449 GB, free: 89.24 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05137/1.375, allocations: 24.68 MB / 0.869 GB, free: 64.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.785e-05/1.375, allocations: 4 kB / 0.869 GB, free: 64.09 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00347/1.378, allocations: 0.585 MB / 0.8695 GB, free: 63.51 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01846/1.397, allocations: 4.974 MB / 0.8744 GB, free: 58.52 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001082/1.398, allocations: 55.56 kB / 0.8745 GB, free: 58.47 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02345/1.421, allocations: 19.97 MB / 0.894 GB, free: 38.23 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/1.421, allocations: 11.94 kB / 0.894 GB, free: 38.22 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2764/1.698, allocations: 17.58 MB / 0.9111 GB, free: 184.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001728/1.699, allocations: 0.5263 MB / 0.9116 GB, free: 184.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001507/1.701, allocations: 54.77 kB / 0.9117 GB, free: 184.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003431/1.704, allocations: 272.2 kB / 0.912 GB, free: 184.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001004/1.705, allocations: 203 kB / 0.9122 GB, free: 184.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003411/1.706, allocations: 84.78 kB / 0.9122 GB, free: 184.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006504/1.712, allocations: 3.398 MB / 0.9156 GB, free: 184.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.71e-07/1.712, allocations: 0 / 0.9156 GB, free: 184.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009148/1.721, allocations: 1.766 MB / 0.9173 GB, free: 184.5 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 (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.0009593/1.722, allocations: 205.6 kB / 0.9175 GB, free: 184.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02035/1.743, allocations: 11.01 MB / 0.9282 GB, free: 181.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.144e-05/1.743, allocations: 0 / 0.9282 GB, free: 181.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005711/1.749, allocations: 4.132 MB / 0.9323 GB, free: 179.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004101/1.753, allocations: 0.5887 MB / 0.9328 GB, free: 179.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02508/1.778, allocations: 19.83 MB / 0.9522 GB, free: 169.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004476/1.782, allocations: 4.608 MB / 0.9567 GB, free: 167.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002069/1.784, allocations: 413.6 kB / 0.9571 GB, free: 167.5 MB / 0.545 GB Notification: Performance of SimCode: time 9.31e-07/1.784, allocations: 2.094 kB / 0.9571 GB, free: 167.5 MB / 0.545 GB Notification: Performance of Templates: time 0.1551/1.94, allocations: 149.9 MB / 1.103 GB, free: 21.11 MB / 0.545 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 -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