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.001082/0.001082, allocations: 104.1 kB / 17.64 MB, free: 5.48 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.001007/0.001006, allocations: 192 kB / 18.55 MB, free: 4.566 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.352/1.352, allocations: 222.9 MB / 242.3 MB, free: 15.18 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.2136/0.2136, allocations: 44.17 MB / 336.6 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 61.06 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.1412, allocations: 60.82 MB / 469.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.0194/0.1606, allocations: 17.7 MB / 487.1 MB, free: 12.51 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01605/0.1767, allocations: 5.687 MB / 492.7 MB, free: 6.805 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003825/0.1806, allocations: 115.7 kB / 492.9 MB, free: 6.691 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009076/0.1897, allocations: 4.579 MB / 497.4 MB, free: 2.098 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01102/0.2008, allocations: 3.003 MB / 0.4887 GB, free: 15.08 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004271/0.2051, allocations: 1.505 MB / 0.4902 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.013/0.2181, allocations: 8.755 MB / 0.4987 GB, free: 4.805 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3143/0.5324, allocations: 6.447 MB / 0.505 GB, free: 15.69 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007404/0.5399, allocations: 3.012 MB / 0.508 GB, free: 15.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009714/0.5496, allocations: 4.261 MB / 0.5121 GB, free: 15.14 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004326/0.554, allocations: 0.6628 MB / 0.5128 GB, free: 15.14 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007392/0.5614, allocations: 1.848 MB / 0.5146 GB, free: 15.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007034/0.5685, allocations: 3.719 MB / 0.5182 GB, free: 14.78 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01137/0.5799, allocations: 4.255 MB / 0.5224 GB, free: 13.17 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02036/0.6003, allocations: 13.24 MB / 0.5353 GB, free: 6.484 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.6004, allocations: 0.7812 kB / 0.5353 GB, free: 6.484 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.6004, allocations: 0 / 0.5353 GB, free: 6.484 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005714/0.601, allocations: 1.344 kB / 0.5353 GB, free: 6.484 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.02632/0.6273, allocations: 9.156 MB / 0.5442 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.6274, allocations: 9.969 kB / 0.5442 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004439/0.6318, allocations: 1.419 MB / 0.5456 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03255/0.6644, allocations: 5.959 MB / 0.5515 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01521/0.6797, allocations: 6.338 MB / 0.5576 GB, free: 5.332 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004945/0.6802, allocations: 440.9 kB / 0.5581 GB, free: 4.969 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002914/0.6831, allocations: 0.6062 MB / 0.5587 GB, free: 4.434 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04387/0.727, allocations: 20.55 MB / 0.5787 GB, free: 15.08 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004585/0.7275, allocations: 83.89 kB / 0.5788 GB, free: 15.04 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003093/0.7306, allocations: 266.6 kB / 0.5791 GB, free: 14.84 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006794/0.7374, allocations: 3.713 MB / 0.5827 GB, free: 11.18 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03903/0.7765, allocations: 18.07 MB / 0.6003 GB, free: 9.41 MB / 446.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.1081/0.8846, allocations: 74.31 MB / 0.6729 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01854/0.9032, allocations: 7.421 MB / 0.6801 GB, free: 6.383 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005781/0.909, allocations: 4.023 MB / 0.6841 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2592/1.168, allocations: 17.95 MB / 0.7016 GB, free: 179.7 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.84e-05/1.168, allocations: 68.86 kB / 0.7017 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=332): time 8.205e-06/1.168, allocations: 0 / 0.7017 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=413): time 0.1142/1.283, allocations: 34.6 MB / 0.7355 GB, free: 171.7 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.826e-05/1.283, allocations: 195.8 kB / 0.7357 GB, free: 171.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008758/1.291, allocations: 6.491 MB / 0.742 GB, free: 169.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008596/1.292, allocations: 90.41 kB / 0.7421 GB, free: 169.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003165/1.296, allocations: 5.419 MB / 0.7474 GB, free: 164.3 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002211/1.298, allocations: 1.522 MB / 0.7489 GB, free: 163 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002827/1.301, allocations: 2.068 MB / 0.7509 GB, free: 161 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.674e-05/1.301, allocations: 301.1 kB / 0.7512 GB, free: 160.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005522/1.306, allocations: 4.178 MB / 0.7552 GB, free: 156.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007892/1.314, allocations: 10.07 MB / 0.7651 GB, free: 143.7 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01438/1.329, allocations: 15.36 MB / 0.7801 GB, free: 125.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001489/1.329, allocations: 60 kB / 0.7801 GB, free: 125.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1377) (initialization): time 0.02859/1.357, allocations: 15.93 MB / 0.7957 GB, free: 109.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001098/1.358, allocations: 98.03 kB / 0.7958 GB, free: 109.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001911/1.358, allocations: 204 kB / 0.796 GB, free: 109.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007286/1.365, allocations: 2.312 MB / 0.7982 GB, free: 106.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007516/1.373, allocations: 2.402 MB / 0.8006 GB, free: 104.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01603/1.389, allocations: 12.52 MB / 0.8128 GB, free: 91.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007948/1.397, allocations: 0.5812 MB / 0.8134 GB, free: 91.18 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001651/1.398, allocations: 0.5887 MB / 0.8139 GB, free: 90.6 MB / 0.5294 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.006411/1.405, allocations: 3.757 MB / 0.8176 GB, free: 86.83 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001125/1.406, allocations: 0.5939 MB / 0.8182 GB, free: 86.23 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01508/1.421, allocations: 8.168 MB / 0.8262 GB, free: 78.01 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.745e-05/1.421, allocations: 59.98 kB / 0.8262 GB, free: 77.95 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.065e-05/1.421, allocations: 21.25 kB / 0.8262 GB, free: 77.93 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.507e-05/1.421, allocations: 15.94 kB / 0.8263 GB, free: 77.92 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03395/1.455, allocations: 18.64 MB / 0.8445 GB, free: 58.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.732e-05/1.455, allocations: 12 kB / 0.8445 GB, free: 58.92 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002828/1.458, allocations: 0.6234 MB / 0.8451 GB, free: 58.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005902/1.464, allocations: 1.745 MB / 0.8468 GB, free: 56.55 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007283/1.465, allocations: 79.83 kB / 0.8469 GB, free: 56.48 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0142/1.479, allocations: 10.58 MB / 0.8572 GB, free: 45.76 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/1.479, allocations: 15.94 kB / 0.8572 GB, free: 45.75 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01834/1.497, allocations: 12.16 MB / 0.8691 GB, free: 33.31 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002144/1.499, allocations: 0.6143 MB / 0.8697 GB, free: 32.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001428/1.501, allocations: 83.42 kB / 0.8698 GB, free: 32.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002682/1.504, allocations: 195.8 kB / 0.87 GB, free: 32.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006408/1.504, allocations: 258.7 kB / 0.8702 GB, free: 32.15 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002394/1.504, allocations: 116.8 kB / 0.8703 GB, free: 32.04 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005593/1.51, allocations: 4.034 MB / 0.8743 GB, free: 28.01 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2e-07/1.51, allocations: 0 / 0.8743 GB, free: 28.01 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009575/1.52, allocations: 1.909 MB / 0.8761 GB, free: 26.11 MB / 0.5294 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.01962/1.539, allocations: 12.93 MB / 0.8887 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.237/1.776, allocations: 15.44 MB / 0.9038 GB, free: 175.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-05/1.776, allocations: 2.125 kB / 0.9038 GB, free: 175.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005445/1.782, allocations: 3.312 MB / 0.9071 GB, free: 174.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005097/1.787, allocations: 0.8097 MB / 0.9078 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1544/1.941, allocations: 105.1 MB / 1.01 GB, free: 76.25 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01297/1.954, allocations: 5.582 MB / 1.016 GB, free: 70.65 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.009847/1.964, allocations: 3.308 MB / 1.019 GB, free: 67.33 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006999/1.971, allocations: 3.67 MB / 1.023 GB, free: 63.66 MB / 0.5294 GB Notification: Performance of SimCode: time 1.173e-06/1.971, allocations: 0 / 1.023 GB, free: 63.66 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4695/2.441, allocations: 134.4 MB / 1.154 GB, free: 157.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.35/15.79, allocations: 0 / 1.154 GB, free: 157.7 MB / 0.545 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