Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00134/0.00134, allocations: 116.7 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001217/0.001218, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 67.83 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3596/0.3608, allocations: 50.55 MB / 408.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01431/0.3752, allocations: 11.17 MB / 419.9 MB, free: 6.344 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01183/0.3871, allocations: 4.05 MB / 424 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002105/0.3892, allocations: 67.81 kB / 424.1 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007789/0.3971, allocations: 3.173 MB / 427.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005325/0.4024, allocations: 1.879 MB / 429.1 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00219/0.4046, allocations: 0.8227 MB / 429.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008239/0.4129, allocations: 4.405 MB / 434.3 MB, free: 7.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006931/0.4199, allocations: 4.009 MB / 438.3 MB, free: 3.832 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003874/0.4238, allocations: 1.608 MB / 440 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0037/0.4275, allocations: 2.114 MB / 442.1 MB, free: 100 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001374/0.4289, allocations: 352 kB / 442.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003647/0.4325, allocations: 1.24 MB / 443.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002996/0.4356, allocations: 2.003 MB / 445.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004059/0.4396, allocations: 2.303 MB / 448 MB, free: 10.19 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01192/0.4516, allocations: 7.44 MB / 455.4 MB, free: 2.723 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.4516, allocations: 0 / 455.4 MB, free: 2.723 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.4516, allocations: 0 / 455.4 MB, free: 2.723 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003252/0.452, allocations: 0 / 455.4 MB, free: 2.723 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1541 * Number of variables: 1541 Notification: Performance of Generate backend data structure: time 0.01632/0.4683, allocations: 5.154 MB / 460.6 MB, free: 13.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001217/0.4685, allocations: 12.03 kB / 460.6 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001947/0.4704, allocations: 0.7359 MB / 461.3 MB, free: 12.74 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02295/0.4934, allocations: 3.86 MB / 465.2 MB, free: 8.867 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006765/0.5002, allocations: 2.971 MB / 468.1 MB, free: 5.836 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001803/0.5004, allocations: 246.2 kB / 468.4 MB, free: 5.594 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007716/0.5012, allocations: 319.8 kB / 468.7 MB, free: 5.281 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01926/0.5205, allocations: 10.38 MB / 479.1 MB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001308/0.5206, allocations: 47.58 kB / 479.1 MB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004219/0.5211, allocations: 155.9 kB / 479.3 MB, free: 10.01 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003324/0.5244, allocations: 2.025 MB / 481.3 MB, free: 7.98 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01737/0.5418, allocations: 8.784 MB / 490.1 MB, free: 15.17 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05672/0.5985, allocations: 40.6 MB / 0.5182 GB, free: 5.484 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01214/0.6108, allocations: 4.437 MB / 0.5226 GB, free: 0.9023 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003354/0.6141, allocations: 2.423 MB / 0.5249 GB, free: 14.47 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01199/0.6262, allocations: 7.197 MB / 0.532 GB, free: 7.062 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/0.6262, allocations: 55.5 kB / 0.532 GB, free: 7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 4.108e-06/0.6262, allocations: 0 / 0.532 GB, free: 7 MB / 462.1 MB Notification: Performance of matching and sorting (n=198): time 0.3651/0.9913, allocations: 17.8 MB / 0.5494 GB, free: 121.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001966/0.9916, allocations: 181 kB / 0.5496 GB, free: 121.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005377/0.997, allocations: 4.567 MB / 0.554 GB, free: 119.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003648/0.9974, allocations: 57.28 kB / 0.5541 GB, free: 119.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001496/0.9989, allocations: 3.15 MB / 0.5572 GB, free: 117.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001044/1, allocations: 0.7522 MB / 0.5579 GB, free: 116.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001298/1.001, allocations: 1.242 MB / 0.5591 GB, free: 116 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.868e-05/1.001, allocations: 304.2 kB / 0.5594 GB, free: 115.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002902/1.004, allocations: 2.272 MB / 0.5616 GB, free: 114.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004167/1.008, allocations: 5.957 MB / 0.5674 GB, free: 106.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007612/1.016, allocations: 8.95 MB / 0.5762 GB, free: 96.08 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.341e-05/1.016, allocations: 40 kB / 0.5762 GB, free: 96.04 MB / 462.1 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.0138/1.03, allocations: 8.798 MB / 0.5848 GB, free: 87.24 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.031e-05/1.03, allocations: 60 kB / 0.5849 GB, free: 87.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.28e-05/1.03, allocations: 136.1 kB / 0.585 GB, free: 87.05 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002427/1.033, allocations: 0.9373 MB / 0.5859 GB, free: 86.11 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00363/1.036, allocations: 1.404 MB / 0.5873 GB, free: 84.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007153/1.043, allocations: 6.522 MB / 0.5936 GB, free: 78.04 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005294/1.049, allocations: 339.4 kB / 0.594 GB, free: 77.71 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005703/1.049, allocations: 376.4 kB / 0.5943 GB, free: 77.35 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 46 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 738 * Array equations: 5 * 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 {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003322/1.053, allocations: 2.178 MB / 0.5964 GB, free: 75.16 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006586/1.053, allocations: 386.9 kB / 0.5968 GB, free: 74.78 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005682/1.059, allocations: 3.691 MB / 0.6004 GB, free: 71.07 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.154e-05/1.059, allocations: 27.94 kB / 0.6005 GB, free: 71.04 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/1.059, allocations: 7.938 kB / 0.6005 GB, free: 71.04 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-05/1.059, allocations: 11.95 kB / 0.6005 GB, free: 71.02 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.014/1.073, allocations: 9.042 MB / 0.6093 GB, free: 61.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.551e-05/1.073, allocations: 4 kB / 0.6093 GB, free: 61.89 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001497/1.075, allocations: 324.3 kB / 0.6096 GB, free: 61.58 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002042/1.077, allocations: 0.7729 MB / 0.6104 GB, free: 60.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002012/1.077, allocations: 39.98 kB / 0.6104 GB, free: 60.77 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006644/1.084, allocations: 6.115 MB / 0.6164 GB, free: 54.52 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.561e-06/1.084, allocations: 11.94 kB / 0.6164 GB, free: 54.51 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007888/1.092, allocations: 6.585 MB / 0.6228 GB, free: 47.83 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009955/1.093, allocations: 459.9 kB / 0.6233 GB, free: 47.36 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001018/1.094, allocations: 47.86 kB / 0.6233 GB, free: 47.31 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001488/1.095, allocations: 119.8 kB / 0.6234 GB, free: 47.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002601/1.096, allocations: 121 kB / 0.6235 GB, free: 47.08 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001222/1.096, allocations: 59.75 kB / 0.6236 GB, free: 47.02 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003367/1.099, allocations: 2.932 MB / 0.6265 GB, free: 44.09 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.099, allocations: 4 kB / 0.6265 GB, free: 44.09 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004814/1.104, allocations: 1.018 MB / 0.6275 GB, free: 43.07 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.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 (157): * Single equations (assignments): 153 * 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 {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007982/1.112, allocations: 7.247 MB / 0.6345 GB, free: 35.73 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007059/1.119, allocations: 5.536 MB / 0.6399 GB, free: 30.21 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.306e-06/1.119, allocations: 0 / 0.6399 GB, free: 30.21 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002935/1.122, allocations: 1.981 MB / 0.6419 GB, free: 28.21 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003238/1.125, allocations: 0.4991 MB / 0.6424 GB, free: 27.72 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07312/1.198, allocations: 49.96 MB / 0.6911 GB, free: 3.887 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005239/1.204, allocations: 3.363 MB / 0.6944 GB, free: 496 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005279/1.209, allocations: 2.034 MB / 0.6964 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003426/1.212, allocations: 1.987 MB / 0.6984 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of SimCode: time 7.72e-07/1.212, allocations: 0 / 0.6984 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6843/1.897, allocations: 77.52 MB / 0.7741 GB, free: 167.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.45/27.35, allocations: 5.062 kB / 0.7741 GB, free: 167.7 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches