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.001172/0.001172, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001479/0.001479, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.4 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.2041/0.2041, allocations: 44.19 MB / 336.8 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 67.91 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.3598, allocations: 60.82 MB / 0.5184 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSR): time 0.01687/0.3767, allocations: 17.69 MB / 0.5357 GB, free: 6.449 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01176/0.3885, allocations: 5.69 MB / 0.5412 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00311/0.3917, allocations: 106.5 kB / 0.5413 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008908/0.4006, allocations: 4.584 MB / 0.5458 GB, free: 14.87 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01207/0.4127, allocations: 3.099 MB / 0.5488 GB, free: 12.65 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004699/0.4175, allocations: 1.492 MB / 0.5503 GB, free: 11.39 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01367/0.4312, allocations: 8.77 MB / 0.5589 GB, free: 2.613 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009853/0.4411, allocations: 6.442 MB / 0.5652 GB, free: 12.1 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006315/0.4474, allocations: 3.022 MB / 0.5681 GB, free: 9.066 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007707/0.4552, allocations: 4.273 MB / 0.5723 GB, free: 4.781 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002798/0.458, allocations: 0.6602 MB / 0.5729 GB, free: 4.121 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005419/0.4635, allocations: 1.849 MB / 0.5747 GB, free: 2.27 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00576/0.4692, allocations: 3.745 MB / 0.5784 GB, free: 14.52 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008203/0.4775, allocations: 4.261 MB / 0.5826 GB, free: 10.23 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01907/0.4966, allocations: 13.73 MB / 0.596 GB, free: 12.45 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.706e-06/0.4966, allocations: 4 kB / 0.596 GB, free: 12.45 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.4967, allocations: 0 / 0.596 GB, free: 12.45 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004729/0.4971, allocations: 0 / 0.596 GB, free: 12.45 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.02562/0.5228, allocations: 9.397 MB / 0.6051 GB, free: 2.945 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/0.5228, allocations: 8.031 kB / 0.6051 GB, free: 2.938 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004071/0.5269, allocations: 1.43 MB / 0.6065 GB, free: 1.496 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03191/0.5588, allocations: 6.009 MB / 0.6124 GB, free: 11.47 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01733/0.5762, allocations: 6.436 MB / 0.6187 GB, free: 4.953 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004421/0.5767, allocations: 442.9 kB / 0.6191 GB, free: 4.52 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00248/0.5792, allocations: 0.6011 MB / 0.6197 GB, free: 3.918 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03972/0.6189, allocations: 20.55 MB / 0.6398 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003657/0.6194, allocations: 75.39 kB / 0.6398 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002428/0.6218, allocations: 275.7 kB / 0.6401 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006311/0.6281, allocations: 3.714 MB / 0.6437 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03971/0.6679, allocations: 18.05 MB / 0.6614 GB, free: 8.082 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.6336/1.302, allocations: 74.1 MB / 0.7337 GB, free: 119.4 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01875/1.32, allocations: 7.421 MB / 0.741 GB, free: 118.1 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005539/1.326, allocations: 4.032 MB / 0.7449 GB, free: 117 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02545/1.351, allocations: 17.97 MB / 0.7625 GB, free: 108.2 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.858e-05/1.352, allocations: 67.25 kB / 0.7625 GB, free: 108.1 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=332): time 6.642e-06/1.352, allocations: 0 / 0.7625 GB, free: 108.1 MB / 0.5607 GB Notification: Performance of matching and sorting (n=413): time 0.1075/1.459, allocations: 35.03 MB / 0.7968 GB, free: 80.54 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.817e-05/1.459, allocations: 192.9 kB / 0.7969 GB, free: 80.31 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007891/1.467, allocations: 6.498 MB / 0.8033 GB, free: 73.94 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0008029/1.468, allocations: 81.7 kB / 0.8034 GB, free: 73.86 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.002453/1.47, allocations: 5.65 MB / 0.8089 GB, free: 68.58 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001575/1.472, allocations: 1.588 MB / 0.8104 GB, free: 67.01 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002476/1.474, allocations: 2.08 MB / 0.8125 GB, free: 64.93 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.355e-05/1.474, allocations: 309.1 kB / 0.8128 GB, free: 64.62 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005124/1.48, allocations: 4.178 MB / 0.8168 GB, free: 60.44 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008004/1.488, allocations: 10.06 MB / 0.8267 GB, free: 47.59 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01611/1.504, allocations: 15.35 MB / 0.8417 GB, free: 29.5 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002079/1.504, allocations: 60 kB / 0.8417 GB, free: 29.44 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1377) (initialization): time 0.03129/1.535, allocations: 15.96 MB / 0.8573 GB, free: 13.45 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001281/1.536, allocations: 96 kB / 0.8574 GB, free: 13.36 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002529/1.536, allocations: 204 kB / 0.8576 GB, free: 13.16 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007096/1.543, allocations: 2.315 MB / 0.8599 GB, free: 10.84 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008214/1.551, allocations: 2.406 MB / 0.8622 GB, free: 8.43 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01756/1.569, allocations: 12.51 MB / 0.8744 GB, free: 11.77 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008408/1.577, allocations: 0.5737 MB / 0.875 GB, free: 11.2 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00176/1.579, allocations: 0.5892 MB / 0.8756 GB, free: 10.61 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.007217/1.586, allocations: 3.754 MB / 0.8792 GB, free: 6.844 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001378/1.588, allocations: 0.6286 MB / 0.8798 GB, free: 6.211 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01696/1.605, allocations: 8.175 MB / 0.8878 GB, free: 13.99 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.782e-05/1.605, allocations: 63.98 kB / 0.8879 GB, free: 13.93 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.116e-05/1.605, allocations: 8 kB / 0.8879 GB, free: 13.92 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.426e-05/1.605, allocations: 19.94 kB / 0.8879 GB, free: 13.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04111/1.646, allocations: 18.52 MB / 0.906 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-05/1.646, allocations: 12 kB / 0.906 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002989/1.649, allocations: 0.6162 MB / 0.9066 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006506/1.656, allocations: 1.745 MB / 0.9083 GB, free: 8.703 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004985/1.656, allocations: 79.94 kB / 0.9084 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01757/1.674, allocations: 10.59 MB / 0.9187 GB, free: 13.9 MB / 0.6232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.081e-05/1.674, allocations: 19.88 kB / 0.9187 GB, free: 13.88 MB / 0.6232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02322/1.697, allocations: 12.19 MB / 0.9306 GB, free: 1.426 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002962/1.7, allocations: 0.6452 MB / 0.9313 GB, free: 0.7578 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001254/1.701, allocations: 79.98 kB / 0.9314 GB, free: 0.6797 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002768/1.704, allocations: 199.7 kB / 0.9315 GB, free: 496 kB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006831/1.705, allocations: 265.7 kB / 0.9318 GB, free: 228 kB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002683/1.705, allocations: 112 kB / 0.9319 GB, free: 116 kB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.007728/1.713, allocations: 4.03 MB / 0.9358 GB, free: 12.09 MB / 0.6388 GB Notification: Performance of sort global known variables: time 7.72e-07/1.713, allocations: 0 / 0.9358 GB, free: 12.09 MB / 0.6388 GB Notification: Performance of remove unused functions: time 0.01209/1.725, allocations: 1.914 MB / 0.9377 GB, free: 10.18 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.0237/1.749, allocations: 12.97 MB / 0.9504 GB, free: 12.93 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0194/1.768, allocations: 9.884 MB / 0.96 GB, free: 3.062 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-05/1.768, allocations: 8.047 kB / 0.96 GB, free: 3.055 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.2941/2.062, allocations: 3.306 MB / 0.9633 GB, free: 249.1 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006191/2.068, allocations: 0.8056 MB / 0.9641 GB, free: 249 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1227/2.191, allocations: 87.69 MB / 1.05 GB, free: 176.3 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007222/2.198, allocations: 5.58 MB / 1.055 GB, free: 170.7 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.007793/2.206, allocations: 3.316 MB / 1.058 GB, free: 167.4 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00566/2.212, allocations: 3.674 MB / 1.062 GB, free: 163.7 MB / 0.6544 GB Notification: Performance of SimCode: time 1.493e-06/2.212, allocations: 0 / 1.062 GB, free: 163.7 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1676/2.38, allocations: 128.2 MB / 1.187 GB, free: 36.14 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 36.74/39.12, allocations: 3.438 kB / 1.187 GB, free: 36.14 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