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.001029/0.001029, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001135/0.001135, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, 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.2142/0.2142, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 75.88 kB / 480.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3116/0.3132, allocations: 62.44 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01093/0.3242, allocations: 10.36 MB / 0.5406 GB, free: 5.285 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007844/0.3321, allocations: 3.884 MB / 0.5444 GB, free: 2.262 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00174/0.3339, allocations: 60.19 kB / 0.5445 GB, free: 2.25 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004131/0.3381, allocations: 2.065 MB / 0.5465 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004597/0.3427, allocations: 1.677 MB / 0.5481 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0017/0.3444, allocations: 0.6948 MB / 0.5488 GB, free: 15.01 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005892/0.3503, allocations: 3.996 MB / 0.5527 GB, free: 11 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003524/0.3539, allocations: 2.602 MB / 0.5553 GB, free: 8.352 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002047/0.356, allocations: 1.292 MB / 0.5565 GB, free: 7.055 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002728/0.3587, allocations: 1.846 MB / 0.5583 GB, free: 5.203 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008291/0.3596, allocations: 268 kB / 0.5586 GB, free: 4.941 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00247/0.3621, allocations: 1.186 MB / 0.5597 GB, free: 3.754 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001928/0.364, allocations: 1.66 MB / 0.5614 GB, free: 2.09 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002849/0.3669, allocations: 1.953 MB / 0.5633 GB, free: 128 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007493/0.3744, allocations: 6.322 MB / 0.5694 GB, free: 9.781 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3744, allocations: 4 kB / 0.5694 GB, free: 9.777 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3745, allocations: 3.938 kB / 0.5694 GB, free: 9.773 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001776/0.3746, allocations: 0 / 0.5694 GB, free: 9.773 MB / 430.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.01104/0.3857, allocations: 4.323 MB / 0.5737 GB, free: 5.383 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.3858, allocations: 12.03 kB / 0.5737 GB, free: 5.371 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001517/0.3873, allocations: 0.6249 MB / 0.5743 GB, free: 4.734 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0816/0.4689, allocations: 7.029 MB / 0.5812 GB, free: 13.69 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006333/0.4753, allocations: 2.62 MB / 0.5837 GB, free: 11.01 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002012/0.4755, allocations: 201.2 kB / 0.5839 GB, free: 10.81 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00115/0.4767, allocations: 275.6 kB / 0.5842 GB, free: 10.54 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01606/0.4927, allocations: 8.529 MB / 0.5925 GB, free: 1.379 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001618/0.4929, allocations: 39.59 kB / 0.5925 GB, free: 1.34 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008117/0.4938, allocations: 123.9 kB / 0.5926 GB, free: 1.219 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002867/0.4967, allocations: 1.739 MB / 0.5943 GB, free: 15.48 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01389/0.5106, allocations: 7.175 MB / 0.6014 GB, free: 8.289 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04164/0.5523, allocations: 33.79 MB / 0.6344 GB, free: 5.414 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008707/0.561, allocations: 3.427 MB / 0.6377 GB, free: 1.84 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002372/0.5634, allocations: 1.647 MB / 0.6393 GB, free: 188 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0124/0.5759, allocations: 7.3 MB / 0.6464 GB, free: 8.594 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.298e-05/0.576, allocations: 55.5 kB / 0.6465 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=151): time 4.569e-06/0.576, allocations: 4 kB / 0.6465 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of matching and sorting (n=188): time 0.06513/0.6411, allocations: 19.03 MB / 0.6651 GB, free: 5.336 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/0.6413, allocations: 201.2 kB / 0.6653 GB, free: 5.098 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006433/0.6477, allocations: 3.74 MB / 0.6689 GB, free: 1.367 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0003792/0.6481, allocations: 49.7 kB / 0.669 GB, free: 1.312 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002223/0.6504, allocations: 2.819 MB / 0.6717 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009788/0.6514, allocations: 0.7096 MB / 0.6724 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002584/0.654, allocations: 1.166 MB / 0.6736 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.697e-05/0.6541, allocations: 305.1 kB / 0.6738 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003479/0.6576, allocations: 2.1 MB / 0.6759 GB, free: 10.15 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006027/0.6636, allocations: 5.663 MB / 0.6814 GB, free: 2.707 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009969/0.6737, allocations: 8.414 MB / 0.6896 GB, free: 8.543 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001189/0.6738, allocations: 39.94 kB / 0.6897 GB, free: 8.504 MB / 0.545 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01893/0.6928, allocations: 8.7 MB / 0.6982 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001562/0.693, allocations: 56 kB / 0.6982 GB, free: 15.74 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002225/0.6932, allocations: 128.2 kB / 0.6984 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005286/0.6985, allocations: 1.387 MB / 0.6997 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004431/0.703, allocations: 1.294 MB / 0.701 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01432/0.7173, allocations: 9.206 MB / 0.71 GB, free: 3.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004417/0.7218, allocations: 303.5 kB / 0.7103 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001127/0.723, allocations: 360 kB / 0.7106 GB, free: 2.922 MB / 0.5606 GB 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.003813/0.7268, allocations: 1.892 MB / 0.7124 GB, free: 1.02 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008446/0.7277, allocations: 339.6 kB / 0.7128 GB, free: 0.6836 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0094/0.7371, allocations: 3.774 MB / 0.7165 GB, free: 12.89 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.463e-05/0.7372, allocations: 20 kB / 0.7165 GB, free: 12.87 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.382e-05/0.7372, allocations: 8 kB / 0.7165 GB, free: 12.86 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.842e-05/0.7372, allocations: 11.95 kB / 0.7165 GB, free: 12.85 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01871/0.756, allocations: 8.16 MB / 0.7245 GB, free: 4.625 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.338e-05/0.756, allocations: 0 / 0.7245 GB, free: 4.625 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001397/0.7574, allocations: 247.6 kB / 0.7247 GB, free: 4.383 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004759/0.7622, allocations: 1.175 MB / 0.7258 GB, free: 3.203 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003635/0.7626, allocations: 39.92 kB / 0.7259 GB, free: 3.164 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2577/1.02, allocations: 8.462 MB / 0.7341 GB, free: 175.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/1.02, allocations: 1.375 kB / 0.7341 GB, free: 175.9 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01114/1.032, allocations: 6.288 MB / 0.7403 GB, free: 173.7 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008813/1.032, allocations: 372.6 kB / 0.7406 GB, free: 173.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005899/1.033, allocations: 28.44 kB / 0.7407 GB, free: 173.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001471/1.035, allocations: 88.28 kB / 0.7408 GB, free: 173.6 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003688/1.035, allocations: 108.6 kB / 0.7409 GB, free: 173.5 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001376/1.035, allocations: 54.08 kB / 0.7409 GB, free: 173.5 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.003164/1.038, allocations: 2.326 MB / 0.7432 GB, free: 172.8 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.4e-07/1.038, allocations: 0 / 0.7432 GB, free: 172.8 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.004902/1.043, allocations: 0.9554 MB / 0.7441 GB, free: 172.6 MB / 0.5763 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.01012/1.053, allocations: 6.985 MB / 0.7509 GB, free: 169.8 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.006536/1.06, allocations: 5.219 MB / 0.756 GB, free: 167.3 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/1.06, allocations: 3.938 kB / 0.756 GB, free: 167.3 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.00198/1.062, allocations: 1.755 MB / 0.7577 GB, free: 165.6 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002316/1.064, allocations: 404.4 kB / 0.7581 GB, free: 165.3 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05446/1.119, allocations: 44.16 MB / 0.8013 GB, free: 115.7 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002642/1.121, allocations: 2.965 MB / 0.8042 GB, free: 112.7 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.003562/1.125, allocations: 1.815 MB / 0.8059 GB, free: 110.9 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001989/1.127, allocations: 1.647 MB / 0.8075 GB, free: 109.3 MB / 0.5763 GB Notification: Performance of SimCode: time 9.41e-07/1.127, allocations: 0 / 0.8075 GB, free: 109.3 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09717/1.224, allocations: 67.93 MB / 0.8739 GB, free: 41.71 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.9/27.13, allocations: 15.41 kB / 0.8739 GB, free: 41.7 MB / 0.5763 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