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: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 118.4 kB / 17.79 MB, free: 5.254 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.001425/0.001425, allocations: 183 kB / 18.72 MB, free: 4.332 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.471/1.471, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.221/0.221, allocations: 44.18 MB / 336.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001865/0.001866, allocations: 67.83 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3817/0.3836, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.02054/0.4042, allocations: 17.69 MB / 0.5357 GB, free: 6.422 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01332/0.4175, allocations: 5.686 MB / 0.5412 GB, free: 1.941 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00496/0.4225, allocations: 115.1 kB / 0.5414 GB, free: 1.918 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01016/0.4328, allocations: 4.58 MB / 0.5458 GB, free: 14.84 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01229/0.4451, allocations: 3.015 MB / 0.5488 GB, free: 12.68 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004529/0.4497, allocations: 1.498 MB / 0.5502 GB, free: 11.41 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01362/0.4633, allocations: 8.759 MB / 0.5588 GB, free: 2.645 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009203/0.4726, allocations: 6.449 MB / 0.5651 GB, free: 12.12 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006901/0.4795, allocations: 3.01 MB / 0.568 GB, free: 9.102 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008675/0.4882, allocations: 4.265 MB / 0.5722 GB, free: 4.824 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003038/0.4913, allocations: 0.6602 MB / 0.5728 GB, free: 4.164 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005932/0.4973, allocations: 1.853 MB / 0.5746 GB, free: 2.309 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005775/0.5031, allocations: 3.709 MB / 0.5783 GB, free: 14.59 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007759/0.5109, allocations: 4.261 MB / 0.5824 GB, free: 10.3 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02173/0.5327, allocations: 13.73 MB / 0.5958 GB, free: 12.52 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.071e-05/0.5327, allocations: 4 kB / 0.5958 GB, free: 12.52 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.666e-06/0.5327, allocations: 0 / 0.5958 GB, free: 12.52 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006151/0.5334, allocations: 0 / 0.5958 GB, free: 12.52 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.02868/0.562, allocations: 9.389 MB / 0.605 GB, free: 3.023 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.698e-05/0.5621, allocations: 8.031 kB / 0.605 GB, free: 3.016 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004468/0.5666, allocations: 1.423 MB / 0.6064 GB, free: 1.582 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03249/0.5991, allocations: 6.009 MB / 0.6123 GB, free: 11.56 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0154/0.6146, allocations: 6.455 MB / 0.6186 GB, free: 5.02 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004782/0.6151, allocations: 435 kB / 0.619 GB, free: 4.594 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002672/0.6178, allocations: 0.6089 MB / 0.6196 GB, free: 3.984 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04156/0.6594, allocations: 20.54 MB / 0.6396 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002412/0.6596, allocations: 87.33 kB / 0.6397 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001191/0.6608, allocations: 275.7 kB / 0.64 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005927/0.6668, allocations: 3.714 MB / 0.6436 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04052/0.7073, allocations: 18.06 MB / 0.6612 GB, free: 8.152 MB / 0.5137 GB 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.6088/1.316, allocations: 74.1 MB / 0.7336 GB, free: 119.2 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01867/1.335, allocations: 7.427 MB / 0.7409 GB, free: 117.9 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005846/1.341, allocations: 4.026 MB / 0.7448 GB, free: 116.9 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02804/1.369, allocations: 17.97 MB / 0.7623 GB, free: 108 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.126e-05/1.369, allocations: 73.78 kB / 0.7624 GB, free: 107.9 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=332): time 6.262e-06/1.369, allocations: 0 / 0.7624 GB, free: 107.9 MB / 0.5607 GB Notification: Performance of matching and sorting (n=413): time 0.1051/1.474, allocations: 35.02 MB / 0.7966 GB, free: 80.51 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.17e-05/1.474, allocations: 200.3 kB / 0.7968 GB, free: 80.28 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008754/1.483, allocations: 6.501 MB / 0.8032 GB, free: 73.91 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.000619/1.484, allocations: 81.7 kB / 0.8032 GB, free: 73.82 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002517/1.486, allocations: 5.645 MB / 0.8087 GB, free: 68.55 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001382/1.488, allocations: 1.589 MB / 0.8103 GB, free: 66.99 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003895/1.491, allocations: 2.077 MB / 0.8123 GB, free: 64.9 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 5.281e-05/1.491, allocations: 305.1 kB / 0.8126 GB, free: 64.6 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005826/1.497, allocations: 4.182 MB / 0.8167 GB, free: 60.41 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008684/1.506, allocations: 10.06 MB / 0.8265 GB, free: 47.56 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01542/1.521, allocations: 15.36 MB / 0.8415 GB, free: 29.46 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000174/1.522, allocations: 60 kB / 0.8416 GB, free: 29.4 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1377) (initialization): time 0.02849/1.55, allocations: 15.97 MB / 0.8572 GB, free: 13.41 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001038/1.55, allocations: 92 kB / 0.8573 GB, free: 13.32 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001723/1.55, allocations: 204 kB / 0.8575 GB, free: 13.12 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006721/1.557, allocations: 2.321 MB / 0.8597 GB, free: 10.8 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007275/1.565, allocations: 2.394 MB / 0.8621 GB, free: 8.402 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01758/1.582, allocations: 12.51 MB / 0.8743 GB, free: 11.75 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007564/1.59, allocations: 0.5887 MB / 0.8749 GB, free: 11.16 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001488/1.591, allocations: 0.5859 MB / 0.8754 GB, free: 10.58 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 937 * 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 (1276): * Single equations (assignments): 1269 * 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.007154/1.598, allocations: 3.754 MB / 0.8791 GB, free: 6.809 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001341/1.6, allocations: 0.6247 MB / 0.8797 GB, free: 6.18 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01826/1.618, allocations: 8.178 MB / 0.8877 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001079/1.618, allocations: 63.98 kB / 0.8878 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.067e-05/1.618, allocations: 8 kB / 0.8878 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-05/1.618, allocations: 19.94 kB / 0.8878 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04061/1.659, allocations: 18.53 MB / 0.9059 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.2e-05/1.659, allocations: 8 kB / 0.9059 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003067/1.662, allocations: 0.6123 MB / 0.9065 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006819/1.669, allocations: 1.745 MB / 0.9082 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006541/1.67, allocations: 81.95 kB / 0.9083 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01864/1.688, allocations: 10.59 MB / 0.9186 GB, free: 13.86 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.594e-05/1.688, allocations: 19.88 kB / 0.9186 GB, free: 13.84 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02376/1.712, allocations: 12.19 MB / 0.9305 GB, free: 1.383 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002409/1.714, allocations: 0.6452 MB / 0.9312 GB, free: 0.7148 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001454/1.716, allocations: 79.98 kB / 0.9312 GB, free: 0.6367 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003173/1.719, allocations: 195.8 kB / 0.9314 GB, free: 456 kB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007766/1.72, allocations: 265.5 kB / 0.9317 GB, free: 192 kB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002932/1.72, allocations: 112 kB / 0.9318 GB, free: 80 kB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.0084/1.729, allocations: 4.038 MB / 0.9357 GB, free: 12.05 MB / 0.6388 GB Notification: Performance of sort global known variables: time 1.052e-06/1.729, allocations: 0 / 0.9357 GB, free: 12.05 MB / 0.6388 GB Notification: Performance of remove unused functions: time 0.01095/1.74, allocations: 1.906 MB / 0.9376 GB, free: 10.14 MB / 0.6388 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * 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 (325): * Single equations (assignments): 318 * 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.02423/1.764, allocations: 12.98 MB / 0.9503 GB, free: 12.9 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.01859/1.783, allocations: 9.876 MB / 0.9599 GB, free: 3.031 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.694e-05/1.783, allocations: 4 kB / 0.9599 GB, free: 3.027 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.2458/2.028, allocations: 3.311 MB / 0.9631 GB, free: 247.9 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005631/2.034, allocations: 0.8063 MB / 0.9639 GB, free: 247.8 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.121/2.155, allocations: 87.7 MB / 1.05 GB, free: 175.7 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01065/2.166, allocations: 5.577 MB / 1.055 GB, free: 170.1 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.007951/2.174, allocations: 3.312 MB / 1.058 GB, free: 166.8 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005709/2.18, allocations: 3.67 MB / 1.062 GB, free: 163.1 MB / 0.6544 GB Notification: Performance of SimCode: time 1.603e-06/2.18, allocations: 4 kB / 1.062 GB, free: 163.1 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1708/2.35, allocations: 128.2 MB / 1.187 GB, free: 35.55 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 38.61/40.96, allocations: 14.98 kB / 1.187 GB, free: 35.55 MB / 0.6544 GB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSR.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.csv","/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