Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_LineForceWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_LineForceWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001116/0.001116, allocations: 193.8 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.212/1.212, allocations: 226.5 MB / 243.4 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007623/0.0007624, allocations: 99.56 kB / 295.5 MB, free: 6.688 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2868/0.2868, allocations: 44.82 MB / 392.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002405/0.0002406, allocations: 11.94 kB / 465.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2674, allocations: 62.96 MB / 0.516 GB, free: 37.31 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.LineForceWithMass): time 0.03724/0.3047, allocations: 57.98 MB / 0.5726 GB, free: 11.89 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.025/0.3297, allocations: 12.46 MB / 0.5847 GB, free: 2.297 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01038/0.3402, allocations: 279.3 kB / 0.585 GB, free: 2.023 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008603/0.3488, allocations: 2.987 MB / 0.5879 GB, free: 15.57 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02116/0.37, allocations: 8.875 MB / 0.5966 GB, free: 6.664 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004355/0.3744, allocations: 1.069 MB / 0.5976 GB, free: 5.594 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.07254/0.4469, allocations: 62.63 MB / 0.6588 GB, free: 6.887 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007675/0.4546, allocations: 6.027 MB / 0.6647 GB, free: 0.7773 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002892/0.4576, allocations: 1.833 MB / 0.6665 GB, free: 14.94 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003415/0.461, allocations: 2.839 MB / 0.6692 GB, free: 12.09 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006457/0.4617, allocations: 200 kB / 0.6694 GB, free: 11.89 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002459/0.4641, allocations: 1.357 MB / 0.6708 GB, free: 10.54 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002139/0.4663, allocations: 2.373 MB / 0.6731 GB, free: 8.156 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002711/0.469, allocations: 2.654 MB / 0.6757 GB, free: 5.48 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2356/0.7046, allocations: 7.51 MB / 0.683 GB, free: 70.84 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.198e-06/0.7047, allocations: 3 kB / 0.683 GB, free: 70.84 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.236e-06/0.7047, allocations: 2.922 kB / 0.683 GB, free: 70.84 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003062/0.705, allocations: 0 / 0.683 GB, free: 70.84 MB / 490.7 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.01497/0.72, allocations: 5.841 MB / 0.6887 GB, free: 68.46 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.72, allocations: 15.06 kB / 0.6887 GB, free: 68.46 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002865/0.7229, allocations: 0.916 MB / 0.6896 GB, free: 68.37 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1618/0.8847, allocations: 12.84 MB / 0.7022 GB, free: 67.86 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009661/0.8944, allocations: 4.466 MB / 0.7065 GB, free: 67.05 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002309/0.8947, allocations: 313.3 kB / 0.7068 GB, free: 67.04 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001524/0.8962, allocations: 429.1 kB / 0.7072 GB, free: 67.02 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0224/0.9186, allocations: 13.67 MB / 0.7206 GB, free: 62.88 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001591/0.9188, allocations: 62.94 kB / 0.7206 GB, free: 62.85 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006925/0.9195, allocations: 203.1 kB / 0.7208 GB, free: 62.79 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003525/0.9231, allocations: 2.518 MB / 0.7233 GB, free: 60.72 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02026/0.9433, allocations: 11.52 MB / 0.7345 GB, free: 52.62 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05044/0.9938, allocations: 53.13 MB / 0.7864 GB, free: 8.02 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01375/1.008, allocations: 5.788 MB / 0.7921 GB, free: 3.406 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003689/1.011, allocations: 3.374 MB / 0.7954 GB, free: 0.9961 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02055/1.032, allocations: 14.79 MB / 0.8098 GB, free: 1.77 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.45e-05/1.032, allocations: 67.75 kB / 0.8099 GB, free: 1.699 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=227): time 4.729e-06/1.032, allocations: 0 / 0.8099 GB, free: 1.699 MB / 0.4948 GB Notification: Performance of matching and sorting (n=264): time 0.08042/1.112, allocations: 26.23 MB / 0.8355 GB, free: 7.469 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/1.113, allocations: 261.3 kB / 0.8357 GB, free: 7.156 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006808/1.119, allocations: 5.048 MB / 0.8407 GB, free: 2.121 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0008839/1.12, allocations: 61.7 kB / 0.8407 GB, free: 2.055 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.004438/1.125, allocations: 3.959 MB / 0.8446 GB, free: 14.11 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.001763/1.127, allocations: 0.9853 MB / 0.8456 GB, free: 13.13 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005368/1.127, allocations: 148 kB / 0.8457 GB, free: 12.99 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0004865/1.128, allocations: 0.6122 MB / 0.8463 GB, free: 12.37 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004206/1.132, allocations: 2.696 MB / 0.8489 GB, free: 9.672 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00752/1.139, allocations: 7.053 MB / 0.8558 GB, free: 0.5586 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01167/1.151, allocations: 10.61 MB / 0.8662 GB, free: 4.449 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001336/1.151, allocations: 48 kB / 0.8662 GB, free: 4.402 MB / 0.5573 GB Notification: Performance of matching and sorting (n=963) (initialization): time 0.01742/1.169, allocations: 10.05 MB / 0.876 GB, free: 11.26 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001064/1.169, allocations: 68 kB / 0.8761 GB, free: 11.19 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001986/1.169, allocations: 152 kB / 0.8762 GB, free: 11.04 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001797/1.171, allocations: 0.7115 MB / 0.8769 GB, free: 10.33 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006134/1.177, allocations: 1.769 MB / 0.8787 GB, free: 8.707 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007352/1.184, allocations: 6.355 MB / 0.8849 GB, free: 2.18 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00549/1.19, allocations: 416 kB / 0.8853 GB, free: 1.781 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001203/1.191, allocations: 440 kB / 0.8857 GB, free: 1.352 MB / 0.573 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005005/1.196, allocations: 2.634 MB / 0.8883 GB, free: 14.86 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001049/1.197, allocations: 470 kB / 0.8887 GB, free: 14.39 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007177/1.204, allocations: 4.364 MB / 0.893 GB, free: 10.02 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.492e-05/1.205, allocations: 28 kB / 0.893 GB, free: 9.992 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/1.205, allocations: 10.47 kB / 0.893 GB, free: 9.984 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.093e-05/1.205, allocations: 11.95 kB / 0.893 GB, free: 9.973 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2361/1.441, allocations: 10.83 MB / 0.9036 GB, free: 229.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.758e-05/1.441, allocations: 2.312 kB / 0.9036 GB, free: 229.3 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002535/1.443, allocations: 0.4966 MB / 0.9041 GB, free: 229.3 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001285/1.445, allocations: 492.5 kB / 0.9045 GB, free: 229.2 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002956/1.445, allocations: 44.62 kB / 0.9046 GB, free: 229.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005105/1.45, allocations: 5.694 MB / 0.9102 GB, free: 226.5 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/1.45, allocations: 0 / 0.9102 GB, free: 226.5 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009089/1.459, allocations: 7.583 MB / 0.9176 GB, free: 223.6 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001224/1.46, allocations: 0.4898 MB / 0.918 GB, free: 223.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006569/1.461, allocations: 44.36 kB / 0.9181 GB, free: 223.4 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001982/1.463, allocations: 169.5 kB / 0.9182 GB, free: 223.4 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005586/1.464, allocations: 143.6 kB / 0.9184 GB, free: 223.4 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001824/1.464, allocations: 76.86 kB / 0.9185 GB, free: 223.3 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.004989/1.469, allocations: 3.154 MB / 0.9215 GB, free: 222.3 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.81e-07/1.469, allocations: 0 / 0.9215 GB, free: 222.3 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.006393/1.475, allocations: 1.298 MB / 0.9228 GB, free: 222.1 MB / 0.5886 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01104/1.486, allocations: 8.297 MB / 0.9309 GB, free: 218.6 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.009285/1.496, allocations: 6.739 MB / 0.9375 GB, free: 216.2 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 7.674e-06/1.496, allocations: 7.656 kB / 0.9375 GB, free: 216.2 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.00249/1.498, allocations: 2.361 MB / 0.9398 GB, free: 215.2 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00385/1.502, allocations: 0.5954 MB / 0.9404 GB, free: 215 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06415/1.566, allocations: 48.3 MB / 0.9875 GB, free: 171.9 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004298/1.571, allocations: 4.112 MB / 0.9916 GB, free: 167.7 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003114/1.574, allocations: 2.678 MB / 0.9942 GB, free: 165.1 MB / 0.5886 GB Notification: Performance of SimCode: time 8.42e-07/1.574, allocations: 0 / 0.9942 GB, free: 165.1 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.037/10.61, allocations: 143.3 MB / 1.134 GB, free: 21.59 MB / 0.5886 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_LineForceWithMass_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Forces_LineForceWithMass.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches