Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.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.JointUSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR") translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|j2.s|j2.v",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 110.5 kB / 17.86 MB, free: 5.504 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.001176/0.001176, allocations: 201.9 kB / 18.78 MB, free: 4.586 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.349/1.349, allocations: 222.9 MB / 242.5 MB, free: 15.42 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.204/0.204, allocations: 44.17 MB / 336.8 MB, free: 2.977 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001624/0.001624, allocations: 59.91 kB / 408.3 MB, free: 15.89 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1254, allocations: 60.83 MB / 469.2 MB, free: 3.004 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.05982/0.1852, allocations: 63.05 MB / 0.5197 GB, free: 3.699 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03246/0.2178, allocations: 13.27 MB / 0.5327 GB, free: 6.387 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01353/0.2314, allocations: 279.3 kB / 0.533 GB, free: 6.113 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009365/0.2408, allocations: 4.554 MB / 0.5374 GB, free: 1.547 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2953/0.5361, allocations: 2.845 MB / 0.5402 GB, free: 38.45 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004034/0.5402, allocations: 1.378 MB / 0.5415 GB, free: 38.45 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.01494/0.5551, allocations: 12.2 MB / 0.5534 GB, free: 38.45 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01283/0.568, allocations: 6.29 MB / 0.5596 GB, free: 38.05 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008081/0.5761, allocations: 2.652 MB / 0.5622 GB, free: 38.05 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01025/0.5864, allocations: 4.484 MB / 0.5666 GB, free: 37.71 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003919/0.5904, allocations: 457 kB / 0.567 GB, free: 37.71 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007358/0.5978, allocations: 1.727 MB / 0.5687 GB, free: 37.69 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008229/0.606, allocations: 3.552 MB / 0.5722 GB, free: 37.33 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01159/0.6176, allocations: 4.01 MB / 0.5761 GB, free: 35.89 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01427/0.6319, allocations: 10.72 MB / 0.5865 GB, free: 33.59 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.632, allocations: 0 / 0.5865 GB, free: 33.59 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.632, allocations: 0 / 0.5865 GB, free: 33.59 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000626/0.6326, allocations: 0 / 0.5865 GB, free: 33.59 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.03528/0.6679, allocations: 9.027 MB / 0.5953 GB, free: 28.86 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.924e-05/0.668, allocations: 12.42 kB / 0.5954 GB, free: 28.86 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01908/0.6871, allocations: 4.095 MB / 0.5994 GB, free: 26.77 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01456/0.7017, allocations: 5.097 MB / 0.6043 GB, free: 23.96 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005762/0.7023, allocations: 436.2 kB / 0.6048 GB, free: 23.82 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003882/0.7062, allocations: 0.5999 MB / 0.6053 GB, free: 23.67 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05518/0.7614, allocations: 20.62 MB / 0.6255 GB, free: 2.355 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004035/0.7619, allocations: 78.22 kB / 0.6256 GB, free: 2.312 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002403/0.7643, allocations: 269.7 kB / 0.6258 GB, free: 2.117 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007728/0.7721, allocations: 3.712 MB / 0.6294 GB, free: 14.45 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04758/0.8197, allocations: 18.2 MB / 0.6472 GB, free: 12.55 MB / 494.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1192/0.9389, allocations: 74.61 MB / 0.7201 GB, free: 0.9102 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02042/0.9594, allocations: 7.459 MB / 0.7274 GB, free: 9.211 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007045/0.9665, allocations: 4.108 MB / 0.7314 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03574/1.002, allocations: 18.22 MB / 0.7492 GB, free: 2.281 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.383e-05/1.002, allocations: 69.03 kB / 0.7492 GB, free: 2.207 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=335): time 6.582e-06/1.002, allocations: 0 / 0.7492 GB, free: 2.207 MB / 0.5762 GB Notification: Performance of matching and sorting (n=419): time 0.4029/1.405, allocations: 35 MB / 0.7834 GB, free: 204.7 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.805e-05/1.405, allocations: 197.5 kB / 0.7836 GB, free: 204.5 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01274/1.418, allocations: 6.482 MB / 0.7899 GB, free: 203.6 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0009227/1.419, allocations: 82.59 kB / 0.79 GB, free: 203.5 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0042/1.423, allocations: 5.365 MB / 0.7952 GB, free: 199.4 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.002459/1.426, allocations: 1.546 MB / 0.7967 GB, free: 198.3 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003508/1.429, allocations: 2.132 MB / 0.7988 GB, free: 197.2 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.651e-05/1.429, allocations: 305.1 kB / 0.7991 GB, free: 196.9 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006166/1.436, allocations: 4.336 MB / 0.8034 GB, free: 195.5 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009186/1.445, allocations: 10.28 MB / 0.8134 GB, free: 186.1 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01581/1.461, allocations: 15.67 MB / 0.8287 GB, free: 171.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001694/1.461, allocations: 56 kB / 0.8288 GB, free: 171.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1417) (initialization): time 0.03243/1.493, allocations: 16.36 MB / 0.8447 GB, free: 157.5 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001382/1.493, allocations: 96.25 kB / 0.8448 GB, free: 157.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002483/1.494, allocations: 208.7 kB / 0.845 GB, free: 157.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007636/1.501, allocations: 2.364 MB / 0.8473 GB, free: 155.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008198/1.51, allocations: 2.462 MB / 0.8497 GB, free: 153.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01638/1.526, allocations: 11.89 MB / 0.8613 GB, free: 141.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009016/1.535, allocations: 0.5853 MB / 0.8619 GB, free: 140.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001791/1.537, allocations: 0.595 MB / 0.8625 GB, free: 140.2 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 943 * Number of states: 0 () * Number of discrete variables: 49 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1316): * Single equations (assignments): 1309 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,52,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007311/1.544, allocations: 3.781 MB / 0.8662 GB, free: 136.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001338/1.546, allocations: 0.5912 MB / 0.8668 GB, free: 135.8 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01517/1.561, allocations: 8.33 MB / 0.8749 GB, free: 127.4 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.199e-05/1.561, allocations: 64.69 kB / 0.875 GB, free: 127.4 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.121e-05/1.561, allocations: 12.94 kB / 0.875 GB, free: 127.3 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.495e-05/1.561, allocations: 15.94 kB / 0.875 GB, free: 127.3 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03572/1.597, allocations: 18.97 MB / 0.8935 GB, free: 108 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.112e-05/1.597, allocations: 12 kB / 0.8935 GB, free: 108 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002881/1.6, allocations: 0.6207 MB / 0.8941 GB, free: 107.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006403/1.606, allocations: 1.802 MB / 0.8959 GB, free: 105.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000787/1.607, allocations: 81.67 kB / 0.896 GB, free: 105.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01401/1.621, allocations: 9.998 MB / 0.9057 GB, free: 95.38 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.003e-05/1.621, allocations: 15.94 kB / 0.9058 GB, free: 95.36 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0196/1.641, allocations: 12.48 MB / 0.9179 GB, free: 82.61 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002111/1.643, allocations: 0.6312 MB / 0.9186 GB, free: 81.95 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001406/1.644, allocations: 76.92 kB / 0.9186 GB, free: 81.88 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002943/1.647, allocations: 206.7 kB / 0.9188 GB, free: 81.68 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006986/1.648, allocations: 265.7 kB / 0.9191 GB, free: 81.41 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002784/1.648, allocations: 115.9 kB / 0.9192 GB, free: 81.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.005822/1.654, allocations: 4.024 MB / 0.9231 GB, free: 77.29 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.41e-07/1.654, allocations: 0 / 0.9231 GB, free: 77.29 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.01175/1.666, allocations: 1.952 MB / 0.925 GB, free: 75.34 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 55 * Number of states: 2 (j2.s,j2.v) * 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 (331): * Single equations (assignments): 324 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 Backend phase and start with SimCode phase: time 0.001126/1.667, allocations: 283.7 kB / 0.9253 GB, free: 75.07 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01469/1.682, allocations: 10.12 MB / 0.9352 GB, free: 64.96 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.471e-05/1.682, allocations: 4.812 kB / 0.9352 GB, free: 64.96 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00477/1.686, allocations: 3.388 MB / 0.9385 GB, free: 61.55 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00532/1.692, allocations: 0.7531 MB / 0.9392 GB, free: 60.83 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03026/1.722, allocations: 22.45 MB / 0.9612 GB, free: 38.19 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006708/1.729, allocations: 5.566 MB / 0.9666 GB, free: 32.63 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002219/1.731, allocations: 499.4 kB / 0.9671 GB, free: 32.14 MB / 0.5762 GB Notification: Performance of SimCode: time 9.82e-07/1.731, allocations: 0 / 0.9671 GB, free: 32.14 MB / 0.5762 GB Notification: Performance of Templates: time 0.4066/2.138, allocations: 141.3 MB / 1.105 GB, free: 97.25 MB / 0.5762 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointUSR/JointUSR.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches