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.001933/0.001933, allocations: 122.8 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002188/0.002189, allocations: 202 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 227.4 MB / 247 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001868/0.001868, allocations: 59.91 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.2945, allocations: 50.55 MB / 408.8 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01358/0.3081, allocations: 11.18 MB / 420 MB, free: 6.223 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01005/0.3182, allocations: 4.045 MB / 424.1 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002215/0.3205, allocations: 67.81 kB / 424.1 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006222/0.3268, allocations: 3.17 MB / 427.3 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005723/0.3326, allocations: 1.879 MB / 429.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002109/0.3347, allocations: 0.8188 MB / 430 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00686/0.3416, allocations: 4.405 MB / 434.4 MB, free: 7.797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005327/0.3469, allocations: 4.02 MB / 438.4 MB, free: 3.711 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002925/0.3499, allocations: 1.612 MB / 440 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003491/0.3534, allocations: 2.107 MB / 442.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001084/0.3545, allocations: 348 kB / 442.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002751/0.3573, allocations: 1.241 MB / 443.7 MB, free: 14.4 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002209/0.3595, allocations: 1.995 MB / 445.7 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003134/0.3626, allocations: 2.303 MB / 448 MB, free: 10.08 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0095/0.3722, allocations: 7.459 MB / 455.5 MB, free: 2.594 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.814e-06/0.3722, allocations: 0 / 455.5 MB, free: 2.594 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3722, allocations: 0 / 455.5 MB, free: 2.594 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002093/0.3724, allocations: 0 / 455.5 MB, free: 2.594 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.01358/0.386, allocations: 5.287 MB / 460.8 MB, free: 13.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.565e-05/0.3861, allocations: 8.031 kB / 460.8 MB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001459/0.3876, allocations: 0.736 MB / 461.5 MB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02299/0.4106, allocations: 3.898 MB / 465.4 MB, free: 8.566 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007295/0.4179, allocations: 2.98 MB / 468.4 MB, free: 5.527 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002283/0.4182, allocations: 242.2 kB / 468.6 MB, free: 5.289 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001101/0.4193, allocations: 335.8 kB / 469 MB, free: 4.961 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02085/0.4401, allocations: 10.37 MB / 479.3 MB, free: 9.891 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001319/0.4403, allocations: 43.64 kB / 479.4 MB, free: 9.848 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005973/0.4409, allocations: 151.9 kB / 479.5 MB, free: 9.699 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003797/0.4447, allocations: 2.029 MB / 481.5 MB, free: 7.668 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01918/0.4639, allocations: 8.784 MB / 490.3 MB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06264/0.5266, allocations: 40.68 MB / 0.5186 GB, free: 5.098 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01273/0.5394, allocations: 4.44 MB / 0.5229 GB, free: 0.5117 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003619/0.543, allocations: 2.43 MB / 0.5253 GB, free: 14.07 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01326/0.5563, allocations: 7.202 MB / 0.5323 GB, free: 6.66 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.443e-05/0.5564, allocations: 59.44 kB / 0.5324 GB, free: 6.594 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 4.859e-06/0.5565, allocations: 0 / 0.5324 GB, free: 6.594 MB / 462.1 MB Notification: Performance of matching and sorting (n=198): time 0.2884/0.8449, allocations: 18.04 MB / 0.55 GB, free: 121.1 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.903e-05/0.845, allocations: 182 kB / 0.5502 GB, free: 120.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00532/0.8503, allocations: 4.575 MB / 0.5546 GB, free: 119.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003625/0.8507, allocations: 56.3 kB / 0.5547 GB, free: 119.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001797/0.8525, allocations: 3.27 MB / 0.5579 GB, free: 117.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007763/0.8533, allocations: 0.7846 MB / 0.5586 GB, free: 116.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001419/0.8547, allocations: 1.251 MB / 0.5599 GB, free: 115.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.357e-05/0.8548, allocations: 305 kB / 0.5601 GB, free: 115.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002442/0.8572, allocations: 2.274 MB / 0.5624 GB, free: 114 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004395/0.8616, allocations: 5.959 MB / 0.5682 GB, free: 106.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006926/0.8686, allocations: 8.945 MB / 0.5769 GB, free: 95.58 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.477e-05/0.8687, allocations: 44 kB / 0.577 GB, free: 95.54 MB / 462.1 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.01167/0.8803, allocations: 8.817 MB / 0.5856 GB, free: 86.71 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.638e-05/0.8804, allocations: 60 kB / 0.5856 GB, free: 86.66 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.895e-05/0.8805, allocations: 132.1 kB / 0.5858 GB, free: 86.53 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00199/0.8825, allocations: 0.9451 MB / 0.5867 GB, free: 85.58 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003989/0.8865, allocations: 1.404 MB / 0.588 GB, free: 84.17 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006363/0.8929, allocations: 6.518 MB / 0.5944 GB, free: 77.51 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00493/0.8979, allocations: 343.5 kB / 0.5947 GB, free: 77.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008931/0.8988, allocations: 375.9 kB / 0.5951 GB, free: 76.81 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.003861/0.9027, allocations: 2.174 MB / 0.5972 GB, free: 74.63 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009928/0.9037, allocations: 409.2 kB / 0.5976 GB, free: 74.23 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005478/0.9092, allocations: 3.691 MB / 0.6012 GB, free: 70.52 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-05/0.9092, allocations: 23.94 kB / 0.6012 GB, free: 70.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.298e-05/0.9092, allocations: 8 kB / 0.6013 GB, free: 70.49 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.73e-05/0.9093, allocations: 7.969 kB / 0.6013 GB, free: 70.48 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01336/0.9226, allocations: 9.058 MB / 0.6101 GB, free: 61.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.688e-05/0.9227, allocations: 4 kB / 0.6101 GB, free: 61.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001384/0.9241, allocations: 315.5 kB / 0.6104 GB, free: 61.03 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001793/0.9259, allocations: 0.7695 MB / 0.6112 GB, free: 60.25 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001506/0.926, allocations: 40.47 kB / 0.6112 GB, free: 60.21 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006197/0.9322, allocations: 6.121 MB / 0.6172 GB, free: 53.96 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.631e-06/0.9323, allocations: 8.875 kB / 0.6172 GB, free: 53.95 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007792/0.9401, allocations: 6.609 MB / 0.6236 GB, free: 47.25 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001037/0.9411, allocations: 482.2 kB / 0.6241 GB, free: 46.76 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005051/0.9416, allocations: 50.69 kB / 0.6241 GB, free: 46.71 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001467/0.9431, allocations: 115.8 kB / 0.6243 GB, free: 46.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003069/0.9434, allocations: 125 kB / 0.6244 GB, free: 46.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001315/0.9436, allocations: 56 kB / 0.6244 GB, free: 46.43 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0037/0.9473, allocations: 2.936 MB / 0.6273 GB, free: 43.49 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.9473, allocations: 0 / 0.6273 GB, free: 43.49 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00453/0.9518, allocations: 1.027 MB / 0.6283 GB, free: 42.46 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.007644/0.9595, allocations: 7.267 MB / 0.6354 GB, free: 35.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006946/0.9665, allocations: 5.54 MB / 0.6408 GB, free: 29.58 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.595e-05/0.9665, allocations: 0 / 0.6408 GB, free: 29.58 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002591/0.9691, allocations: 1.977 MB / 0.6427 GB, free: 27.59 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003305/0.9724, allocations: 0.5028 MB / 0.6432 GB, free: 27.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08378/1.056, allocations: 50.15 MB / 0.6922 GB, free: 3.051 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006254/1.063, allocations: 3.359 MB / 0.6955 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005617/1.068, allocations: 2.022 MB / 0.6975 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004174/1.072, allocations: 1.995 MB / 0.6994 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of SimCode: time 8.32e-07/1.072, allocations: 0 / 0.6994 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3855/1.458, allocations: 76.4 MB / 0.774 GB, free: 167.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.61/29.07, allocations: 13.2 kB / 0.774 GB, free: 167.6 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.1.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