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.001476/0.001476, allocations: 114.4 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.001678/0.001678, allocations: 179.1 kB / 18.71 MB, free: 4.348 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.332/1.332, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2069/0.2069, allocations: 44.19 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 63.89 kB / 470.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3114, allocations: 60.81 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithMass): time 0.01562/0.327, allocations: 15.01 MB / 0.5331 GB, free: 8.539 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01204/0.3391, allocations: 4.999 MB / 0.538 GB, free: 4.602 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004429/0.3436, allocations: 107.5 kB / 0.5381 GB, free: 4.578 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008256/0.3519, allocations: 4.012 MB / 0.542 GB, free: 1.887 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006411/0.3584, allocations: 2.353 MB / 0.5443 GB, free: 196 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00285/0.3612, allocations: 1.153 MB / 0.5454 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009637/0.3709, allocations: 6.51 MB / 0.5518 GB, free: 9.871 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006771/0.3777, allocations: 4.698 MB / 0.5564 GB, free: 5.105 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004038/0.3818, allocations: 2.208 MB / 0.5585 GB, free: 2.891 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004527/0.3863, allocations: 3.03 MB / 0.5615 GB, free: 15.85 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001622/0.388, allocations: 456 kB / 0.5619 GB, free: 15.41 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003706/0.3917, allocations: 1.557 MB / 0.5634 GB, free: 13.85 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003489/0.3952, allocations: 2.739 MB / 0.5661 GB, free: 11.1 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005304/0.4006, allocations: 3.158 MB / 0.5692 GB, free: 7.926 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01233/0.4129, allocations: 9.787 MB / 0.5787 GB, free: 14.11 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.413, allocations: 0 / 0.5787 GB, free: 14.11 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.413, allocations: 0 / 0.5787 GB, free: 14.11 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003282/0.4133, allocations: 0 / 0.5787 GB, free: 14.11 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.02021/0.4335, allocations: 7.002 MB / 0.5856 GB, free: 7.02 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.4336, allocations: 8.031 kB / 0.5856 GB, free: 7.012 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002532/0.4361, allocations: 0.9218 MB / 0.5865 GB, free: 6.078 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1497/0.5859, allocations: 12.5 MB / 0.5987 GB, free: 9.555 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01094/0.5969, allocations: 4.777 MB / 0.6034 GB, free: 4.691 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003462/0.5973, allocations: 320.1 kB / 0.6037 GB, free: 4.375 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001982/0.5993, allocations: 423.7 kB / 0.6041 GB, free: 3.961 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02784/0.6271, allocations: 13.68 MB / 0.6174 GB, free: 5.41 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002747/0.6274, allocations: 55.44 kB / 0.6175 GB, free: 5.355 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001508/0.629, allocations: 199.8 kB / 0.6177 GB, free: 5.16 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004172/0.6332, allocations: 2.527 MB / 0.6201 GB, free: 2.629 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02463/0.6578, allocations: 11.54 MB / 0.6314 GB, free: 7.082 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06753/0.7254, allocations: 52.83 MB / 0.683 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01752/0.743, allocations: 5.799 MB / 0.6887 GB, free: 10.78 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004785/0.7478, allocations: 3.381 MB / 0.692 GB, free: 7.383 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02294/0.7708, allocations: 14.79 MB / 0.7064 GB, free: 8.027 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.28e-05/0.7709, allocations: 64.56 kB / 0.7065 GB, free: 7.957 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=227): time 5.381e-06/0.7709, allocations: 0 / 0.7065 GB, free: 7.957 MB / 0.5606 GB Notification: Performance of matching and sorting (n=264): time 0.3288/1.1, allocations: 26.17 MB / 0.732 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.176e-05/1.1, allocations: 261.6 kB / 0.7323 GB, free: 165 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00661/1.106, allocations: 5.084 MB / 0.7372 GB, free: 163.3 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005169/1.107, allocations: 65.02 kB / 0.7373 GB, free: 163.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002078/1.109, allocations: 3.953 MB / 0.7412 GB, free: 160.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001158/1.11, allocations: 0.9859 MB / 0.7421 GB, free: 159.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002026/1.112, allocations: 1.463 MB / 0.7436 GB, free: 158.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.346e-05/1.112, allocations: 311.2 kB / 0.7439 GB, free: 158.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003252/1.116, allocations: 2.726 MB / 0.7465 GB, free: 157.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004707/1.12, allocations: 7.079 MB / 0.7534 GB, free: 149.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008982/1.129, allocations: 10.64 MB / 0.7638 GB, free: 137.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000109/1.13, allocations: 48 kB / 0.7639 GB, free: 137.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=963) (initialization): time 0.01587/1.145, allocations: 10.1 MB / 0.7737 GB, free: 127 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.532e-05/1.146, allocations: 68 kB / 0.7738 GB, free: 126.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001364/1.146, allocations: 156.8 kB / 0.7739 GB, free: 126.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001575/1.147, allocations: 0.716 MB / 0.7746 GB, free: 126 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005683/1.153, allocations: 1.77 MB / 0.7764 GB, free: 124.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006058/1.159, allocations: 6.84 MB / 0.7831 GB, free: 117.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005799/1.165, allocations: 404.2 kB / 0.7834 GB, free: 116.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001156/1.166, allocations: 444 kB / 0.7839 GB, free: 116.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.004365/1.17, allocations: 2.633 MB / 0.7864 GB, free: 113.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001071/1.172, allocations: 466 kB / 0.7869 GB, free: 113.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006559/1.178, allocations: 4.384 MB / 0.7912 GB, free: 108.8 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.402e-05/1.178, allocations: 28 kB / 0.7912 GB, free: 108.8 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.646e-05/1.178, allocations: 8 kB / 0.7912 GB, free: 108.8 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.011e-05/1.178, allocations: 11.95 kB / 0.7912 GB, free: 108.8 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01815/1.196, allocations: 10.73 MB / 0.8017 GB, free: 98.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.55e-05/1.196, allocations: 7.938 kB / 0.8017 GB, free: 98.07 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002364/1.199, allocations: 495.3 kB / 0.8022 GB, free: 97.58 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001293/1.2, allocations: 493.2 kB / 0.8026 GB, free: 97.09 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002854/1.2, allocations: 51.92 kB / 0.8027 GB, free: 97.04 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005031/1.205, allocations: 6.2 MB / 0.8087 GB, free: 90.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/1.206, allocations: 3.938 kB / 0.8087 GB, free: 90.56 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009256/1.215, allocations: 7.621 MB / 0.8162 GB, free: 82.88 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001374/1.216, allocations: 0.4951 MB / 0.8167 GB, free: 82.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001142/1.217, allocations: 43.94 kB / 0.8167 GB, free: 82.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00248/1.22, allocations: 159.8 kB / 0.8169 GB, free: 82.16 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004735/1.22, allocations: 137.8 kB / 0.817 GB, free: 82.02 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001901/1.221, allocations: 75.98 kB / 0.8171 GB, free: 81.95 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004411/1.225, allocations: 3.176 MB / 0.8202 GB, free: 78.79 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.8e-07/1.225, allocations: 4 kB / 0.8202 GB, free: 78.79 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006541/1.232, allocations: 1.307 MB / 0.8215 GB, free: 77.48 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.009748/1.241, allocations: 8.318 MB / 0.8296 GB, free: 69.09 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008792/1.25, allocations: 6.79 MB / 0.8362 GB, free: 62.3 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.704e-06/1.25, allocations: 4 kB / 0.8362 GB, free: 62.3 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002719/1.253, allocations: 2.367 MB / 0.8385 GB, free: 59.91 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004219/1.257, allocations: 0.6324 MB / 0.8391 GB, free: 59.28 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0789/1.336, allocations: 58.91 MB / 0.8967 GB, free: 9.426 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006511/1.343, allocations: 4.101 MB / 0.9007 GB, free: 5.293 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.006175/1.349, allocations: 2.385 MB / 0.903 GB, free: 2.898 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004413/1.353, allocations: 2.624 MB / 0.9056 GB, free: 280 kB / 0.5762 GB Notification: Performance of SimCode: time 8.12e-07/1.353, allocations: 0 / 0.9056 GB, free: 280 kB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4083/1.762, allocations: 93.2 MB / 0.9966 GB, free: 190.7 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.42/32.18, allocations: 1.797 kB / 0.9966 GB, free: 190.7 MB / 0.6231 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