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.001451/0.001451, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.001618/0.001618, allocations: 192 kB / 18.56 MB, free: 4.434 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.336/1.336, allocations: 222.9 MB / 242.3 MB, free: 15.16 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.2097/0.2097, allocations: 44.18 MB / 336.6 MB, free: 2.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 60.73 kB / 408.5 MB, free: 27.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.112, allocations: 60.82 MB / 469.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithMass): time 0.01514/0.1272, allocations: 15 MB / 484.4 MB, free: 15.17 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01093/0.1381, allocations: 5.011 MB / 489.4 MB, free: 10.15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002095/0.1403, allocations: 103.7 kB / 489.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006672/0.147, allocations: 4.011 MB / 493.5 MB, free: 6.023 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005434/0.1525, allocations: 2.353 MB / 495.8 MB, free: 3.664 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002186/0.1547, allocations: 1.158 MB / 497 MB, free: 2.504 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007131/0.1618, allocations: 6.502 MB / 0.4917 GB, free: 11.99 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004986/0.1668, allocations: 4.705 MB / 0.4963 GB, free: 7.215 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003202/0.17, allocations: 2.22 MB / 0.4985 GB, free: 4.988 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003513/0.1736, allocations: 3.018 MB / 0.5014 GB, free: 1.961 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008032/0.1744, allocations: 459.9 kB / 0.5018 GB, free: 1.512 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2154/0.3898, allocations: 1.54 MB / 0.5033 GB, free: 20.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003951/0.3938, allocations: 2.68 MB / 0.506 GB, free: 20.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006386/0.4002, allocations: 3.155 MB / 0.509 GB, free: 19.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01599/0.4162, allocations: 9.512 MB / 0.5183 GB, free: 18.69 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.328e-06/0.4162, allocations: 1.062 kB / 0.5183 GB, free: 18.69 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.4163, allocations: 0 / 0.5183 GB, free: 18.69 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004458/0.4167, allocations: 0 / 0.5183 GB, free: 18.69 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.02971/0.4464, allocations: 7.008 MB / 0.5252 GB, free: 15.56 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/0.4465, allocations: 14.09 kB / 0.5252 GB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00371/0.4502, allocations: 0.924 MB / 0.5261 GB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1725/0.6228, allocations: 12.5 MB / 0.5383 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0109/0.6337, allocations: 4.695 MB / 0.5429 GB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001772/0.6339, allocations: 310.9 kB / 0.5432 GB, free: 7.609 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001867/0.6358, allocations: 426.6 kB / 0.5436 GB, free: 7.238 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02646/0.6623, allocations: 13.68 MB / 0.5569 GB, free: 8.926 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001704/0.6625, allocations: 55.16 kB / 0.557 GB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006835/0.6632, allocations: 191.9 kB / 0.5572 GB, free: 8.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004022/0.6672, allocations: 2.533 MB / 0.5597 GB, free: 6.258 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02548/0.6927, allocations: 11.54 MB / 0.5709 GB, free: 10.94 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06635/0.7591, allocations: 53.07 MB / 0.6228 GB, free: 5.07 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01711/0.7762, allocations: 5.791 MB / 0.6284 GB, free: 15.13 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00524/0.7815, allocations: 3.382 MB / 0.6317 GB, free: 11.74 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02498/0.8065, allocations: 14.79 MB / 0.6462 GB, free: 12.48 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.396e-05/0.8066, allocations: 74.05 kB / 0.6462 GB, free: 12.41 MB / 494.1 MB Notification: Performance of pre-optimization done (n=227): time 5.37e-06/0.8066, allocations: 0 / 0.6462 GB, free: 12.41 MB / 494.1 MB Notification: Performance of matching and sorting (n=264): time 0.08668/0.8933, allocations: 26.17 MB / 0.6718 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/0.8935, allocations: 264.9 kB / 0.672 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009719/0.9032, allocations: 5.069 MB / 0.677 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0005234/0.9038, allocations: 73.69 kB / 0.677 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003239/0.907, allocations: 3.948 MB / 0.6809 GB, free: 8.824 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001346/0.9084, allocations: 0.9863 MB / 0.6819 GB, free: 7.848 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003521/0.9119, allocations: 1.468 MB / 0.6833 GB, free: 6.371 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 8.528e-05/0.912, allocations: 305.1 kB / 0.6836 GB, free: 6.07 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003758/0.9158, allocations: 2.732 MB / 0.6863 GB, free: 3.336 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006704/0.9225, allocations: 7.078 MB / 0.6932 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2643/1.187, allocations: 10.64 MB / 0.7036 GB, free: 182.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001367/1.187, allocations: 44.22 kB / 0.7036 GB, free: 182.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=963) (initialization): time 0.02022/1.207, allocations: 10.11 MB / 0.7135 GB, free: 180.3 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.642e-05/1.207, allocations: 66.78 kB / 0.7135 GB, free: 180.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00018/1.208, allocations: 153.1 kB / 0.7137 GB, free: 180.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001602/1.209, allocations: 0.7076 MB / 0.7144 GB, free: 180.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005991/1.215, allocations: 1.77 MB / 0.7161 GB, free: 180 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006412/1.222, allocations: 6.857 MB / 0.7228 GB, free: 175.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006021/1.228, allocations: 401.4 kB / 0.7232 GB, free: 175.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001152/1.229, allocations: 447.9 kB / 0.7236 GB, free: 175.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.004384/1.233, allocations: 2.629 MB / 0.7262 GB, free: 174.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008135/1.234, allocations: 468.9 kB / 0.7266 GB, free: 174.2 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005962/1.24, allocations: 4.381 MB / 0.7309 GB, free: 172.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.841e-05/1.24, allocations: 26.31 kB / 0.7309 GB, free: 172.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/1.24, allocations: 3.688 kB / 0.7309 GB, free: 172.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.145e-05/1.24, allocations: 16.7 kB / 0.7309 GB, free: 172.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01608/1.256, allocations: 10.85 MB / 0.7415 GB, free: 166 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.469e-05/1.256, allocations: 7.391 kB / 0.7415 GB, free: 166 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002356/1.259, allocations: 498.7 kB / 0.742 GB, free: 165.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001227/1.26, allocations: 493.7 kB / 0.7425 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001898/1.26, allocations: 49.2 kB / 0.7425 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005069/1.265, allocations: 6.208 MB / 0.7486 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/1.265, allocations: 4 kB / 0.7486 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008208/1.273, allocations: 7.607 MB / 0.756 GB, free: 151.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001195/1.275, allocations: 499.4 kB / 0.7565 GB, free: 151.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006705/1.275, allocations: 44.62 kB / 0.7566 GB, free: 151.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001948/1.277, allocations: 160.4 kB / 0.7567 GB, free: 151.2 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003414/1.278, allocations: 146.8 kB / 0.7568 GB, free: 151 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000163/1.278, allocations: 72.08 kB / 0.7569 GB, free: 151 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004034/1.282, allocations: 3.185 MB / 0.76 GB, free: 147.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.11e-07/1.282, allocations: 3.938 kB / 0.76 GB, free: 147.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006637/1.288, allocations: 1.299 MB / 0.7613 GB, free: 146.5 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.008934/1.297, allocations: 8.317 MB / 0.7694 GB, free: 138.1 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01424/1.312, allocations: 9.466 MB / 0.7787 GB, free: 128.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/1.312, allocations: 4 kB / 0.7787 GB, free: 128.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00254/1.314, allocations: 2.364 MB / 0.781 GB, free: 126.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003573/1.318, allocations: 0.6268 MB / 0.7816 GB, free: 125.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07797/1.396, allocations: 69.54 MB / 0.8495 GB, free: 46.58 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004305/1.4, allocations: 4.097 MB / 0.8535 GB, free: 42.45 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005794/1.406, allocations: 2.377 MB / 0.8558 GB, free: 40.06 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003234/1.409, allocations: 2.631 MB / 0.8584 GB, free: 37.43 MB / 0.5294 GB Notification: Performance of SimCode: time 1.223e-06/1.409, allocations: 0 / 0.8584 GB, free: 37.43 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3811/1.79, allocations: 96.47 MB / 0.9526 GB, free: 177 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/13.81, allocations: 5.781 kB / 0.9526 GB, free: 177 MB / 0.545 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithMass_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 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.mat","/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