Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001429/0.001429, allocations: 112.1 kB / 21.19 MB, free: 0.7031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001559/0.001559, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.401/1.401, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002042/0.002042, allocations: 59.92 kB / 347.2 MB, free: 10.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2507, allocations: 49.16 MB / 396.4 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.0117/0.2624, allocations: 12.58 MB / 408.9 MB, free: 140 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01054/0.273, allocations: 4.242 MB / 413.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002746/0.2757, allocations: 81.66 kB / 413.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007351/0.2831, allocations: 3.285 MB / 416.5 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006524/0.2896, allocations: 2.144 MB / 418.7 MB, free: 9.891 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002518/0.2921, allocations: 0.834 MB / 419.5 MB, free: 9.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007661/0.2998, allocations: 4.561 MB / 424.1 MB, free: 6.824 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005268/0.3051, allocations: 3.212 MB / 427.3 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003677/0.3087, allocations: 1.795 MB / 429.1 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004263/0.313, allocations: 2.539 MB / 431.6 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001303/0.3143, allocations: 396 kB / 432 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003299/0.3176, allocations: 1.307 MB / 433.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003114/0.3207, allocations: 2.283 MB / 435.6 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004404/0.3251, allocations: 2.579 MB / 438.2 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01192/0.337, allocations: 8.369 MB / 446.5 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.337, allocations: 0 / 446.5 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.337, allocations: 4 kB / 446.6 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002999/0.3373, allocations: 0 / 446.6 MB, free: 0.9219 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: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.01451/0.3518, allocations: 5.686 MB / 452.2 MB, free: 11.17 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/0.3519, allocations: 11.98 kB / 452.3 MB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002176/0.3541, allocations: 0.819 MB / 453.1 MB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02302/0.3771, allocations: 4.003 MB / 457.1 MB, free: 6.32 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008258/0.3854, allocations: 3.33 MB / 460.4 MB, free: 2.941 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003244/0.3857, allocations: 274.7 kB / 460.7 MB, free: 2.672 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001487/0.3872, allocations: 351.8 kB / 461 MB, free: 2.328 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02438/0.4115, allocations: 11.58 MB / 472.6 MB, free: 6.039 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002094/0.4117, allocations: 39.64 kB / 472.6 MB, free: 6 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001203/0.4129, allocations: 171.8 kB / 472.8 MB, free: 5.832 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004357/0.4173, allocations: 2.346 MB / 475.1 MB, free: 3.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0207/0.438, allocations: 9.854 MB / 485 MB, free: 9.609 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06338/0.5014, allocations: 44 MB / 0.5166 GB, free: 12.46 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01303/0.5144, allocations: 4.6 MB / 0.5211 GB, free: 7.812 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003795/0.5182, allocations: 2.513 MB / 0.5235 GB, free: 5.289 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01432/0.5325, allocations: 7.323 MB / 0.5307 GB, free: 13.93 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.398e-05/0.5326, allocations: 59.75 kB / 0.5308 GB, free: 13.86 MB / 462.1 MB Notification: Performance of pre-optimization done (n=216): time 5.56e-06/0.5326, allocations: 0 / 0.5308 GB, free: 13.86 MB / 462.1 MB Notification: Performance of matching and sorting (n=237): time 0.05469/0.5873, allocations: 19.92 MB / 0.5502 GB, free: 9.871 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/0.5874, allocations: 180.2 kB / 0.5504 GB, free: 9.656 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008558/0.596, allocations: 4.789 MB / 0.5551 GB, free: 4.859 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000481/0.5965, allocations: 65.7 kB / 0.5551 GB, free: 4.789 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003193/0.5997, allocations: 3.549 MB / 0.5586 GB, free: 1.207 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0013/0.601, allocations: 0.9263 MB / 0.5595 GB, free: 280 kB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1846/0.7856, allocations: 1.346 MB / 0.5608 GB, free: 145.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.034e-05/0.7856, allocations: 305.6 kB / 0.5611 GB, free: 145.2 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004373/0.79, allocations: 2.596 MB / 0.5636 GB, free: 144.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006003/0.796, allocations: 6.496 MB / 0.57 GB, free: 138.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01046/0.8064, allocations: 9.89 MB / 0.5796 GB, free: 130.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001838/0.8066, allocations: 40 kB / 0.5797 GB, free: 130.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=874) (initialization): time 0.01759/0.8242, allocations: 9.7 MB / 0.5891 GB, free: 127.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003141/0.8245, allocations: 65.81 kB / 0.5892 GB, free: 127.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003753/0.8249, allocations: 140.5 kB / 0.5893 GB, free: 127.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002368/0.8273, allocations: 0.9529 MB / 0.5903 GB, free: 127.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005029/0.8323, allocations: 1.579 MB / 0.5918 GB, free: 127 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007078/0.8394, allocations: 6.436 MB / 0.5981 GB, free: 122.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004951/0.8443, allocations: 373.5 kB / 0.5985 GB, free: 122.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001007/0.8453, allocations: 408.9 kB / 0.5988 GB, free: 122.3 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 42 (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 (816): * Single equations (assignments): 810 * 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.004143/0.8495, allocations: 2.376 MB / 0.6012 GB, free: 120.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008802/0.8504, allocations: 441.5 kB / 0.6016 GB, free: 120.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007125/0.8575, allocations: 4.397 MB / 0.6059 GB, free: 116.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.579e-05/0.8575, allocations: 25.97 kB / 0.6059 GB, free: 116.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.635e-05/0.8575, allocations: 8 kB / 0.6059 GB, free: 116.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.533e-05/0.8576, allocations: 7.969 kB / 0.6059 GB, free: 116.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01793/0.8755, allocations: 10.39 MB / 0.6161 GB, free: 105.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.199e-05/0.8755, allocations: 8 kB / 0.6161 GB, free: 105.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001954/0.8775, allocations: 423.3 kB / 0.6165 GB, free: 105.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001889/0.8794, allocations: 0.7716 MB / 0.6172 GB, free: 104.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003137/0.8797, allocations: 44 kB / 0.6173 GB, free: 104.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006512/0.8862, allocations: 6.014 MB / 0.6232 GB, free: 98.49 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/0.8862, allocations: 11.94 kB / 0.6232 GB, free: 98.48 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009722/0.8959, allocations: 7.722 MB / 0.6307 GB, free: 90.67 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00234/0.8982, allocations: 0.7698 MB / 0.6315 GB, free: 89.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001037/0.8993, allocations: 47.98 kB / 0.6315 GB, free: 89.86 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0023/0.9016, allocations: 143.8 kB / 0.6316 GB, free: 89.71 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004397/0.902, allocations: 157.5 kB / 0.6318 GB, free: 89.56 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002271/0.9023, allocations: 63.98 kB / 0.6319 GB, free: 89.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004966/0.9072, allocations: 3.067 MB / 0.6348 GB, free: 86.43 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.9072, allocations: 0 / 0.6348 GB, free: 86.43 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006415/0.9136, allocations: 1.156 MB / 0.636 GB, free: 85.29 MB / 478.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 (198): * Single equations (assignments): 194 * 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.01057/0.9242, allocations: 8.387 MB / 0.6442 GB, free: 76.82 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009548/0.9338, allocations: 6.025 MB / 0.6501 GB, free: 70.82 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.214e-05/0.9338, allocations: 4.062 kB / 0.6501 GB, free: 70.81 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003468/0.9372, allocations: 2.153 MB / 0.6522 GB, free: 68.64 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00458/0.9418, allocations: 0.5328 MB / 0.6527 GB, free: 68.12 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07551/1.017, allocations: 55.17 MB / 0.7066 GB, free: 6.645 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005143/1.022, allocations: 3.673 MB / 0.7101 GB, free: 2.938 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005063/1.028, allocations: 2.213 MB / 0.7123 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004/1.032, allocations: 2.226 MB / 0.7145 GB, free: 14.53 MB / 494.1 MB Notification: Performance of SimCode: time 1.072e-06/1.032, allocations: 0 / 0.7145 GB, free: 14.53 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9648/1.996, allocations: 88.66 MB / 0.8011 GB, free: 130.7 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.3/25.3, allocations: 9.344 kB / 0.8011 GB, free: 130.7 MB / 0.4981 GB " [Timeout remaining time 635] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 28.782218012958765]