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.001201/0.001201, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001237/0.001237, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2037/0.2037, allocations: 46.1 MB / 344.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001322, allocations: 83.86 kB / 480.8 MB, free: 4.574 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3375, allocations: 62.44 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithMass): time 0.01558/0.3531, allocations: 14.96 MB / 0.5451 GB, free: 1.645 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0117/0.3648, allocations: 5.02 MB / 0.55 GB, free: 13.69 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003952/0.3688, allocations: 104.9 kB / 0.5501 GB, free: 13.64 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007594/0.3765, allocations: 3.999 MB / 0.554 GB, free: 9.633 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006494/0.383, allocations: 2.396 MB / 0.5564 GB, free: 7.23 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002757/0.3858, allocations: 1.154 MB / 0.5575 GB, free: 6.074 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009365/0.3952, allocations: 6.589 MB / 0.5639 GB, free: 15.47 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006422/0.4016, allocations: 4.691 MB / 0.5685 GB, free: 10.71 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003934/0.4056, allocations: 2.188 MB / 0.5707 GB, free: 8.52 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004446/0.4101, allocations: 3.022 MB / 0.5736 GB, free: 5.488 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001576/0.4117, allocations: 460 kB / 0.5741 GB, free: 5.039 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004122/0.4158, allocations: 1.533 MB / 0.5756 GB, free: 3.504 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004203/0.4201, allocations: 2.728 MB / 0.5782 GB, free: 0.7695 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00534/0.4254, allocations: 3.135 MB / 0.5813 GB, free: 13.61 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01284/0.4383, allocations: 9.766 MB / 0.5908 GB, free: 3.812 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.027e-05/0.4383, allocations: 0 / 0.5908 GB, free: 3.812 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.4384, allocations: 0 / 0.5908 GB, free: 3.812 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003992/0.4388, allocations: 4 kB / 0.5908 GB, free: 3.809 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.02048/0.4593, allocations: 7.172 MB / 0.5978 GB, free: 12.54 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.172e-05/0.4593, allocations: 8.031 kB / 0.5978 GB, free: 12.54 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002359/0.4617, allocations: 0.918 MB / 0.5987 GB, free: 11.61 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1694/0.6311, allocations: 12.54 MB / 0.611 GB, free: 15.05 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01161/0.6427, allocations: 4.58 MB / 0.6154 GB, free: 10.41 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003181/0.6431, allocations: 316.1 kB / 0.6157 GB, free: 10.1 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001797/0.6449, allocations: 431.7 kB / 0.6162 GB, free: 9.676 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02843/0.6733, allocations: 13.69 MB / 0.6295 GB, free: 11.12 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003343/0.6737, allocations: 59.52 kB / 0.6296 GB, free: 11.06 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001703/0.6755, allocations: 203.8 kB / 0.6298 GB, free: 10.86 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004437/0.6799, allocations: 2.523 MB / 0.6322 GB, free: 8.332 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02548/0.7054, allocations: 11.54 MB / 0.6435 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07196/0.7774, allocations: 52.92 MB / 0.6952 GB, free: 6.344 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01701/0.7945, allocations: 5.811 MB / 0.7009 GB, free: 396 kB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00495/0.7995, allocations: 3.385 MB / 0.7042 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.309/1.109, allocations: 14.88 MB / 0.7187 GB, free: 163.3 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.38e-05/1.109, allocations: 62.97 kB / 0.7188 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=227): time 4.729e-06/1.109, allocations: 3.031 kB / 0.7188 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=264): time 0.07327/1.182, allocations: 26.53 MB / 0.7447 GB, free: 152.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.096e-05/1.182, allocations: 261.3 kB / 0.7449 GB, free: 152.6 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005067/1.187, allocations: 5.078 MB / 0.7499 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000361/1.187, allocations: 69.64 kB / 0.7499 GB, free: 147.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001617/1.189, allocations: 4.106 MB / 0.754 GB, free: 143.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007508/1.19, allocations: 1.033 MB / 0.755 GB, free: 142.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001397/1.191, allocations: 1.469 MB / 0.7564 GB, free: 141.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.32e-05/1.191, allocations: 305.1 kB / 0.7567 GB, free: 141.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002878/1.194, allocations: 2.736 MB / 0.7594 GB, free: 138.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004267/1.198, allocations: 7.081 MB / 0.7663 GB, free: 129.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008492/1.207, allocations: 10.65 MB / 0.7767 GB, free: 116.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.804e-05/1.207, allocations: 44 kB / 0.7767 GB, free: 116.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=963) (initialization): time 0.01328/1.22, allocations: 10.14 MB / 0.7866 GB, free: 106.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001003/1.221, allocations: 68 kB / 0.7867 GB, free: 106.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001499/1.221, allocations: 152 kB / 0.7868 GB, free: 106 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001574/1.222, allocations: 0.7123 MB / 0.7875 GB, free: 105.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005265/1.228, allocations: 1.77 MB / 0.7893 GB, free: 103.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006117/1.234, allocations: 6.85 MB / 0.796 GB, free: 96.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005855/1.24, allocations: 411.4 kB / 0.7963 GB, free: 95.98 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001194/1.241, allocations: 448 kB / 0.7968 GB, free: 95.54 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.004333/1.245, allocations: 2.634 MB / 0.7993 GB, free: 92.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001058/1.246, allocations: 492.7 kB / 0.7998 GB, free: 92.42 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006482/1.253, allocations: 4.383 MB / 0.8041 GB, free: 88.02 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.283e-05/1.253, allocations: 28 kB / 0.8041 GB, free: 87.99 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.975e-05/1.253, allocations: 4 kB / 0.8041 GB, free: 87.98 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.456e-05/1.253, allocations: 15.95 kB / 0.8041 GB, free: 87.97 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01779/1.271, allocations: 10.76 MB / 0.8146 GB, free: 77.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.406e-05/1.271, allocations: 0 / 0.8146 GB, free: 77.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002336/1.273, allocations: 499.2 kB / 0.8151 GB, free: 76.71 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001248/1.274, allocations: 493.2 kB / 0.8156 GB, free: 76.23 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002183/1.274, allocations: 51.66 kB / 0.8156 GB, free: 76.18 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005139/1.28, allocations: 6.222 MB / 0.8217 GB, free: 69.69 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/1.28, allocations: 4 kB / 0.8217 GB, free: 69.68 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008666/1.288, allocations: 7.655 MB / 0.8292 GB, free: 61.96 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001339/1.29, allocations: 0.5103 MB / 0.8297 GB, free: 61.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00115/1.291, allocations: 43.98 kB / 0.8297 GB, free: 61.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002548/1.293, allocations: 159.7 kB / 0.8299 GB, free: 61.23 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000346/1.294, allocations: 141.8 kB / 0.83 GB, free: 61.09 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001767/1.294, allocations: 71.98 kB / 0.8301 GB, free: 61.02 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00631/1.3, allocations: 3.176 MB / 0.8332 GB, free: 57.86 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/1.3, allocations: 0 / 0.8332 GB, free: 57.86 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00696/1.307, allocations: 1.285 MB / 0.8344 GB, free: 56.57 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.00948/1.317, allocations: 8.359 MB / 0.8426 GB, free: 48.13 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008467/1.325, allocations: 6.797 MB / 0.8492 GB, free: 41.34 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/1.325, allocations: 0 / 0.8492 GB, free: 41.34 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002588/1.328, allocations: 2.367 MB / 0.8516 GB, free: 38.95 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003999/1.332, allocations: 0.631 MB / 0.8522 GB, free: 38.32 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0845/1.416, allocations: 59.14 MB / 0.9099 GB, free: 4.219 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005824/1.422, allocations: 4.101 MB / 0.9139 GB, free: 92 kB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005981/1.428, allocations: 2.373 MB / 0.9163 GB, free: 13.71 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004221/1.433, allocations: 2.628 MB / 0.9188 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of SimCode: time 8.92e-07/1.433, allocations: 0 / 0.9188 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3892/1.822, allocations: 91.71 MB / 1.008 GB, free: 194.7 MB / 0.6388 GB Notification: Performance of buildModelFMU: Generate platform static: time 32.17/33.99, allocations: 11.14 kB / 1.008 GB, free: 194.7 MB / 0.6388 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