Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_LineForceWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_LineForceWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001255/0.001255, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001357/0.001358, allocations: 206 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2292/0.2292, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 76.16 kB / 480.8 MB, free: 4.555 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3508/0.3522, allocations: 62.42 MB / 0.5305 GB, free: 13.3 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithMass): time 0.01658/0.3688, allocations: 14.98 MB / 0.5451 GB, free: 1.531 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01133/0.3802, allocations: 5.008 MB / 0.55 GB, free: 13.59 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003191/0.3835, allocations: 104.3 kB / 0.5501 GB, free: 13.56 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0079/0.3914, allocations: 4.003 MB / 0.554 GB, free: 9.543 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007012/0.3985, allocations: 2.393 MB / 0.5564 GB, free: 7.141 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003008/0.4015, allocations: 1.158 MB / 0.5575 GB, free: 5.98 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01005/0.4116, allocations: 6.586 MB / 0.5639 GB, free: 15.38 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007455/0.4191, allocations: 4.693 MB / 0.5685 GB, free: 10.62 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004425/0.4235, allocations: 2.196 MB / 0.5707 GB, free: 8.418 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005168/0.4287, allocations: 3.018 MB / 0.5736 GB, free: 5.391 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001976/0.4308, allocations: 464 kB / 0.5741 GB, free: 4.938 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004613/0.4354, allocations: 1.529 MB / 0.5756 GB, free: 3.406 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005311/0.4408, allocations: 2.727 MB / 0.5782 GB, free: 0.6719 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006392/0.4472, allocations: 3.131 MB / 0.5813 GB, free: 13.52 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01451/0.4617, allocations: 9.771 MB / 0.5908 GB, free: 3.715 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.884e-06/0.4618, allocations: 0 / 0.5908 GB, free: 3.715 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.4618, allocations: 0 / 0.5908 GB, free: 3.715 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004019/0.4622, allocations: 4 kB / 0.5908 GB, free: 3.711 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: 1941 * Number of variables: 1941 Notification: Performance of Generate backend data structure: time 0.02004/0.4823, allocations: 7.172 MB / 0.5978 GB, free: 12.45 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.4823, allocations: 12.03 kB / 0.5978 GB, free: 12.43 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002334/0.4847, allocations: 0.918 MB / 0.5987 GB, free: 11.5 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1477/0.6324, allocations: 12.54 MB / 0.611 GB, free: 14.95 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01064/0.6431, allocations: 4.584 MB / 0.6155 GB, free: 10.31 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002763/0.6434, allocations: 316.1 kB / 0.6158 GB, free: 9.996 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001603/0.645, allocations: 419.7 kB / 0.6162 GB, free: 9.586 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02618/0.6712, allocations: 13.69 MB / 0.6295 GB, free: 11.03 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002111/0.6714, allocations: 63.52 kB / 0.6296 GB, free: 10.96 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009535/0.6724, allocations: 207.8 kB / 0.6298 GB, free: 10.76 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004154/0.6766, allocations: 2.519 MB / 0.6322 GB, free: 8.238 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.024/0.7006, allocations: 11.55 MB / 0.6435 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06503/0.7657, allocations: 52.92 MB / 0.6952 GB, free: 6.242 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01572/0.7814, allocations: 5.809 MB / 0.7009 GB, free: 296 kB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004708/0.7862, allocations: 3.395 MB / 0.7042 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2847/1.071, allocations: 14.87 MB / 0.7187 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.575e-05/1.071, allocations: 58.62 kB / 0.7188 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=227): time 4.779e-06/1.071, allocations: 1.406 kB / 0.7188 GB, free: 163.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=264): time 0.06877/1.14, allocations: 26.53 MB / 0.7447 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.519e-05/1.14, allocations: 261.3 kB / 0.7449 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004804/1.145, allocations: 5.078 MB / 0.7499 GB, free: 147.4 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001986/1.145, allocations: 69.53 kB / 0.7499 GB, free: 147.3 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001467/1.146, allocations: 4.104 MB / 0.754 GB, free: 143.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005908/1.147, allocations: 1.036 MB / 0.755 GB, free: 142.6 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001354/1.148, allocations: 1.473 MB / 0.7564 GB, free: 141.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.471e-05/1.148, allocations: 305.1 kB / 0.7567 GB, free: 140.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002878/1.151, allocations: 2.732 MB / 0.7594 GB, free: 138.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004118/1.155, allocations: 7.075 MB / 0.7663 GB, free: 128.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008022/1.163, allocations: 10.66 MB / 0.7767 GB, free: 116.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.506e-05/1.164, allocations: 43.47 kB / 0.7767 GB, free: 116.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=963) (initialization): time 0.01201/1.176, allocations: 10.14 MB / 0.7866 GB, free: 106 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.548e-05/1.176, allocations: 68 kB / 0.7867 GB, free: 105.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.202e-05/1.176, allocations: 152 kB / 0.7868 GB, free: 105.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001359/1.177, allocations: 0.7075 MB / 0.7875 GB, free: 105 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004821/1.182, allocations: 1.774 MB / 0.7893 GB, free: 103.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005688/1.188, allocations: 6.839 MB / 0.7959 GB, free: 96.15 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004907/1.193, allocations: 415.5 kB / 0.7963 GB, free: 95.74 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006044/1.193, allocations: 448 kB / 0.7968 GB, free: 95.3 MB / 0.5606 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.003052/1.196, allocations: 2.634 MB / 0.7993 GB, free: 92.66 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00067/1.197, allocations: 492.7 kB / 0.7998 GB, free: 92.18 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005831/1.203, allocations: 4.381 MB / 0.8041 GB, free: 87.78 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.947e-05/1.203, allocations: 29.59 kB / 0.8041 GB, free: 87.75 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/1.203, allocations: 12 kB / 0.8041 GB, free: 87.74 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.067e-05/1.203, allocations: 15.89 kB / 0.8041 GB, free: 87.72 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01524/1.218, allocations: 10.75 MB / 0.8146 GB, free: 76.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.079e-05/1.218, allocations: 0 / 0.8146 GB, free: 76.96 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002308/1.22, allocations: 0.4953 MB / 0.8151 GB, free: 76.47 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001207/1.222, allocations: 493.2 kB / 0.8156 GB, free: 75.98 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001942/1.222, allocations: 47.98 kB / 0.8156 GB, free: 75.93 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005082/1.227, allocations: 6.219 MB / 0.8217 GB, free: 69.45 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/1.227, allocations: 0 / 0.8217 GB, free: 69.45 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008525/1.236, allocations: 7.655 MB / 0.8292 GB, free: 61.72 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001085/1.237, allocations: 0.5095 MB / 0.8297 GB, free: 61.19 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005331/1.237, allocations: 39.98 kB / 0.8297 GB, free: 61.15 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001811/1.239, allocations: 167.9 kB / 0.8299 GB, free: 60.99 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000348/1.239, allocations: 137.8 kB / 0.83 GB, free: 60.85 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001655/1.24, allocations: 79.98 kB / 0.8301 GB, free: 60.77 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00373/1.243, allocations: 3.176 MB / 0.8332 GB, free: 57.61 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.9e-07/1.243, allocations: 3.938 kB / 0.8332 GB, free: 57.61 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005809/1.249, allocations: 1.277 MB / 0.8344 GB, free: 56.33 MB / 0.5606 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.008651/1.258, allocations: 8.359 MB / 0.8426 GB, free: 47.89 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008766/1.267, allocations: 6.795 MB / 0.8492 GB, free: 41.1 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.114e-05/1.267, allocations: 4 kB / 0.8493 GB, free: 41.1 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002452/1.269, allocations: 2.378 MB / 0.8516 GB, free: 38.7 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003242/1.272, allocations: 0.6212 MB / 0.8522 GB, free: 38.09 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07214/1.344, allocations: 59.14 MB / 0.9099 GB, free: 3.988 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005148/1.35, allocations: 4.101 MB / 0.9139 GB, free: 15.86 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.005549/1.355, allocations: 2.373 MB / 0.9163 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003747/1.359, allocations: 2.62 MB / 0.9188 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of SimCode: time 7.52e-07/1.359, allocations: 4 kB / 0.9188 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4104/1.769, allocations: 91.72 MB / 1.008 GB, free: 194.4 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 34.38/36.15, allocations: 12.44 kB / 1.008 GB, free: 194.4 MB / 0.6387 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithMass.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_Forces_LineForceWithMass.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Forces.LineForceWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches