Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001437/0.001437, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001639/0.001639, allocations: 212.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.319/1.319, allocations: 230.6 MB / 258.3 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 55.91 kB / 378.6 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2044/0.2057, allocations: 53.35 MB / 431.9 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01216/0.2179, allocations: 11.27 MB / 443.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007162/0.2251, allocations: 4.09 MB / 447.3 MB, free: 7.441 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001019/0.2261, allocations: 83.62 kB / 447.4 MB, free: 7.359 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005252/0.2313, allocations: 3.224 MB / 450.6 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003754/0.2351, allocations: 1.93 MB / 452.5 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001502/0.2366, allocations: 0.8266 MB / 453.4 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005521/0.2421, allocations: 4.421 MB / 457.8 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003894/0.246, allocations: 3.036 MB / 460.8 MB, free: 9.832 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002361/0.2484, allocations: 1.639 MB / 462.5 MB, free: 8.188 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003208/0.2516, allocations: 2.278 MB / 464.7 MB, free: 5.902 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008628/0.2524, allocations: 344 kB / 465.1 MB, free: 5.566 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002319/0.2548, allocations: 1.279 MB / 466.3 MB, free: 4.285 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002239/0.257, allocations: 2.057 MB / 468.4 MB, free: 2.223 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003176/0.2602, allocations: 2.311 MB / 470.7 MB, free: 15.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008561/0.2687, allocations: 7.455 MB / 478.2 MB, free: 8.414 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.2687, allocations: 0 / 478.2 MB, free: 8.414 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.537e-06/0.2687, allocations: 4 kB / 478.2 MB, free: 8.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001972/0.2689, allocations: 0 / 478.2 MB, free: 8.41 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.0116/0.2805, allocations: 5.216 MB / 483.4 MB, free: 3.133 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.2806, allocations: 8.031 kB / 483.4 MB, free: 3.125 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000122/0.2807, allocations: 106.5 kB / 483.5 MB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001502/0.2822, allocations: 0.7321 MB / 484.2 MB, free: 2.277 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02189/0.3041, allocations: 3.898 MB / 488.1 MB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006401/0.3105, allocations: 2.904 MB / 491 MB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002199/0.3107, allocations: 246.2 kB / 491.3 MB, free: 11.17 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001011/0.3117, allocations: 319.8 kB / 491.6 MB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01783/0.3296, allocations: 10.38 MB / 0.4902 GB, free: 15.78 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001331/0.3297, allocations: 43.64 kB / 0.4902 GB, free: 15.74 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006639/0.3304, allocations: 155.7 kB / 0.4904 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003385/0.3337, allocations: 2.037 MB / 0.4924 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01651/0.3503, allocations: 8.784 MB / 0.501 GB, free: 4.75 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2155/0.5658, allocations: 40.54 MB / 0.5405 GB, free: 75.05 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009807/0.5756, allocations: 3.805 MB / 0.5443 GB, free: 74.96 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002177/0.5778, allocations: 2.238 MB / 0.5464 GB, free: 74.92 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008515/0.5863, allocations: 6.535 MB / 0.5528 GB, free: 73.02 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/0.5863, allocations: 53.72 kB / 0.5529 GB, free: 72.97 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 3.757e-06/0.5863, allocations: 0 / 0.5529 GB, free: 72.97 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.03754/0.6238, allocations: 17.8 MB / 0.5703 GB, free: 60.61 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.355e-05/0.6239, allocations: 187.4 kB / 0.5704 GB, free: 60.39 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004986/0.6289, allocations: 4.571 MB / 0.5749 GB, free: 55.88 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002411/0.6291, allocations: 53.7 kB / 0.575 GB, free: 55.82 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001283/0.6304, allocations: 3.269 MB / 0.5781 GB, free: 52.72 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006046/0.631, allocations: 0.793 MB / 0.5789 GB, free: 51.94 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001413/0.6324, allocations: 1.246 MB / 0.5801 GB, free: 50.68 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.209e-05/0.6324, allocations: 305.1 kB / 0.5804 GB, free: 50.38 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002411/0.6349, allocations: 2.287 MB / 0.5827 GB, free: 48.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003492/0.6384, allocations: 5.951 MB / 0.5885 GB, free: 40.45 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00646/0.6448, allocations: 8.96 MB / 0.5972 GB, free: 29.87 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.946e-05/0.6449, allocations: 36 kB / 0.5973 GB, free: 29.83 MB / 446.1 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.01134/0.6563, allocations: 8.805 MB / 0.6059 GB, free: 21.02 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.54e-05/0.6563, allocations: 63.94 kB / 0.6059 GB, free: 20.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001209/0.6564, allocations: 132.8 kB / 0.606 GB, free: 20.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001871/0.6583, allocations: 0.9417 MB / 0.607 GB, free: 19.89 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003485/0.6618, allocations: 1.407 MB / 0.6083 GB, free: 18.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005885/0.6677, allocations: 6.4 MB / 0.6146 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003787/0.6715, allocations: 343.5 kB / 0.6149 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006186/0.6721, allocations: 379.9 kB / 0.6153 GB, free: 11.26 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.002547/0.6746, allocations: 2.163 MB / 0.6174 GB, free: 9.086 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005873/0.6752, allocations: 417.2 kB / 0.6178 GB, free: 8.676 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005069/0.6803, allocations: 3.676 MB / 0.6214 GB, free: 4.984 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.297e-05/0.6803, allocations: 23.98 kB / 0.6214 GB, free: 4.961 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.6803, allocations: 4 kB / 0.6214 GB, free: 4.957 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.524e-05/0.6803, allocations: 7.969 kB / 0.6214 GB, free: 4.949 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01431/0.6947, allocations: 9.025 MB / 0.6302 GB, free: 11.82 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.706e-05/0.6947, allocations: 4 kB / 0.6302 GB, free: 11.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001471/0.6961, allocations: 324.9 kB / 0.6305 GB, free: 11.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002033/0.6982, allocations: 0.7753 MB / 0.6313 GB, free: 10.73 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002025/0.6984, allocations: 39.98 kB / 0.6313 GB, free: 10.69 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008111/0.7065, allocations: 6.017 MB / 0.6372 GB, free: 4.57 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.451e-06/0.7065, allocations: 4 kB / 0.6372 GB, free: 4.566 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009831/0.7163, allocations: 6.605 MB / 0.6437 GB, free: 13.87 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001047/0.7174, allocations: 401.1 kB / 0.644 GB, free: 13.47 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006343/0.718, allocations: 43.98 kB / 0.6441 GB, free: 13.43 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001581/0.7196, allocations: 103.9 kB / 0.6442 GB, free: 13.33 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003171/0.7199, allocations: 144.8 kB / 0.6443 GB, free: 13.19 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001457/0.72, allocations: 52 kB / 0.6444 GB, free: 13.14 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0045/0.7245, allocations: 2.936 MB / 0.6472 GB, free: 10.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7245, allocations: 0 / 0.6472 GB, free: 10.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004524/0.7291, allocations: 1.023 MB / 0.6482 GB, free: 9.18 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 (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.01005/0.7391, allocations: 7.265 MB / 0.6553 GB, free: 1.824 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008063/0.7472, allocations: 5.322 MB / 0.6605 GB, free: 12.52 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.269e-06/0.7472, allocations: 0 / 0.6605 GB, free: 12.52 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003028/0.7502, allocations: 1.841 MB / 0.6623 GB, free: 10.66 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002893/0.7531, allocations: 0.4945 MB / 0.6628 GB, free: 10.17 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06981/0.8229, allocations: 50.21 MB / 0.7118 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005016/0.8279, allocations: 3.355 MB / 0.7151 GB, free: 14.68 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00433/0.8323, allocations: 2.033 MB / 0.7171 GB, free: 12.64 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002792/0.8351, allocations: 1.991 MB / 0.7191 GB, free: 10.65 MB / 0.545 GB Notification: Performance of SimCode: time 9.22e-07/0.8351, allocations: 0 / 0.7191 GB, free: 10.65 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.204/2.039, allocations: 82.04 MB / 0.7992 GB, free: 174.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.23/28.27, allocations: 15.27 kB / 0.7992 GB, free: 174.8 MB / 0.5606 GB " [Timeout remaining time 632] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000201919 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 32.4961199160316]