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.0008612/0.0008612, allocations: 94.86 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001049/0.001049, allocations: 201.1 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.205/1.205, allocations: 227.7 MB / 246.8 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002029/0.000203, allocations: 8 kB / 307.8 MB, free: 0.7188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07889/0.07911, allocations: 51.51 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.1809/0.26, allocations: 48.05 MB / 407.4 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02051/0.2806, allocations: 10.26 MB / 417.7 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007304/0.2879, allocations: 213 kB / 417.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001158/0.2891, allocations: 427.5 kB / 418.3 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003821/0.2929, allocations: 1.772 MB / 420.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001303/0.2942, allocations: 0.6553 MB / 420.7 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006149/0.3004, allocations: 6.438 MB / 427.2 MB, free: 7.012 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006486/0.3069, allocations: 5.69 MB / 432.8 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001594/0.3085, allocations: 1.155 MB / 434 MB, free: 80 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00235/0.3109, allocations: 1.942 MB / 435.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004249/0.3113, allocations: 136 kB / 436.1 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001634/0.313, allocations: 1.104 MB / 437.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001268/0.3142, allocations: 1.78 MB / 439 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001417/0.3157, allocations: 2.043 MB / 441 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005113/0.3208, allocations: 6.921 MB / 447.9 MB, free: 2.098 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.3208, allocations: 0 / 447.9 MB, free: 2.098 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.3208, allocations: 8 kB / 447.9 MB, free: 2.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.92e-05/0.3209, allocations: 0 / 447.9 MB, free: 2.09 MB / 350.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.007339/0.3282, allocations: 4.242 MB / 452.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.3283, allocations: 12.03 kB / 452.2 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008414/0.3291, allocations: 0.7282 MB / 452.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02152/0.3507, allocations: 3.934 MB / 456.8 MB, free: 9.082 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005882/0.3566, allocations: 2.921 MB / 459.8 MB, free: 6.102 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002616/0.3569, allocations: 246.1 kB / 460 MB, free: 5.859 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006689/0.3576, allocations: 331.6 kB / 460.3 MB, free: 5.535 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01557/0.3731, allocations: 10.39 MB / 470.7 MB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.132e-05/0.3733, allocations: 43.59 kB / 470.8 MB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003475/0.3736, allocations: 155.8 kB / 470.9 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003015/0.3766, allocations: 2.025 MB / 472.9 MB, free: 8.223 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01429/0.3909, allocations: 8.807 MB / 481.7 MB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04264/0.4336, allocations: 40.8 MB / 0.5103 GB, free: 5.504 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01075/0.4444, allocations: 4.435 MB / 0.5146 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002949/0.4474, allocations: 2.436 MB / 0.517 GB, free: 14.47 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01003/0.4574, allocations: 7.22 MB / 0.5241 GB, free: 7.043 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.43e-05/0.4575, allocations: 43.56 kB / 0.5241 GB, free: 6.992 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 3.216e-06/0.4575, allocations: 4 kB / 0.5241 GB, free: 6.988 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.1828/0.6403, allocations: 17.8 MB / 0.5415 GB, free: 143.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.822e-05/0.6404, allocations: 173.4 kB / 0.5417 GB, free: 143.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005595/0.646, allocations: 4.567 MB / 0.5461 GB, free: 141.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002658/0.6462, allocations: 52.05 kB / 0.5462 GB, free: 141.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001327/0.6476, allocations: 3.156 MB / 0.5492 GB, free: 139.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004971/0.6481, allocations: 0.7527 MB / 0.55 GB, free: 138.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000535/0.6486, allocations: 0.5268 MB / 0.5505 GB, free: 138.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.267e-05/0.6487, allocations: 306.4 kB / 0.5508 GB, free: 138.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00268/0.6513, allocations: 2.275 MB / 0.553 GB, free: 137.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003423/0.6548, allocations: 5.958 MB / 0.5588 GB, free: 131.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006119/0.6609, allocations: 8.953 MB / 0.5676 GB, free: 124.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.023e-05/0.661, allocations: 38.38 kB / 0.5676 GB, free: 124.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.01019/0.6711, allocations: 8.796 MB / 0.5762 GB, free: 118.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.198e-05/0.6712, allocations: 60 kB / 0.5763 GB, free: 118.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.466e-05/0.6713, allocations: 132 kB / 0.5764 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001768/0.6731, allocations: 0.9428 MB / 0.5773 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003378/0.6765, allocations: 1.404 MB / 0.5787 GB, free: 115.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00552/0.682, allocations: 6.095 MB / 0.5846 GB, free: 109.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003433/0.6854, allocations: 343.5 kB / 0.5849 GB, free: 109.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003503/0.6858, allocations: 377.2 kB / 0.5853 GB, free: 108.8 MB / 446.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.002195/0.688, allocations: 2.17 MB / 0.5874 GB, free: 106.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004024/0.6884, allocations: 398 kB / 0.5878 GB, free: 106.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004859/0.6933, allocations: 3.683 MB / 0.5914 GB, free: 102.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.29e-05/0.6933, allocations: 24 kB / 0.5914 GB, free: 102.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.6933, allocations: 8 kB / 0.5914 GB, free: 102.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.385e-05/0.6933, allocations: 11.95 kB / 0.5914 GB, free: 102.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01054/0.7039, allocations: 9.139 MB / 0.6004 GB, free: 93.28 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/0.7039, allocations: 8 kB / 0.6004 GB, free: 93.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001219/0.7051, allocations: 328 kB / 0.6007 GB, free: 92.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001609/0.7068, allocations: 0.7714 MB / 0.6014 GB, free: 92.18 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000107/0.7069, allocations: 36 kB / 0.6015 GB, free: 92.15 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005611/0.7125, allocations: 5.631 MB / 0.607 GB, free: 86.39 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/0.7125, allocations: 11.94 kB / 0.607 GB, free: 86.38 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007111/0.7196, allocations: 6.58 MB / 0.6134 GB, free: 79.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007394/0.7204, allocations: 471.8 kB / 0.6139 GB, free: 79.22 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003604/0.7208, allocations: 39.94 kB / 0.6139 GB, free: 79.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001335/0.7221, allocations: 116.7 kB / 0.614 GB, free: 79.07 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002437/0.7223, allocations: 121 kB / 0.6141 GB, free: 78.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001114/0.7225, allocations: 60.78 kB / 0.6142 GB, free: 78.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002983/0.7255, allocations: 2.932 MB / 0.6171 GB, free: 75.95 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7255, allocations: 0 / 0.6171 GB, free: 75.95 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003836/0.7293, allocations: 1.024 MB / 0.6181 GB, free: 74.93 MB / 446.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.007116/0.7364, allocations: 7.239 MB / 0.6251 GB, free: 67.61 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006024/0.7425, allocations: 5.499 MB / 0.6305 GB, free: 62.12 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.7425, allocations: 5.188 kB / 0.6305 GB, free: 62.12 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002297/0.7448, allocations: 1.974 MB / 0.6324 GB, free: 60.13 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00505/0.7499, allocations: 485.2 kB / 0.6329 GB, free: 59.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05819/0.8081, allocations: 59.95 MB / 0.6914 GB, free: 7.352 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003322/0.8114, allocations: 3.367 MB / 0.6947 GB, free: 3.945 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004401/0.8158, allocations: 2.027 MB / 0.6967 GB, free: 1.914 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1506/0.9665, allocations: 1.99 MB / 0.6986 GB, free: 148.7 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/0.9665, allocations: 1.094 kB / 0.6986 GB, free: 148.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09093/1.057, allocations: 77.69 MB / 0.7745 GB, free: 93.32 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001593/1.058, allocations: 247.8 kB / 0.7748 GB, free: 93.06 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.269/4.326, allocations: 0 / 0.7748 GB, free: 93.06 MB / 462.1 MB (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