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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001284/0.001284, allocations: 109.1 kB / 21.22 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001405/0.001405, allocations: 209.5 kB / 24.52 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 8.445/8.445, allocations: 230.5 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 171] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 63.89 kB / 378.5 MB, free: 2.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2858, allocations: 53.4 MB / 431.9 MB, free: 6.445 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01257/0.2983, allocations: 9.778 MB / 441.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008268/0.3066, allocations: 3.847 MB / 445.5 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001639/0.3082, allocations: 75.69 kB / 445.6 MB, free: 8.695 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005638/0.3139, allocations: 3.084 MB / 448.7 MB, free: 5.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005049/0.3189, allocations: 1.938 MB / 450.6 MB, free: 3.656 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001837/0.3208, allocations: 0.8265 MB / 451.5 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006442/0.3272, allocations: 4.409 MB / 455.9 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003888/0.3311, allocations: 3.048 MB / 458.9 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002525/0.3336, allocations: 1.636 MB / 460.6 MB, free: 9.656 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003497/0.3371, allocations: 2.286 MB / 462.8 MB, free: 7.363 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007985/0.3379, allocations: 352 kB / 463.2 MB, free: 7.02 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002236/0.3401, allocations: 1.143 MB / 464.3 MB, free: 5.875 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002164/0.3423, allocations: 2.053 MB / 466.4 MB, free: 3.816 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002338/0.3446, allocations: 1.712 MB / 468.1 MB, free: 2.094 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008946/0.3536, allocations: 7.49 MB / 475.6 MB, free: 10.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3536, allocations: 0 / 475.6 MB, free: 10.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3536, allocations: 0 / 475.6 MB, free: 10.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002338/0.3538, allocations: 4 kB / 475.6 MB, free: 10.57 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: 1541 * Number of variables: 1541 Notification: Performance of Generate backend data structure: time 0.01103/0.3649, allocations: 5.212 MB / 480.8 MB, free: 5.297 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.3649, allocations: 12.03 kB / 480.8 MB, free: 5.285 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000134/0.365, allocations: 106.5 kB / 480.9 MB, free: 5.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001094/0.3661, allocations: 0.7321 MB / 481.6 MB, free: 4.438 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02134/0.3875, allocations: 3.89 MB / 485.5 MB, free: 0.5391 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006959/0.3944, allocations: 2.923 MB / 488.5 MB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002274/0.3947, allocations: 242.2 kB / 488.7 MB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009005/0.3956, allocations: 323.8 kB / 489 MB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01952/0.4151, allocations: 10.41 MB / 499.4 MB, free: 1.895 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001252/0.4152, allocations: 39.64 kB / 499.5 MB, free: 1.855 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004215/0.4156, allocations: 151.9 kB / 499.6 MB, free: 1.707 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003678/0.4193, allocations: 2.033 MB / 0.4899 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01931/0.4386, allocations: 8.78 MB / 0.4985 GB, free: 6.875 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3237/0.7623, allocations: 39.12 MB / 0.5367 GB, free: 92.52 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0113/0.7736, allocations: 3.792 MB / 0.5404 GB, free: 92.42 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002391/0.776, allocations: 2.244 MB / 0.5426 GB, free: 91.99 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009446/0.7854, allocations: 6.098 MB / 0.5485 GB, free: 89.68 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/0.7855, allocations: 49.84 kB / 0.5486 GB, free: 89.64 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 5.961e-06/0.7855, allocations: 1.594 kB / 0.5486 GB, free: 89.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.0391/0.8246, allocations: 17.85 MB / 0.566 GB, free: 78.39 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.904e-05/0.8246, allocations: 183.5 kB / 0.5662 GB, free: 78.17 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004489/0.8291, allocations: 4.574 MB / 0.5706 GB, free: 73.66 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002638/0.8294, allocations: 57.7 kB / 0.5707 GB, free: 73.59 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001326/0.8307, allocations: 3.272 MB / 0.5739 GB, free: 70.49 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004971/0.8312, allocations: 0.7925 MB / 0.5747 GB, free: 69.71 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001186/0.8324, allocations: 1.246 MB / 0.5759 GB, free: 68.46 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.418e-05/0.8324, allocations: 305.1 kB / 0.5762 GB, free: 68.16 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002331/0.8348, allocations: 2.272 MB / 0.5784 GB, free: 65.88 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003452/0.8382, allocations: 5.983 MB / 0.5842 GB, free: 58.12 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00672/0.8449, allocations: 8.968 MB / 0.593 GB, free: 47.44 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.21e-05/0.845, allocations: 39.12 kB / 0.593 GB, free: 47.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.01129/0.8563, allocations: 8.796 MB / 0.6016 GB, free: 38.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.504e-05/0.8564, allocations: 63.98 kB / 0.6017 GB, free: 38.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.254e-05/0.8564, allocations: 128 kB / 0.6018 GB, free: 38.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001913/0.8584, allocations: 0.9349 MB / 0.6027 GB, free: 37.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00367/0.862, allocations: 1.411 MB / 0.6041 GB, free: 36.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006127/0.8682, allocations: 6.36 MB / 0.6103 GB, free: 29.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00431/0.8725, allocations: 339.4 kB / 0.6106 GB, free: 29.26 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008049/0.8733, allocations: 380 kB / 0.611 GB, free: 28.89 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.003233/0.8765, allocations: 2.17 MB / 0.6131 GB, free: 26.71 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009132/0.8774, allocations: 405.3 kB / 0.6135 GB, free: 26.31 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005399/0.8828, allocations: 3.679 MB / 0.6171 GB, free: 22.61 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.688e-05/0.8828, allocations: 20 kB / 0.6171 GB, free: 22.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.8829, allocations: 8 kB / 0.6171 GB, free: 22.59 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.649e-05/0.8829, allocations: 8.844 kB / 0.6171 GB, free: 22.58 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0125/0.8954, allocations: 8.627 MB / 0.6255 GB, free: 13.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.508e-05/0.8954, allocations: 11.88 kB / 0.6256 GB, free: 13.85 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001301/0.8967, allocations: 316.2 kB / 0.6259 GB, free: 13.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001675/0.8984, allocations: 0.7656 MB / 0.6266 GB, free: 12.77 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001339/0.8985, allocations: 40 kB / 0.6266 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006014/0.9045, allocations: 5.956 MB / 0.6325 GB, free: 6.676 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.9045, allocations: 11.94 kB / 0.6325 GB, free: 6.664 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007554/0.9121, allocations: 6.604 MB / 0.6389 GB, free: 15.96 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001428/0.9135, allocations: 405 kB / 0.6393 GB, free: 15.57 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005313/0.914, allocations: 39.98 kB / 0.6393 GB, free: 15.53 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001465/0.9155, allocations: 115.8 kB / 0.6395 GB, free: 15.41 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003313/0.9158, allocations: 136.3 kB / 0.6396 GB, free: 15.29 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001459/0.916, allocations: 56 kB / 0.6396 GB, free: 15.23 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004523/0.9205, allocations: 2.932 MB / 0.6425 GB, free: 12.29 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.9205, allocations: 0 / 0.6425 GB, free: 12.29 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005112/0.9256, allocations: 1.023 MB / 0.6435 GB, free: 11.27 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.01019/0.9358, allocations: 7.26 MB / 0.6506 GB, free: 3.918 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009327/0.9451, allocations: 5.312 MB / 0.6558 GB, free: 14.62 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.017e-05/0.9451, allocations: 0 / 0.6558 GB, free: 14.62 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003357/0.9485, allocations: 1.852 MB / 0.6576 GB, free: 12.75 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003332/0.9518, allocations: 0.4957 MB / 0.6581 GB, free: 12.27 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08096/1.033, allocations: 50.21 MB / 0.7071 GB, free: 4.164 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003797/1.037, allocations: 2.824 MB / 0.7099 GB, free: 1.293 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004519/1.041, allocations: 2.026 MB / 0.7118 GB, free: 15.26 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002625/1.044, allocations: 1.995 MB / 0.7138 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of SimCode: time 9.02e-07/1.044, allocations: 0 / 0.7138 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.224/2.268, allocations: 79.61 MB / 0.7915 GB, free: 160.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.79/29.06, allocations: 3.375 kB / 0.7915 GB, free: 160.3 MB / 0.545 GB " [Timeout remaining time 631] (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 --stepSize=0.000201919 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 40.7167059329804]