Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001119/0.001119, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001062/0.001062, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2035/0.2035, allocations: 46.1 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 76.69 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1166, allocations: 62.44 MB / 480.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01243/0.1291, allocations: 10.34 MB / 490.5 MB, free: 10.78 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008066/0.1372, allocations: 3.892 MB / 494.4 MB, free: 6.875 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001916/0.1392, allocations: 63.81 kB / 494.4 MB, free: 6.812 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00411/0.1434, allocations: 2.063 MB / 496.5 MB, free: 4.742 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004349/0.1477, allocations: 1.669 MB / 498.2 MB, free: 3.07 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001701/0.1494, allocations: 0.7095 MB / 498.9 MB, free: 2.359 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005274/0.1547, allocations: 3.993 MB / 0.4911 GB, free: 14.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003733/0.1585, allocations: 2.598 MB / 0.4936 GB, free: 11.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002737/0.1612, allocations: 1.304 MB / 0.4949 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002931/0.1642, allocations: 1.838 MB / 0.4967 GB, free: 8.555 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001137/0.1654, allocations: 268 kB / 0.4969 GB, free: 8.293 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002594/0.168, allocations: 1.17 MB / 0.4981 GB, free: 7.121 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001981/0.17, allocations: 1.636 MB / 0.4997 GB, free: 5.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003159/0.1731, allocations: 1.953 MB / 0.5016 GB, free: 3.516 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2278/0.4009, allocations: 6.096 MB / 0.5075 GB, free: 20.17 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.397e-06/0.401, allocations: 0 / 0.5075 GB, free: 20.17 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.401, allocations: 1.375 kB / 0.5075 GB, free: 20.17 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002504/0.4012, allocations: 0 / 0.5075 GB, free: 20.17 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: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.01294/0.4142, allocations: 4.33 MB / 0.5118 GB, free: 18.45 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/0.4142, allocations: 9.125 kB / 0.5118 GB, free: 18.45 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001057/0.4153, allocations: 0.6225 MB / 0.5124 GB, free: 18.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08837/0.5037, allocations: 7.028 MB / 0.5192 GB, free: 18.06 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007371/0.5111, allocations: 2.584 MB / 0.5218 GB, free: 17.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000235/0.5114, allocations: 191.9 kB / 0.522 GB, free: 17.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001517/0.5129, allocations: 278.4 kB / 0.5222 GB, free: 17.47 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01509/0.528, allocations: 8.525 MB / 0.5305 GB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001084/0.5282, allocations: 40.12 kB / 0.5306 GB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003646/0.5286, allocations: 125.1 kB / 0.5307 GB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002448/0.531, allocations: 1.738 MB / 0.5324 GB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01166/0.5427, allocations: 7.17 MB / 0.5394 GB, free: 8.363 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03869/0.5814, allocations: 33.94 MB / 0.5725 GB, free: 5.816 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008578/0.59, allocations: 3.434 MB / 0.5759 GB, free: 2.238 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002189/0.5923, allocations: 1.65 MB / 0.5775 GB, free: 0.582 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01169/0.604, allocations: 7.305 MB / 0.5846 GB, free: 9.051 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.349e-05/0.6041, allocations: 43.56 kB / 0.5847 GB, free: 9 MB / 430.1 MB Notification: Performance of pre-optimization done (n=151): time 6.613e-06/0.6041, allocations: 4 kB / 0.5847 GB, free: 8.996 MB / 430.1 MB Notification: Performance of matching and sorting (n=188): time 0.06613/0.6702, allocations: 19.03 MB / 0.6033 GB, free: 5.891 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001281/0.6704, allocations: 206.4 kB / 0.6035 GB, free: 5.648 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007689/0.6781, allocations: 3.732 MB / 0.6071 GB, free: 1.93 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005028/0.6786, allocations: 53.7 kB / 0.6072 GB, free: 1.871 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003226/0.6819, allocations: 2.825 MB / 0.6099 GB, free: 15.06 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001493/0.6834, allocations: 0.7135 MB / 0.6106 GB, free: 14.35 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003641/0.6871, allocations: 1.168 MB / 0.6118 GB, free: 13.17 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.6873, allocations: 303.8 kB / 0.612 GB, free: 12.88 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004383/0.6917, allocations: 2.101 MB / 0.6141 GB, free: 10.77 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00725/0.6989, allocations: 5.656 MB / 0.6196 GB, free: 3.398 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01108/0.71, allocations: 8.406 MB / 0.6278 GB, free: 9.754 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001836/0.7103, allocations: 36 kB / 0.6279 GB, free: 9.719 MB / 478.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02107/0.7314, allocations: 8.703 MB / 0.6364 GB, free: 1.191 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001866/0.7316, allocations: 60 kB / 0.6364 GB, free: 1.133 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002672/0.7319, allocations: 124 kB / 0.6365 GB, free: 1.012 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005351/0.7372, allocations: 1.392 MB / 0.6379 GB, free: 15.62 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004735/0.742, allocations: 1.298 MB / 0.6392 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01449/0.7565, allocations: 9.215 MB / 0.6482 GB, free: 4.965 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005844/0.7624, allocations: 305.8 kB / 0.6485 GB, free: 4.668 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001466/0.7639, allocations: 359.9 kB / 0.6488 GB, free: 4.316 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (695): * Single equations (assignments): 691 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,44,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005162/0.7691, allocations: 1.896 MB / 0.6507 GB, free: 2.406 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001128/0.7702, allocations: 331.6 kB / 0.651 GB, free: 2.078 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009636/0.7799, allocations: 3.781 MB / 0.6547 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.109e-05/0.7799, allocations: 24 kB / 0.6547 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.578e-05/0.78, allocations: 8 kB / 0.6547 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.44e-05/0.78, allocations: 7.969 kB / 0.6547 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02026/0.8003, allocations: 8.176 MB / 0.6627 GB, free: 6.055 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-05/0.8003, allocations: 7.984 kB / 0.6627 GB, free: 6.047 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001357/0.8017, allocations: 254.3 kB / 0.6629 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004605/0.8063, allocations: 1.179 MB / 0.6641 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002562/0.8066, allocations: 31.98 kB / 0.6641 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01222/0.8188, allocations: 8.482 MB / 0.6724 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.8188, allocations: 0 / 0.6724 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01204/0.8309, allocations: 6.285 MB / 0.6785 GB, free: 5.66 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001137/0.832, allocations: 384.7 kB / 0.6789 GB, free: 5.262 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000939/0.833, allocations: 24 kB / 0.6789 GB, free: 5.238 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001902/0.8349, allocations: 83.91 kB / 0.679 GB, free: 5.156 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004077/0.8353, allocations: 119.7 kB / 0.6791 GB, free: 5.043 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001736/0.8355, allocations: 46.5 kB / 0.6792 GB, free: 5 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004828/0.8404, allocations: 2.328 MB / 0.6814 GB, free: 2.688 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8404, allocations: 0 / 0.6814 GB, free: 2.688 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005917/0.8463, allocations: 0.9453 MB / 0.6824 GB, free: 1.742 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.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 (130): * Single equations (assignments): 126 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01251/0.8588, allocations: 6.996 MB / 0.6892 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01078/0.8696, allocations: 6.128 MB / 0.6952 GB, free: 4.602 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.146e-06/0.8697, allocations: 320 / 0.6952 GB, free: 4.602 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00277/0.8725, allocations: 1.753 MB / 0.6969 GB, free: 2.84 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003466/0.8759, allocations: 403.8 kB / 0.6973 GB, free: 2.453 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2963/1.172, allocations: 49.23 MB / 0.7454 GB, free: 179.1 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002661/1.175, allocations: 2.962 MB / 0.7482 GB, free: 177.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003883/1.179, allocations: 1.817 MB / 0.75 GB, free: 177.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001711/1.181, allocations: 1.644 MB / 0.7516 GB, free: 176.2 MB / 0.545 GB Notification: Performance of SimCode: time 6.72e-07/1.181, allocations: 0 / 0.7516 GB, free: 176.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1031/1.284, allocations: 70.25 MB / 0.8202 GB, free: 107.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/12.03, allocations: 15.98 kB / 0.8202 GB, free: 107.1 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches