Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.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.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithMass",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.00128/0.00128, allocations: 104.1 kB / 17.63 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.001223/0.001223, allocations: 192 kB / 18.56 MB, free: 4.562 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.454/1.454, allocations: 222.9 MB / 242.3 MB, free: 15.19 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.2157/0.2157, allocations: 44.18 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 65.83 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.137, allocations: 60.81 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithMass): time 0.01677/0.1539, allocations: 15.01 MB / 484.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01256/0.1665, allocations: 5.003 MB / 489.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003363/0.1699, allocations: 99.69 kB / 489.5 MB, free: 10.08 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008107/0.178, allocations: 4.018 MB / 493.5 MB, free: 6.051 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007013/0.1851, allocations: 2.353 MB / 495.8 MB, free: 3.691 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00304/0.1882, allocations: 1.162 MB / 497 MB, free: 2.527 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009244/0.1974, allocations: 6.499 MB / 0.4917 GB, free: 12.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006852/0.2043, allocations: 4.702 MB / 0.4963 GB, free: 7.242 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003963/0.2083, allocations: 2.22 MB / 0.4985 GB, free: 5.016 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004674/0.213, allocations: 3.018 MB / 0.5014 GB, free: 1.988 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00158/0.2146, allocations: 456 kB / 0.5018 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2687/0.4833, allocations: 1.546 MB / 0.5033 GB, free: 20.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004383/0.4878, allocations: 2.68 MB / 0.506 GB, free: 20.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006212/0.494, allocations: 3.157 MB / 0.509 GB, free: 19.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01388/0.5079, allocations: 9.508 MB / 0.5183 GB, free: 18.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.156e-06/0.508, allocations: 0 / 0.5183 GB, free: 18.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.508, allocations: 1.469 kB / 0.5183 GB, free: 18.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004279/0.5084, allocations: 0 / 0.5183 GB, free: 18.18 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: 1941 * Number of variables: 1941 Notification: Performance of Generate backend data structure: time 0.02685/0.5353, allocations: 7.016 MB / 0.5252 GB, free: 15.37 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.257e-05/0.5354, allocations: 9.625 kB / 0.5252 GB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003941/0.5393, allocations: 0.9179 MB / 0.5261 GB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1744/0.7138, allocations: 12.51 MB / 0.5383 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01336/0.7272, allocations: 4.684 MB / 0.5429 GB, free: 7.77 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003151/0.7276, allocations: 317.9 kB / 0.5432 GB, free: 7.504 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002671/0.7302, allocations: 420.6 kB / 0.5436 GB, free: 7.137 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03555/0.7658, allocations: 13.68 MB / 0.5569 GB, free: 8.824 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003726/0.7662, allocations: 57.58 kB / 0.557 GB, free: 8.793 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002357/0.7686, allocations: 203.8 kB / 0.5572 GB, free: 8.641 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004651/0.7733, allocations: 2.519 MB / 0.5597 GB, free: 6.156 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02886/0.8022, allocations: 11.53 MB / 0.5709 GB, free: 10.85 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08976/0.892, allocations: 53.08 MB / 0.6228 GB, free: 4.969 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01798/0.91, allocations: 5.798 MB / 0.6284 GB, free: 15.02 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005599/0.9156, allocations: 3.383 MB / 0.6317 GB, free: 11.63 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02774/0.9434, allocations: 14.79 MB / 0.6462 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.042e-05/0.9435, allocations: 62.53 kB / 0.6462 GB, free: 12.31 MB / 494.1 MB Notification: Performance of pre-optimization done (n=227): time 7.113e-06/0.9435, allocations: 0 / 0.6462 GB, free: 12.31 MB / 494.1 MB Notification: Performance of matching and sorting (n=264): time 0.09438/1.038, allocations: 26.17 MB / 0.6718 GB, free: 2.125 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001644/1.038, allocations: 259.3 kB / 0.672 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01255/1.051, allocations: 5.077 MB / 0.677 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0009059/1.052, allocations: 69.7 kB / 0.677 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003709/1.055, allocations: 3.96 MB / 0.6809 GB, free: 8.715 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001826/1.057, allocations: 0.9856 MB / 0.6819 GB, free: 7.738 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004398/1.062, allocations: 1.464 MB / 0.6833 GB, free: 6.266 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001033/1.062, allocations: 301.1 kB / 0.6836 GB, free: 5.969 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00499/1.067, allocations: 2.729 MB / 0.6863 GB, free: 3.238 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008551/1.075, allocations: 7.077 MB / 0.6932 GB, free: 10.1 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.317/1.392, allocations: 10.65 MB / 0.7036 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001509/1.393, allocations: 46.94 kB / 0.7036 GB, free: 166.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=963) (initialization): time 0.01859/1.411, allocations: 10.1 MB / 0.7135 GB, free: 166 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.067e-05/1.411, allocations: 70.91 kB / 0.7135 GB, free: 166 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001654/1.411, allocations: 151 kB / 0.7137 GB, free: 166 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001625/1.413, allocations: 0.7095 MB / 0.7144 GB, free: 166 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005778/1.419, allocations: 1.775 MB / 0.7161 GB, free: 165.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006355/1.425, allocations: 6.841 MB / 0.7228 GB, free: 161.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006374/1.432, allocations: 416 kB / 0.7232 GB, free: 161.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001145/1.433, allocations: 438.5 kB / 0.7236 GB, free: 161.3 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 693 * Number of states: 0 () * Number of discrete variables: 57 (lineForceWithMass.lineShapeColor[3],lineForceWithMass.lineShapeColor[2],lineForceWithMass.lineShapeColor[1],lineForceWithMass.massColor[3],lineForceWithMass.massColor[2],lineForceWithMass.massColor[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (913): * Single equations (assignments): 908 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,13,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004619/1.437, allocations: 2.634 MB / 0.7262 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008039/1.438, allocations: 466.4 kB / 0.7266 GB, free: 160.4 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006534/1.445, allocations: 4.38 MB / 0.7309 GB, free: 158.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.098e-05/1.445, allocations: 31.42 kB / 0.7309 GB, free: 158.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/1.445, allocations: 7.906 kB / 0.7309 GB, free: 158.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.95e-05/1.445, allocations: 15.05 kB / 0.731 GB, free: 158.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0191/1.464, allocations: 10.84 MB / 0.7415 GB, free: 153.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.177e-05/1.464, allocations: 4 kB / 0.7415 GB, free: 153.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002388/1.466, allocations: 497.5 kB / 0.742 GB, free: 152.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001298/1.468, allocations: 499.3 kB / 0.7425 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000251/1.468, allocations: 42.67 kB / 0.7425 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005793/1.474, allocations: 6.212 MB / 0.7486 GB, free: 146 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/1.474, allocations: 7.984 kB / 0.7486 GB, free: 145.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01069/1.485, allocations: 7.61 MB / 0.756 GB, free: 138.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001737/1.486, allocations: 495 kB / 0.7565 GB, free: 137.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006395/1.487, allocations: 50.77 kB / 0.7566 GB, free: 137.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001945/1.489, allocations: 155.7 kB / 0.7567 GB, free: 137.8 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003767/1.489, allocations: 145.8 kB / 0.7569 GB, free: 137.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001705/1.49, allocations: 75.92 kB / 0.7569 GB, free: 137.5 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004953/1.495, allocations: 3.18 MB / 0.76 GB, free: 134.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/1.495, allocations: 0 / 0.76 GB, free: 134.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007167/1.502, allocations: 1.304 MB / 0.7613 GB, free: 133.1 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (224): * Single equations (assignments): 219 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009437/1.511, allocations: 8.309 MB / 0.7694 GB, free: 124.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01387/1.525, allocations: 9.471 MB / 0.7787 GB, free: 115.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.767e-06/1.525, allocations: 4 kB / 0.7787 GB, free: 115.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002561/1.528, allocations: 2.367 MB / 0.781 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003687/1.531, allocations: 0.6282 MB / 0.7816 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07753/1.609, allocations: 69.54 MB / 0.8495 GB, free: 33.23 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003979/1.613, allocations: 4.101 MB / 0.8535 GB, free: 29.1 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005656/1.619, allocations: 2.369 MB / 0.8558 GB, free: 26.72 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002945/1.622, allocations: 2.624 MB / 0.8584 GB, free: 24.1 MB / 0.5294 GB Notification: Performance of SimCode: time 1.583e-06/1.622, allocations: 0 / 0.8584 GB, free: 24.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4286/2.05, allocations: 96.47 MB / 0.9526 GB, free: 194.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/13.95, allocations: 12.89 kB / 0.9526 GB, free: 194.1 MB / 0.5606 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithMass.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/LineForceWithMass/LineForceWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches