Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.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.JointUSP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP",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.001121/0.001121, allocations: 109.8 kB / 17.78 MB, free: 5.266 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.001125/0.001126, allocations: 183.9 kB / 18.71 MB, free: 4.34 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.377/1.377, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.1997/0.1997, allocations: 44.19 MB / 336.8 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 71.81 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3462/0.3474, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.FourbarVariants.JointUSP): time 0.01689/0.3643, allocations: 16 MB / 0.534 GB, free: 7.766 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01209/0.3765, allocations: 5.451 MB / 0.5394 GB, free: 3.453 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003378/0.3799, allocations: 111 kB / 0.5395 GB, free: 3.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009701/0.3896, allocations: 5.128 MB / 0.5445 GB, free: 8 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00882/0.3985, allocations: 2.704 MB / 0.5471 GB, free: 14.04 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003416/0.4019, allocations: 1.387 MB / 0.5485 GB, free: 13.1 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01133/0.4133, allocations: 8.114 MB / 0.5564 GB, free: 5.188 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01029/0.4236, allocations: 7.028 MB / 0.5633 GB, free: 14.07 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006684/0.4303, allocations: 2.765 MB / 0.566 GB, free: 11.29 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006814/0.4372, allocations: 3.759 MB / 0.5696 GB, free: 7.523 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002421/0.4396, allocations: 0.6367 MB / 0.5703 GB, free: 6.887 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004662/0.4443, allocations: 1.791 MB / 0.572 GB, free: 5.094 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004777/0.4491, allocations: 3.383 MB / 0.5753 GB, free: 1.703 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007936/0.4571, allocations: 3.8 MB / 0.579 GB, free: 13.88 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01647/0.4736, allocations: 12.25 MB / 0.591 GB, free: 1.586 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.4736, allocations: 7.938 kB / 0.591 GB, free: 1.578 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4736, allocations: 0 / 0.591 GB, free: 1.578 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003886/0.474, allocations: 0 / 0.591 GB, free: 1.578 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2166 * Number of variables: 2166 Notification: Performance of Generate backend data structure: time 0.02326/0.4973, allocations: 8.401 MB / 0.5992 GB, free: 9.074 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.305e-05/0.4974, allocations: 8.031 kB / 0.5992 GB, free: 9.066 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003758/0.5011, allocations: 1.156 MB / 0.6003 GB, free: 7.898 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05709/0.5582, allocations: 8.402 MB / 0.6085 GB, free: 15.48 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01512/0.5734, allocations: 6.231 MB / 0.6146 GB, free: 9.172 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003505/0.5738, allocations: 386 kB / 0.615 GB, free: 8.793 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001988/0.5758, allocations: 0.5036 MB / 0.6155 GB, free: 8.289 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0309/0.6067, allocations: 15.41 MB / 0.6305 GB, free: 7.984 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002247/0.607, allocations: 67.47 kB / 0.6306 GB, free: 7.918 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008787/0.6079, allocations: 231.8 kB / 0.6308 GB, free: 7.691 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004009/0.6119, allocations: 2.548 MB / 0.6333 GB, free: 5.141 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02782/0.6397, allocations: 12.87 MB / 0.6459 GB, free: 8.246 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0835/0.7233, allocations: 57.01 MB / 0.7015 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01806/0.7414, allocations: 6.318 MB / 0.7077 GB, free: 7.195 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004793/0.7462, allocations: 3.309 MB / 0.7109 GB, free: 3.875 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.269/1.015, allocations: 11.3 MB / 0.722 GB, free: 165.1 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.401e-05/1.015, allocations: 66 kB / 0.722 GB, free: 165 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=245): time 4.589e-06/1.015, allocations: 1.531 kB / 0.722 GB, free: 165 MB / 0.5606 GB Notification: Performance of matching and sorting (n=338): time 0.1262/1.142, allocations: 40.27 MB / 0.7614 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.148e-05/1.142, allocations: 239.9 kB / 0.7616 GB, free: 141.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007293/1.149, allocations: 5.751 MB / 0.7672 GB, free: 135.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008866/1.15, allocations: 73.7 kB / 0.7673 GB, free: 135.8 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002725/1.153, allocations: 4.613 MB / 0.7718 GB, free: 131.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001698/1.154, allocations: 1.3 MB / 0.7731 GB, free: 130.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00207/1.156, allocations: 1.644 MB / 0.7747 GB, free: 128.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.195e-05/1.157, allocations: 305.1 kB / 0.775 GB, free: 128.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004149/1.161, allocations: 3.768 MB / 0.7786 GB, free: 124.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005845/1.167, allocations: 8.299 MB / 0.7867 GB, free: 114 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01189/1.178, allocations: 13 MB / 0.7994 GB, free: 98.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001298/1.179, allocations: 48 kB / 0.7995 GB, free: 98.75 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1067) (initialization): time 0.02738/1.206, allocations: 15.48 MB / 0.8146 GB, free: 83.22 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.495e-05/1.206, allocations: 72 kB / 0.8147 GB, free: 83.15 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001445/1.206, allocations: 163.4 kB / 0.8148 GB, free: 83 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01167/1.218, allocations: 4.099 MB / 0.8188 GB, free: 78.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006518/1.224, allocations: 1.801 MB / 0.8206 GB, free: 77.09 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0248/1.249, allocations: 20.93 MB / 0.841 GB, free: 56.03 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006419/1.256, allocations: 0.4909 MB / 0.8415 GB, free: 55.54 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001158/1.257, allocations: 468 kB / 0.8419 GB, free: 55.08 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 717 * Number of states: 0 () * Number of discrete variables: 46 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (966): * Single equations (assignments): 962 * Array equations: 3 * 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 {(1,77,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004823/1.262, allocations: 3.127 MB / 0.845 GB, free: 51.94 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001206/1.263, allocations: 0.5546 MB / 0.8455 GB, free: 51.39 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01763/1.281, allocations: 9.603 MB / 0.8549 GB, free: 41.72 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.207e-05/1.281, allocations: 40 kB / 0.855 GB, free: 41.68 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.777e-05/1.281, allocations: 16 kB / 0.855 GB, free: 41.66 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-05/1.281, allocations: 19.94 kB / 0.855 GB, free: 41.64 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03768/1.319, allocations: 19.61 MB / 0.8741 GB, free: 21.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.834e-05/1.319, allocations: 4.781 kB / 0.8741 GB, free: 21.88 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002283/1.321, allocations: 0.4914 MB / 0.8746 GB, free: 21.39 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01124/1.332, allocations: 3.651 MB / 0.8782 GB, free: 17.73 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007158/1.333, allocations: 67.94 kB / 0.8783 GB, free: 17.66 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02233/1.355, allocations: 18.42 MB / 0.8962 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.076e-05/1.355, allocations: 11.94 kB / 0.8963 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04056/1.396, allocations: 14.24 MB / 0.9102 GB, free: 0.6484 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002721/1.399, allocations: 0.5949 MB / 0.9107 GB, free: 32 kB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002118/1.401, allocations: 59.69 kB / 0.9108 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005639/1.406, allocations: 227.1 kB / 0.911 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001596/1.408, allocations: 222.2 kB / 0.9112 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007949/1.409, allocations: 87.98 kB / 0.9113 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.01103/1.42, allocations: 3.651 MB / 0.9149 GB, free: 11.84 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7.61e-07/1.42, allocations: 4 kB / 0.9149 GB, free: 11.84 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01447/1.434, allocations: 1.703 MB / 0.9165 GB, free: 10.13 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 2 (revolute.phi,revolute.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 (256): * Single equations (assignments): 252 * Array equations: 3 * 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 {(1,64,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.05274/1.487, allocations: 14.99 MB / 0.9312 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.02641/1.514, allocations: 9.264 MB / 0.9402 GB, free: 1.672 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.346e-05/1.514, allocations: 0 / 0.9402 GB, free: 1.672 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.312/1.826, allocations: 3.64 MB / 0.9438 GB, free: 204.8 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005432/1.831, allocations: 0.7683 MB / 0.9445 GB, free: 204.7 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.12/1.951, allocations: 78.61 MB / 1.021 GB, free: 141.9 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005095/1.956, allocations: 4.823 MB / 1.026 GB, free: 137 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.005248/1.962, allocations: 2.59 MB / 1.029 GB, free: 134.4 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003349/1.965, allocations: 3.065 MB / 1.032 GB, free: 131.4 MB / 0.6075 GB Notification: Performance of SimCode: time 8.51e-07/1.965, allocations: 0 / 1.032 GB, free: 131.4 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1665/2.132, allocations: 128.3 MB / 1.157 GB, free: 3.711 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 36.99/39.12, allocations: 0 / 1.157 GB, free: 3.711 MB / 0.6075 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSP.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/FourbarVariants/JointUSP/JointUSP.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSP.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches